I have a command line app and I'd like for the working directory to be whatever location the user is executing the launcher from. Example:
If I execute the command "myLauncher" from the shell and my current directory is "/home/jls" then System.getProperty("user.dir") should return "/home/jls"
How can this be accomplished with BR? I don't mind specifying absolute paths to all my jars -- I just need to make sure the working directory is set to wherever the user is.
asked 03 Aug '15, 17:56
You can use the following code: <workingdirectory>~/</workingdirectory>
answered 06 Aug '15, 11:53