You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Mischler Adrian <Ad...@ferag.com> on 2010/10/26 08:25:46 UTC

Troubles: Concat & Filterchain

Hello...
I work whit Apache Ant version 1.7.0 compiled on December 13 2006

Situation:
I like to modify the Trace.txt to Filter.txt (The attached Filter.txt
file is handmade). It does not work to use more then one <contains
value="blabla"/> 
in the linecontains. But if I use <linecontains negate="TRUE"> then I
can use more then one <contains value="blabla"/> in the linecontains.

Can you help me? I like to have the Filter.txt file in one step. The
example below does not work because the two <contains value=... have to
be in the same line!!!

Kind regards
Adrian Mischler


 <<Trace.txt>>  <<Filter.txt>> 

  <!-- === trcFilter
================================================================ --> 
  <target name="trcFilter" depends="" description="prepare for traces">

    <concat destfile="./Filter.txt" append="false">
      <fileset dir="./Import/" includes="./Trace.txt"/>
      <filterchain>
        <linecontains negate="FALSE">
          <contains value="2855,2820"/>
          <contains value="2822,2822"/>
        </linecontains>
      </filterchain>
    </concat>
    
  </target >




**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
**********************************************************************


Re: Troubles: Concat & Filterchain

Posted by Stefan Bodewig <bo...@apache.org>.
On 2010-10-26, Mischler Adrian wrote:

> I like to modify the Trace.txt to Filter.txt (The attached Filter.txt
> file is handmade). It does not work to use more then one <contains
> value="blabla"/> in the linecontains. But if I use <linecontains
> negate="TRUE"> then I can use more then one <contains value="blabla"/>
> in the linecontains.

Sounds like a bug, according to the manual it should work with multiple
contains children and basically "and" them together.  If this is what
you need and it doesn't work, please open a bug report.

Stefan

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