One Star

File Path for job deployment

Hello,
I created a job using file delimited and their path is a absolute one (C:\.........). I would like them to be relative (They would get created into the jar folder).
How should I do this?
1 REPLY
One Star

Re: File Path for job deployment

It can be done using java system properties :
System.getProperty("user.dir") + System.getProperty("file.separator") + "relative path"
OR
System.getProperty("java.class.path") + System.getProperty("file.separator") + "relative path"