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: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


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 [EMAIL PROTECTED] and got this reply.

From: Alexey Solofnenko [EMAIL PROTECTED]

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to