ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Christen" <...@active.ch>
Subject AW: Ant PropertyFile Task User Manual
Date Fri, 31 Aug 2001 17:14:52 GMT
> The example given in your documentation seems to imply that you can only
> make changes to a single property file. So can you make changes
> to multiple property files ?

Yes.

If you want to use multiple files, use for each property file a separate
PropertyFile task.

  <propertyfile
      file="my-first.properties"
      comment"My first properties" >
    <entry  key="akey" value="avalue" />
    <entry  key="formated.int" type="int" default="0013" operation="+"
pattern="0000"/>
    <entry  key="formated.date" type="date" value="now" pattern="DDD
HH:mm"/>
  </propertyfile>

  <propertyfile
      file="my-second.properties"
      comment"My second properties" >
    <entry  key="akey" value="avalue" />
    <entry  key="adate" type="date" value="now"/>
    <entry  key="anint" type="int" operation="+"/>
  </propertyfile>

An other way to write into a file might be the echo task. It allows to write
the output to a file instead of stdout.

Regards
Thomas Christen


Mime
View raw message