ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koegel, Michael" <Michael.Koe...@partner.commerzbank.com>
Subject AW: Properties file
Date Thu, 29 Aug 2002 14:27:27 GMT
Hi,

for an example see:
http://www.mail-archive.com/ant-user@jakarta.apache.org/msg19470.html
A seach works for me:
http://www.mail-archive.com/cgi-bin/htsearch?method=and&format=short&config=
ant-user_jakarta_apache_org&restrict=&exclude=&words=propertycopy

--MK

-----Urspr√ľngliche Nachricht-----
Von: dhaval panchal [mailto:dhaval_panchal@infosys.com]
Gesendet am: Donnerstag, 29. August 2002 16:17
An: Ant Users List
Betreff: RE: Properties file

Hi,
 I have downloaded ant-contrib 1.0b1 and searched achieves for
'propertycopy' and could
not find any reference.
Can any one pls forward a link pr relevant doc.

thanks and regards,
dhaval

-----Original Message-----
From: Koegel, Michael [mailto:Michael.Koegel@partner.commerzbank.com]
Sent: Thursday, August 29, 2002 1:50 PM
To: Ant Users List
Subject: AW: Properties file


Hi,

see the <propertycopy> task from ant-contrib.
Search for propertycopy on the archive for examples.

--MK 

-----Urspr√ľngliche Nachricht-----
Von: dhaval panchal [mailto:dhaval_panchal@infosys.com]
Gesendet am: Donnerstag, 29. August 2002 10:12
An: ant-user@jakarta.apache.org
Betreff: Properties file

Hi,
 I'll describe the scenario in brief and put my Q? after that. 
Scenario:
 I have a properties file

Name: abc.properties
Contents:
Key1:value1

A target in my build is 
 1.   <target name="my_target" >
 2.       <input 
 3.           message="please provide the key to retrieve"
 4.          addproperty="key.name"
 5.      />
 6.       <property resource="abc.properties" />
 7.       <echo message="${ ${key.name} } " />
 8.   </target>

Problem:
User is asked to input a key value at line 2.The value is used as property
'key.name' in 'my_target' . say user inputs 'key1'
After loading the properties file 'abc.properties' (line 6) I want to 'echo'
' value1' (value for key1 in abc.properties). Line 7 in my_target does not
give me the expected results. 
Is there any other way i can acheieve my objective?

Thanks and Regards,
Dhaval Panchal



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

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


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

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


Mime
View raw message