You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Thomas Christen <ch...@active.ch> on 2002/02/10 21:13:54 UTC

AW: Ant PropertyFile question - Ant newbie

Nop,

Unfortunatly PropertyFile works only at file level.

Regards
Tomy
> -----Ursprüngliche Nachricht-----
> Von: Jeff [mailto:etrick.jeff@ensco.com]
> Gesendet am: Dienstag, 29. Januar 2002 16:36
> An: chr@active.ch
> Betreff: Ant PropertyFile question - Ant newbie
>
> Thomas,
>
>    I have been tasked to add a version to each of the
> various directory levels in our project. Your PropertyFile
> Task does exactly what I need, but I am unable to pass it a
> FileSet.
>
>    Is there a way to pass a FileSet to the PropertyFile Task?
>
>
> Scenario:
>
>    given a structure com.company.commontools.swingtools.app1
>    with a file called 'version.properties' at each level
> (example: com.company.commontools,
> com.company.commontools.swingtools
> com.company.commontools.swingtools.app1
> com.company.commontools.swingtools.app2)
> one could use the PropertFile Task to update a build number .
>
> example useage:
>
> <target name="tagIt" description="auto increment the version
> build number and tag the date built" depends="cvsGrabModule">
>
>   <propertyfile  >
>        <entry key ="BuildNumber" type="int" operation="+"
> value="1"/>
>        <entry key ="BuildDate" type="date" value="now"
> pattern="YYYY-MM-dd HH:mm:ss"/>
>       <fileset dir="./${MODNAME}/${src.dir}" >
>          <include name="**/Version.properties"/>
>
>
>      </fileset>
> </propertyfile>
>
>    </target>
>
>
>
>
>
> Thanks,
>
> Jeff
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>