I am trying to make a command line tool that behaves like the Windows copy command. Where:
copy myfile.txt mycopy.txt
copies the relative file myfile.txt to another relative file mycopy.txt. Both the files are relative to current working directory.
But when I launch my program using the wrapper the all paths are resolved relative to the "copy.exe" file since the working directory of the JVM is the directory of the copy.exe dir.
I have played with the wrapper.working.dir configuration but it lacks a "Users current working directory" option.
Is there a way to get access to the users working directory from within Java?