ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vijay Aravamudhan <avij...@gmail.com>
Subject Re: how to change the property value at run time
Date Wed, 14 May 2008 19:14:36 GMT
I would also look at the documentation about differences between user 
defined properties vs the ones defined within the build.xml file.

Another way to change properties at runtime is to read different 
property files based on your condition.

hth,
Vijay

Taj, Abdul wrote:
> When you say runtime, what do you mean - are you invoking ant from another program? -
like a java application.
>
> If yes - you can use the Project class in Ant, refer api and use setProperty method.
>
> If no - then I don't understand what you mean by runtime - just initialize the property
in the build xml file.
>
> <property name="" value=""/>
>
> -t
>
>
> -----Original Message-----
> From: Irfan.Sayed@t-systems.com [mailto:Irfan.Sayed@t-systems.com] 
> Sent: Wednesday, May 14, 2008 12:07 PM
> To: user@ant.apache.org
> Subject: RE: how to change the property value at run time
>
> Thanks a lot. I know that JAVA_HOME is not the ANT - property.
> I just wanted to check whether can we change the property value at run time.
>
> Can we have detail list of different properties that ANT supports.??
>
>
> Regards,
> Irfan
>
> -----Original Message-----
> From: Knuplesch, Juergen [mailto:Juergen.Knuplesch@icongmbh.de] 
> Sent: Wednesday, May 14, 2008 7:05 PM
> To: Ant Users List
> Subject: AW: how to change the property value at run time
>
> Thats just the special thing about ANT-properties: You can not change them, for good
reasons.
>
> But JAVA_HOME does not look like an Ant-property. What do you want to do?
>
>
>   

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


Mime
View raw message