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 17101] New: - ant.bat mangles command line arguments
Date Sat, 15 Feb 2003 18:09:56 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=17101>.
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=17101

ant.bat mangles command line arguments

           Summary: ant.bat mangles command line arguments
           Product: Ant
           Version: 1.5.1
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: edloft@attbi.com


Given the build.xml file:

  <project name="ant.bat" default="bug" basedir=".">
    <target name="bug">
       <echo message="args=${args}"/>
    </target>
  </project>

The command:

  java -cp %ANT_HOME%/lib/ant.jar -Dant.home=%ANT_HOME%
org.apache.tools.ant.Main -Dargs=x=y

Gives the expected results:
  
  Buildfile: build.xml
  
  bug:
       [echo] args=x=y
  
  BUILD SUCCESSFUL
  Total time: 1 second

However using ant.bat:

  %ANT_HOME%\bin\ant -Dargs=x=y

Results in:

  Buildfile: build.xml
  
  BUILD FAILED
  Target `y' does not exist in this project.
  
  Total time: 1 second

Please note ant.bat in release 1.5 is OK.

Mime
View raw message