ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46561] New: Running Ant from command line fails if property contains a comma
Date Mon, 19 Jan 2009 16:10:55 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46561

           Summary: Running Ant from command line fails if property contains
                    a comma
           Product: Ant
           Version: 1.7.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: notifications@ant.apache.org
        ReportedBy: mark.melvin@gmail.com


If I run the following command line (on Windows XP and Windows Server 2003):

ant.bat -Da.property=1,2,3

This fails with the message:

Target "2" does not exist in the project "test".

If I run Java with a similar command line, the property "a.property" is set to
the expected value of "1,2,3".

Note that I can get Ant to succeed by double-quoting the entire argument as
follows:

ant.bat "-Da.property=1,2,3"

However, this should not be necessary.  And in fact, it is not always
practical.   I am running into an insurmountable issue where Ant is being
called from my build server, and the build server constructs the command line. 
I need a property set on the command line that contains a comma and I have no
control over command line argument creation.  

Is there another way I can work around this?


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message