On 02/09/2008, at 6:42 PM, Hans-Jörg Bibiko wrote:
On 02.09.2008, at 09:26, Hans-Jörg Bibiko wrote:
TM sets the working directory to that of the current file when executing commands, so this should work for you. I think this also means that you could create a .classpath file in the same dir as your script if you need to bring in extra jars.
Hmm, id doesn't work for me. I always have to enter the absolute path. I looked at the source code and the tricky point is in java_compile_and_run.sh line 13 This line changes the directory to /tmp/tm_javamate. executor will be invoked after this thus executor will set the working dir to /tmp/ tm_javamate.
I do not have an ad hoc solution, but maybe one could detect if the Java script doc is untitled go head with /tmp/tm_javamate; if not uses TM_FILEPATH as working directory.
BTW this should be the default way. Otherwise if have no chance to get my *.class files.
This is what I was trying to prevent. But perhaps it is better to dump the class file in the project?
--
LD.