ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Griso <nicolas.gr...@gmail.com>
Subject "In-file property expansion" with filtersfile
Date Mon, 10 Oct 2005 12:40:07 GMT
Hello,

In my build.xml, during a copy, the task filterset doesn't work well
(or as I expected it).
Here's some code:

<copy file="${path.conf}/myant.bat" toFile="${path.dist}/myant.bat"
filtering="true">
	<filterset begintoken="@" endtoken="@">
		<filtersfile file="${properties.file.wanted}"/>
	</filterset>
</copy>

The token in myant.bat are (almost) well interpreted. Almost because,
in the property file ${properties.file.wanted} I have several
properties definied like that:
home.dir=/home
ANT_HOME=${home.dir}/ant

And finally in my 2nd myant.bat, @ANT_HOME@ is replaced by
${home.dir}/ant and not /home/ant.
If you have an idea...

Thanks

Nico

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message