ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Euan Guttridge <EGuttri...@buildonline.com>
Subject <filter filtersfile> not substituting vars in property file
Date Wed, 03 Mar 2004 18:14:02 GMT
When using <filter filtersfile> with a <copy ...filtering="true"> task, the
variables dependant on other variables in the property file referenced by
<filter filtersfile> are not subsituted. This seems to have been reported a
few times in the archives but not fixed. Any suggestions??

Thanks


; eg

dev.properties:
server.name=helium
server.url=${server.name}:8080

server.properties (source):
servername=@server.name@
serverurl=@server.url@

build.xml extract:
<filter filtersfile=dev.properties>
<copy todir="./work" filtering="true">
	<fileset dir="./src"/>
</copy>

server.properties (resulting):
servername=helium
serverurl=${server.name}:8080 ************** NOTE servername is replaced
correctly, server.properties is NOT.

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


Mime
View raw message