ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Boyles" <>
Subject RE: Newbie question: importing properties from XML file via command line
Date Fri, 11 Sep 2009 18:44:17 GMT
Any particular reason you're not using a plain old properties file?

-----Original Message-----
From: Scott Stark [] 
Sent: Friday, September 11, 2009 11:36 AM
To: Ant Users List
Subject: Newbie question: importing properties from XML file via command

Hi, this is probably a dumb question but I couldn't find the answer in
online doc.

I want to import a set of properties from an XML file when I run an Ant
build from the command line. I can do that with the -propertyfile param
the file has name=value pairs in it. Any way to do this with an XML file
with properties defined like <property name="blah" value="blahblah"/>?

I know I can do this with the <import> task in the build file, but I
to specify different property files at the command line rather than hard
wire it.



This email message is for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by reply email and destroy
all copies of the original message. If you are the intended recipient, please be advised that
the content of this message is subject to access, review and disclosure by the sender's Email
System Administrator.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message