ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francis GALIEGUE <...@one2team.com>
Subject Re: Newbie question: importing properties from XML file via command line
Date Mon, 14 Sep 2009 06:35:54 GMT
On Fri, Sep 11, 2009 at 20:35, Scott Stark <sstark@us.ibm.com> wrote:
>
> Hi, this is probably a dumb question but I couldn't find the answer in the
> 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 if
> 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 want
> to specify different property files at the command line rather than hard
> wire it.
>
> thanks,
>
> Scott
>

There is <xmlproperty>, which can be very convenient at times.

-- 

Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris

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


Mime
View raw message