ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@cortexebusiness.com.au>
Subject Re: Filters in ant
Date Sat, 17 Feb 2001 07:58:06 GMT
Frank,

I have fixed the documentation. You can really help out by raising any
documentation bugs on bugzilla.

Conor

----- Original Message -----
From: "Lin, Frank" <flin@fusionOne.com>
To: <ant-user@jakarta.apache.org>
Sent: Saturday, February 17, 2001 1:40 PM
Subject: RE: Filters in ant


> Opss,  now I have to really pay attention to the cut-and-paste examples
from
> the Ant's User Manual.
>
> Thanks a lot
> Frank
>
> -----Original Message-----
> From: ahammond@answerfriend.com [mailto:ahammond@answerfriend.com]
> Sent: February 16, 2001 7:10 PM
> To: ant-user@jakarta.apache.org
> Subject: Re: Filters in ant
>
>
> You have misspelled it.  It is spelled "filtersfile".  You forgot the s.
>
>     <filter filtersfile="test.properties"      />
>
> andy.
>
>
> "Lin, Frank" wrote:
>
> > Thank you for you answer, andy.  But do you or anyone know the
filterfile
> > problem.
> > I got this error when I used it:
> > BUILD FAILED
> >
> > D:\temp\build.xml:17: Class org.apache.tools.ant.taskdefs.Filter
doesn't
> > support the "filterfile" attribute
> >
> >   <filter filterfile="test.properties"  />
> >   <copy todir="./test"  filtering="yes" >
> >         <fileset dir="." includes="test.file" />
> >   </copy>
> >
> > Frank
> >
> > -----Original Message-----
> > From: ahammond@answerfriend.com [mailto:ahammond@answerfriend.com]
> > Sent: February 16, 2001 5:30 PM
> > To: ant-user@jakarta.apache.org
> > Subject: Re: Filters in ant
> >
> > You must set filtering="yes" attribute in the copy task... it is
defaulted
> > to
> > no.
> >
> > andy.
> >
> > "Lin, Frank" wrote:
> >
> > > Hi,
> > >
> > > Does anyone know how to use filter in Ant?   I used the token and
value
> > > pair, but it did not replace the token
> > >
> > >   <filter token="year" value="2000" />
> > >   <copy todir="./test" >
> > >         <fileset dir="." includes="test.file" />
> > >   </copy>
> > >
> > > test.file:
> > > year
> > > @year@
> > >
> > > Also, the filterfile was not supported either.
> > >  Class org.apache.tools.ant.taskdefs.Filter doesn't support the
> > "filterfile"
> > > attribute
> > >
> > > Thanks
> > >
> > > Frank


Mime
View raw message