ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25831] - <filter> doesn't take command line properties.
Date Tue, 30 Dec 2003 22:47:32 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25831>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25831

<filter> doesn't take command line properties.





------- Additional Comments From curvewrecker@cox.net  2003-12-30 22:47 -------
Sorry, I hit enter before I filled this out.
I have this in the build file:
<property name="hostname" value="127.0.0.1"/>

Later in one of the tasks I have a filter:
<filter token="HOST" value="${hostname}" />
<echo>Setting host to: ${hostname}</echo>

Now, if I run ANT using a flag of -Dhostname="localhost", I get an [echo] of:
Setting host to: localhost

However, the filter ignores the supplied change and still subs 127.0.0.1 in 
for @hostname@ in my files.

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


Mime
View raw message