ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: properties in xml format
Date Tue, 17 Jun 2003 17:17:05 GMT
A file s.xml containing:

<org>
  <acme>
    <color>blue</color>
    <location>dublin</location>
  </acme>
</org>

A build file can use this as follows:

  <target name="b">
    <xmlproperty file="s.xml"/>
    <echo>color is ${org.acme.color}</echo>
  </target>

Peter
On Tuesday 17 June 2003 17:48, Dinakar wrote:
> Hello:
> can someone give me small example of  how to define properties in xml
> format. I am newbie to Ant. I know, in java format like name=value.
>
> Thanks
>
> /dinakar
>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message