ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Conditional Filter Problem
Date Tue, 08 Aug 2000 14:53:12 GMT

Thanks -- I ended up working around the issue using two versions of my
build script, since they are for two user groups (Java 2 projects and Java
1.1).  The build.xml file now sets the filter, in the init target, to a
property that is defined when running the Ant main.

Thanks, ~dmr

Stefan Bodewig <>
08/08/2000 08:57 AM ZE2
Please respond to

Subject:  Re: Conditional Filter Problem

>>>>> "dmr" == damon m rolfs <> writes:

 dmr> This does not work, however since it appears the filter tasks
 dmr> are always executed even if they are contained in a target that
 dmr> is not executed.  In fact, it appears that which version of the
 dmr> filter is used is based solely on which filter is set last.

Your diagnose is correct. This is the way it is currently implemented
(and has always been as far as I can tell).

The handling of <property> (the same behavior you see for <filter>,
only difference is that you can put <property> tags outside of
<target>s) is bound to change in the future - expect <filter> to
change at the same time.


View raw message