DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=32983>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32983 Summary: java task: jar is not searched for relative to the dir setting Product: Ant Version: 1.6.2 Platform: PC OS/Version: Windows 2000 Status: NEW Severity: major Priority: P2 Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] When I try to run the following task java is trying to find the jar based off the location from which i typed ant targetname. This is wrong, it should look based off where java is run from specifically the value of the dir attribute. <!-- test the release server --> <target name="runrelease-server"> <java jar="runme.jar" dir="${project.release.tempdir}" fork="true"> <arg line="server" /> </java> </target> Here is the -d -v output.... Setting project property: project.release.tempdir -> C:\projects\scjd\release-temp runrelease-server: [java] Executing 'F:\program files\j2sdk14204\jre\bin\java.exe' with argume nts: [java] '-jar' [java] 'C:\projects\scjd\build\runme.jar' [java] 'server' [java] [java] The ' characters around the executable and arguments are [java] not part of the command. Execute:Java13CommandLauncher: Executing 'F:\program files\j2sdk14204\jre\bin\ja va.exe' with arguments: '-jar' 'C:\projects\scjd\build\runme.jar' 'server' -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]