You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by John Lindwall <JL...@Xifin.com> on 2004/05/01 00:05:32 UTC

RE: Copy task (with filter) mucho verboso?

Thanks! that does the trick.

John

-----Original Message-----
From: David Kavanagh [mailto:dkavanagh@gmail.com]
Sent: Friday, April 30, 2004 2:34 PM
To: Ant Users List
Subject: Re: Copy task (with filter) mucho verboso?


Huh... I used a <filterset> and don't get that kind of output.
i.e.
<filterset>
  <filter token="blah" value="${blah}"/>
</filterset>

Give that a try

David

On Thu, 29 Apr 2004 08:34:27 -0700, John Lindwall <jl...@xifin.com> wrote:
> 
> It seems like the copy task has gotten extra chatty in 1.6.1, at least when a filter is used.  For each replaced token I get a message to the output as seen below.  How can I suppress this output?  Putting the attribute verbose="false" on the copy task didn't help.
> 
> My task definition is below.
> 
> Thanks!
> 
> customize-scripts:
>      [copy] Copying 9 files to D:\database
>      [copy] Replacing: @DB_USER@ -> XUTTJL
>      [copy] Replacing: @DB_PASSWORD@ -> XUTTJL
>      [copy] Replacing: @DB_USER@ -> XUTTJL
>      [copy] Replacing: @DB_USER@ -> XUTTJL
>      [copy] Replacing: @DB_USER@ -> XUTTJL
>      [copy] Replacing: @DB_USER@ -> XUTTJL
>      [copy] Replacing: @DB_USER@ -> XUTTJL
>      [copy] Replacing: @DB_USER@ -> XUTTJL
>      [copy] Replacing: @DB_USER@ -> XUTTJL
>      [copy] Replacing: @DB_USER@ -> XUTTJL
>      ...
> 
>   <target name="customize-scripts" description="Copies and customizes SQL Scripts">
>     <filter token="DB_USER" value="${db.user}"/>
>     <filter token="DB_PASSWORD" value="${db.password}"/>
>     <copy todir="${build.database.dir}" filtering="true">
>       <fileset dir="sql/templates">
>         <include name="*.sql"/>
>       </fileset>
>     </copy>
>   </target>
>

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