You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Jacob, Anil - MWT" <Ja...@menlolog.com> on 2004/05/01 01:11:44 UTC

RE: Setting property for all targets

Another option would be taking the input as properties and doing an echo
properties to send the properties to a file and then loading the file at
the project level using <property file="input.properties"/>
This way all targets get the property via input.

Anil
-----Original Message-----
From: Matt Benson [mailto:gudnabrsam@yahoo.com] 
Sent: Friday, April 30, 2004 2:32 PM
To: Ant Users List
Subject: RE: Setting property for all targets


--- "Jacob, Anil - MWT" <Ja...@menlolog.com>
wrote:
> My question is how can I set ${value} in the 2nd run
> without having a
> depend on the input target and without running it
> like in the 3rd run.
> How can the input target set the value of $value for
> all targets without
> invoking it again and again.
> 
As mentioned before, Project properties only "live" as
long as the JVM and are not designed to survive
multiple invocations of Ant.  The most obvious thing
to do is enter all the targets you wish to run on a
single command-line...

-Matt


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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


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