ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob, Anil - MWT" <Jacob.A...@menlolog.com>
Subject RE: Setting property for all targets
Date Fri, 30 Apr 2004 23:11:44 GMT
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" <Jacob.Anil@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


Mime
View raw message