DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9002>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9002 exec behaves strange ------- Additional Comments From [EMAIL PROTECTED] 2002-05-12 09:20 ------- I missed the javah task, thanks for the pointer. it worked fine. after misusing arg in the exec task by stuffing 2 arguments in it i played around with it a bit more, but still couldn't get it to work properly. a difference in behaviour could be noted by differences in the usage of spaces in arg value. case 1: <target name="lhe"> <exec executable="javah"> <arg value="-classpath " /> <arg value="r:\development\etb- admin\classes " /> <arg value="-d " /> <arg value="r:\development\etb-admin\src " /> <arg value="pkgname.CallHandler" /> </exec> </target> Note that there is a whitespace after every arg. Result was [exec] Current OS is Windows 2000 [exec] Executing 'javah' with arguments: [exec] '-classpath ' [exec] 'r:\development\etb-admin\classes ' [exec] '-d ' [exec] 'r:\development\etb-admin\src ' [exec] 'pkgname.CallHandler' [exec] The ' characters around the executable and arguments are [exec] not part of the command. [exec] Error: -classpath is an illegal argument [exec] Usage: javah [options] <classes> Case 2: <target name="lhe"> <exec executable="javah"> <arg value=" -classpath " /> <arg value="r:\development\etb- admin\classes " /> <arg value="-d " /> <arg value="r:\development\etb-admin\src " /> <arg value="pkgname.CallHandler" /> </exec> </target> one more whitespace before -classpath arg. Result was lhe: [exec] Current OS is Windows 2000 [exec] Executing 'javah' with arguments: [exec] ' -classpath ' [exec] 'r:\development\etb-admin\classes ' [exec] '-d ' [exec] 'r:\development\etb-admin\src ' [exec] 'pkgname.CallHandler' [exec] The ' characters around the executable and arguments are [exec] not part of the command. [exec] Error: Class -classpath could not be found. [exec] Result: 15 Case 3: <target name="lhe"> <exec executable="javah"> <arg value="-classpath" /> <arg value=" r:\development\etb- admin\classes" /> <arg value="-d" /> <arg value=" r:\development\etb-admin\src" /> <arg value="pkgname.CallHandler" /> </exec> </target> lhe: [exec] Current OS is Windows 2000 [exec] Executing 'javah' with arguments: [exec] '-classpath' [exec] ' r:\development\etb-admin\classes' [exec] '-d' [exec] ' r:\development\etb-admin\src' [exec] 'pkgname.CallHandler' [exec] The ' characters around the executable and arguments are [exec] not part of the command. [exec] Error: The directory r:\development\etb-admin\src could not be create for output. [exec] Result: 15 well, the directory exists as i keep my sources in there, so i couldn't make a lot of sense out of that error. especially as an identical javah commandline call worked flawlessly (as did in all cases 1-3 btw). as there is the javah task i guess it won't be of a lot of interest, just thought you'd like to know. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
