ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jones" <jone...@gmail.com>
Subject Re: Ant does not read -D properties same way as Java
Date Fri, 15 Sep 2006 21:25:47 GMT
Vladimir,

As per the Ant manual:

-D<property>=<value>   use value for given property

In your case you would want -Dfoo=bar

Please try that and see if it works. I expect that it should.

-Dave


On 9/15/06, Vladimir Egorov <vegorov@bea.com> wrote:
>
> Hi Ant Users,
>
> 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.
>
>
>
> Thank you,
>
>
>
> Vladimir Egorov
>
> >>Register now for BEA World 2006 --- See http://www.bea.com/beaworld<<
> _______________________________________________________________________
> Notice:  This email message, together with any attachments, may contain
> information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
> entities,  that may be confidential,  proprietary,  copyrighted  and/or
> legally privileged, and is intended solely for the use of the individual
> or entity named in this message. If you are not the intended recipient,
> and have received this message in error, please immediately return this
> by email and then delete it.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message