ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Wood" <>
Subject RE: ANT resource selector examples
Date Thu, 30 Oct 2008 14:45:45 GMT
Thank you so much. This work great.  I'll use it to help expand my knowledge on how to use
this feature.  Is the new "ANT in Action" book a good source of information on resources?
 I have an older ANT book that was good and was thinking of purchasing this book.


-----Original Message-----
From: [] 
Sent: Thursday, October 30, 2008 10:35 AM
Subject: AW: ANT resource selector examples

Based on Matts code here a working example:

    <filelist id="allfiles" dir="${ant.home}/bin" files="ant.cmd,foo.txt,ant.bat,bar.txt,ant"/>
    <restrict id="missingfiles">
        <filelist refid="allfiles"/>
        <rsel:not xmlns:rsel="">
    <echo>These files are missed: ${toString:missingfiles}</echo> </project>

This should show

Buildfile: build.xml
     [echo] These files are missed: YOUR_ANT_HOME\bin\foo.txt;YOUR_ANT_HOME\bin\bar.txt



>-----Urspr√ľngliche Nachricht-----
>Von: Matt Benson []
>Gesendet: Donnerstag, 30. Oktober 2008 15:14
>An: Ant Users List
>Betreff: Re: ANT resource selector examples
><filelist id="myfilelist" dir="foo"
>files="bar,baz,blah" />
><restrict id="myexistingfiles">
>  <filelist refid="myfilelist" />
>  <not>
>    <exists />
>  </not>
>--- Eric Wood <> wrote:
>> Can somebody point me to some examples on how to use resource 
>> selectors on filelists?  The manual page is a little terse and I 
>> having a hard time finding good examples. I trying to understand how 
>> to use <non> and <exists> to select non-existing files in the 
>> filelist.
>> Thanks, Eric
>To unsubscribe, e-mail: For additional 
>commands, e-mail:

To unsubscribe, e-mail: For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message