ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen McConnell" <mcconn...@dpml.net>
Subject RE: Ant does not read -D properties same way as Java
Date Fri, 15 Sep 2006 21:39:42 GMT
 

> -----Original Message-----
> From: David Jones [mailto:jonesd3@gmail.com] 
> Sent: Saturday, 16 September 2006 6:56 AM
> To: Ant Users List
> Subject: Re: Ant does not read -D properties same way as Java
> 
> 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.

I don't think that is what he wants - looking at the example he wants to
assign:

  property name = 'param'
  property value = 'foo=bar'

His problem appears to be that the 'param' property is being assigned to the
value 'foo' instead of 'foo=bar'.

/Steve.


> 
> -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.
> >
> >
> 

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


Mime
View raw message