ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: How to create a xml properties file
Date Tue, 25 Nov 2003 06:32:39 GMT
The manual [1] shows example for an xml based propertiesfile.
The first sentence "Loads property values from a valid xml file." must
be read as it is (otherwise it´s not written in there :-): 

"from a valid xml file"

There are no other restrictions, no DTD, no schema, ...
A 
  <root><properties><foo/></properties></root>
is ok, but
  <project><property name="" value=""/><target/></property>
too :-)


You can think about the <xmlproperty> task as a way how to access
nodes/attributes
in a xml file.



Jan


[1] http://ant.apache.org/manual-1.6beta/CoreTasks/xmlproperty.html

> -----Original Message-----
> From: gglefoncede gglefoncede [mailto:gglefoncede@hotmail.com]
> Sent: Monday, November 24, 2003 5:50 PM
> To: user@ant.apache.org
> Subject: How to create a xml properties file
> 
> 
> For the moment, i use a .properties file and i would like to 
> use an xml file 
> for my properties.
> I saw that i have to call this file from my ant script with 
> XMLProperty 
> task...
> 
> But i didn't find a example of a properties.xml file.
> Do someone could give an example how to make this file ?
> 
> Thanks
> Greg
> 
> _________________________________________________________________
> MSN Messenger  http://g.msn.fr/FR1001/866 : dialoguez en direct et 
> gratuitement avec vos amis !
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message