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 40523] New: - Ant does not read -D properties same way as Java
Date Fri, 15 Sep 2006 23:20:15 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40523>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40523

           Summary: Ant does not read -D properties same way as Java
           Product: Ant
           Version: 1.6.5
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: vegorov@bea.com
                CC: vegorov@bea.com


I have the following trivial build.xml.
 
<project name="test">
  <echo message="param is ${param}"/>
</project>
 
I am trying to pass "foo=bar" as param value
 
  ant -Dparam="foo=bar"
 
Unexpectedly, I get:
 
Buildfile: build.xml
     [echo] param is foo
 
BUILD FAILED
Target `bar' does not exist in this project.
 
The same happens if I try to pass param="foo;bar".
 
I tried the same with a trivial java program, and it works as expected (param is
foo=bar).

--------------------
I posted this to users@ant.apache.org and got this reply.

From: Alexey Solofnenko [trelony@gmail.com]

Please file a bug. I think the current logic was created to work around problems
on some weird platforms (VMS?) and it does not work reasonable on "normal" systems.

- Alexey.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message