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=24280>. 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=24280 Empty value attribute for <arg> behaves differently on Windows and Unix ------- Additional Comments From [EMAIL PROTECTED] 2003-11-04 12:36 ------- I have tested this on windows. I can only see this behaviour if one does: <java classname="MyClass" classpath="${myclasspath}" fork="yes"> <arg value="1"/> <arg value=""/> <arg value="3"/> </java> The reason for this is the fact that Runtime.exec(String[] ...) is platform specific and for windows J2SE (at least up to 1.4.1) uses CreateProcess(0, commandline, ....) Where the second parameter is a string containing the commandline including all the arguements. In the conversion to a string, the second arguement gets lost. The code for the conversion is in the constructor of the class W32Process (available under sun's community source license) looking at the code and at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createprocess.asp I cannot see a way to make this work correctly. I would be inclined to set this to WONTFIX as in CANTFIX --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]