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

           Summary: Empty value attribute for <arg> behaves differently on
                    Windows and Unix
           Product: Ant
           Version: 1.5.3
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The following task:
<java classname="MyClass" classpath="${myclasspath}">
  <arg value="1"/>
  <arg value=""/>
  <arg value="3"/>
</java>

will pass args[] into MyClass#main as follows:

Unix: { "1", "", "3" }
Windows: { "1", "3" }

I have found this to be the case comparing builds on WindowsXP and Solaris. I
don't know whether the discrepency comes from ANT or the JDKs involved.

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

Reply via email to