ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gero Vermaas, Sun Java Center" <Gero.Verm...@sun.com>
Subject Re: [PATCH] Filter task enhanced, reads filters from file.
Date Mon, 25 Sep 2000 07:34:09 GMT
Conor,

I'm not sure how to make a unified diff (probably can do it with CVS, but I
don't have it availble at the location i'm at, at this moment).

The following is the updated describtion of the Filter task. If you replace
the original one in the index.html file with this text below, the text will
be up to date again.

==================================
<h2><a name="filter">Filter</a></h2>
<h3>Description</h3>
<p>Sets a token filter for this project or read multiple token filter from
an input file and sets these as filters.
Token filters are used by all tasks that perform file copying operations
through the Project commodity methods.</p>
<p>Note 1: the token string must not contain the separators chars (@).<br>
Note 2: Either token and value must be given as parameter, or only the
filterfile must be given as
parameter.</p>

<h3>Parameters</h3>
<table border="1" cellpadding="2" cellspacing="0">
  <tr>
    <td valign="top"><b>Attribute</b></td>
    <td valign="top"><b>Description</b></td>
    <td align="center" valign="top"><b>Required</b></td>
  </tr>
  <tr>
    <td valign="top">token</td>
    <td valign="top">the token string without @</td>
    <td align="center" valign="top">Yes*</td>
  </tr>
  <tr>
    <td valign="top">value</td>
    <td valign="top">the string that should be put to replace the token when
the
      file is copied</td>
    <td align="center" valign="top">Yes*</td>
  </tr>
  <tr>
    <td valign="top">filterfile</td>
    <td valign="top">The file from which the filters must be read. This file
must
       be a formatted as a property file. </td>
    <td align="center" valign="top">Yes*</td>
  </tr>
</table>
<p>* see notes 1 and 2 above parameters table.</p>
<h3>Examples</h3>
<pre>  &lt;filter token=&quot;year&quot; value=&quot;2000&quot;
/&gt;
  &lt;copydir src=&quot;${src.dir}&quot;
dest=&quot;${dest.dir}&quot;/&gt;</pre>
<p>will copy recursively all the files from the <i>src.dir</i> directory
into
the <i>dest.dir</i> directory replacing all the occurencies of the string
<i>@year@</i>
with <i>2000.</i></p>
<pre>  &lt;filter filterfile=&quot;deploy_env.properties&quot; /&gt;</pre>
will read all property entries from the <i>deploy_env.properties</i> file
and set these as filters.
======================

Regards,

Gero Vermaas

----------------------------------------------------------------------------
---------
Gero Vermaas, Sun Java Center, The Netherlands
Mail:                   Gero.Vermaas@sun.com
Phone:               +31 33 4515737
Sun home page: http://www.holland/~gv103953
----- Original Message -----
From: "Conor MacNeill" <conor@m64.com>
To: <ant-dev@jakarta.apache.org>
Sent: Sunday, September 24, 2000 1:19 PM
Subject: RE: [PATCH] Filter task enhanced, reads filters from file.


> Gero,
>
> I have committed your patch. Would it be possible to send me a unified
diff
> for the index.html rather than the whole file. I haven't committed the
> changes in that file.
>
> Cheers
> Conor
>
>
> > -----Original Message-----
> > From: Gero Vermaas, Sun Java Center [mailto:Gero.Vermaas@sun.com]
> > Sent: Saturday, 23 September 2000 21:44
> > To: ant-dev@jakarta.apache.org
> > Subject: Re: [PATCH] Filter task enhanced, reads filters from file.
> >
> >
> > You're right. Attached you find a correct version with "filtersfile"
> >
> > Regards,
> > Gero
> > ----- Original Message -----
> > From: "Diane Holt" <holtdl@yahoo.com>
> > To: <Gero.Vermaas@Sun.COM>
> > Sent: Saturday, September 23, 2000 11:31
> > Subject: Re: [PATCH] Filter task enhanced, reads filters from file.
> >
> >
> > > --- "Gero Vermaas, Sun Java Center" <Gero.Vermaas@sun.com> wrote:
> > > > I've added a "filtersfile" parameter to the Filter task.
> > >
> > > Hi Gero,
> > >
> > > Here you say it's "filtersfile", but in index.html and in the code,
it's
> > > "filterfile". I think it probably really should be "filtersfile",
since
> > > that would match "includesfile" and "excludesfile", and keep things
like
> > > this consistent (so people don't have to remember things like,
> > "Oh right,
> > > it's without the "s" in the <filter> task").
> > >
> > > Thanks,
> > > Diane
> > >
> > >
> > > =====
> > > (holtdl@yahoo.com)
> > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Send instant messages & get email alerts with Yahoo! Messenger.
> > > http://im.yahoo.com/
> > >
> >
>
>


Mime
View raw message