You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by sp...@yahoo.fr on 2007/04/27 13:09:28 UTC
Process resources (date,build number, version...etc)
Hi all,
I need to process some resources which was properties in Ant like this :
<property name="DIST" value="${MyDate}-v${noVersion}b${build.number}"/>
where :
<target name="init" description="Init target">
<tstamp>
<format property="time" pattern="yyMMdd_hhmmss" locale="en"/>
</tstamp>
<tstamp>
<format property="MyDate" pattern="yyyyMMdd-HHmmss" locale="fr"/>
</tstamp>
<property name="backup.time.dir" value="${basedir}/backup/B_${time}"/>
</target>
how can I fill this property in maven ? and process it through filtered resources ?
I know I'm asking too much, but its the only way to have the maximum of your experience friends ! ;-)
Thanks
Nawfel
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com