ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24280] - Empty value attribute for <arg> behaves differently on Windows and Unix
Date Tue, 25 Nov 2003 09:26:37 GMT
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

peter.reilly@corvil.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX



------- Additional Comments From peter.reilly@corvil.com  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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message