ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: <filter filtersfile> not substituting vars in property file
Date Wed, 03 Mar 2004 18:45:41 GMT
--- Euan Guttridge <EGuttridge@buildonline.com> wrote:
> dev.properties:
> server.name=helium
> server.url=${server.name}:8080
> 
> server.properties (resulting):
> servername=helium
> serverurl=${server.name}:8080 ************** NOTE
> servername is replaced
> correctly, server.properties is NOT.

It looks as though you are expecting the filtersfile
to be loaded as properties, and for the <copy> task to
replace them.  Although the filtersfile is specified
in properties format, the key-value pairs in the file
are not actually set as properties on the Project. 
You could almost load the filtersfile as properties
and supply a nested <filterchain> with an
<expandproperties> FilterReader to your <copy> task,
BUT it would be applied prior to the Project filters
set up by the <filter> task, and so would still not
work.  Given this knowledge, you should be able to use
your imagination to come up with one or more
alternative solutions...

-Matt

__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

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


Mime
View raw message