ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Taj, Abdul" <abdul_...@mcgraw-hill.com>
Subject RE: how to change the property value at run time
Date Wed, 14 May 2008 16:16:44 GMT
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?


-- 
Jürgen Knuplesch                    www.icongmbh.de
icon Systemhaus GmbH                Tel. +49 711 806098-275
Sophienstraße 40                    
D-70178 Stuttgart                   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-----Ursprüngliche Nachricht-----
Von: Irfan.Sayed@t-systems.com [mailto:Irfan.Sayed@t-systems.com] 
Gesendet: Mittwoch, 14. Mai 2008 15:20
An: user@ant.apache.org
Betreff: how to change the property value at run time

Hi All,

 

I need to change the value of a specific property at run time. Can somebody please let me
know how I can do that.

 

Let's say the property name is "JAVA_HOME" and suppose I want to change the value of that
property to "d:\install"

 

Please help.

 

Regards,

Irfan

 


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

The information contained in this message is intended only for the recipient, and may be a
confidential attorney-client communication or may otherwise be privileged and confidential
and protected from disclosure. If the reader of this message is not the intended recipient,
or an employee or agent responsible for delivering this message to the intended recipient,
please be aware that any dissemination or copying of this communication is strictly prohibited.
If you have received this communication in error, please immediately notify us by replying
to the message and deleting it from your computer.  The McGraw-Hill Companies, Inc. reserves
the right, subject to applicable local law, to monitor and review the content of any electronic
message or information sent to or from McGraw-Hill employee e-mail addresses without informing
the sender or recipient of the message.
--------------------------------------------------------

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


Mime
View raw message