DO NOT REPLY [Bug 24280] - Empty value attribute for arg behaves differently on Windows and Unix

2003-11-25 Thread bugzilla
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

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX



--- Additional Comments From [EMAIL PROTECTED]  2003-11-25 09:26 ---
I have figured out how to modify W32Process to
handle empty arguments correctly:
--- java-src/j2se/src/windows/classes/java/lang/Win32Process.java   Thu Sep 
11
02:55:51 2003
+++ newexec/src/java/lang/Win32Process.java Mon Nov 24 21:35:36 2003
@@ -44,6 +44,9 @@
/* Unmatched quote for the argument. */
throw new IllegalArgumentException();
}
+} else if (.equals(s)) {
+// empty argument
+cmdbuf.append(\\);
} else {
cmdbuf.append(s);
}
And have filed a bug report with sun.
As this is a jdk problem and not an ant problem, i am marking
this as WONTFIX as in CANTFIX.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 24280] - Empty value attribute for arg behaves differently on Windows and Unix

2003-11-04 Thread bugzilla
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]



DO NOT REPLY [Bug 24280] - Empty value attribute for arg behaves differently on Windows and Unix

2003-11-03 Thread bugzilla
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-03 15:07 ---
It's probably due to the JDK and/or the underlying OS - Ant uses the same
JDK method with the same arguments in both cases.

If you use exec instead of java and set vmlauncher to false, is there any
difference?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]