You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by David Medinets <me...@mtolive.com> on 2000/09/13 21:22:17 UTC
How Can I Skip Whole Directories?
Hi. I'm building an Ant task whose xml looks like:
<AnalyzeRequest debug="yes" srcdir="${src}" message="Hello World!
MyVeryOwnTask works!">
<!-- <include name="**/*.java"/> -->
<include name="*.cfm"/>
<exclude name="\\trud-dev\wwwroot\tru_build\images"/>
</AnalyzeRequest>
However, the documentation on how to exclude directories seems to be
missing. Can someone help?
Also, is there a way to turn off directory recursing?
david
Re: How Can I Skip Whole Directories?
Posted by do...@mad.scientist.com.
On Wed, 13 Sep 2000, David Medinets wrote:
> Hi. I'm building an Ant task whose xml looks like:
>
> <AnalyzeRequest debug="yes" srcdir="${src}" message="Hello World!
> MyVeryOwnTask works!">
> <!-- <include name="**/*.java"/> -->
> <include name="*.cfm"/>
> <exclude name="\\trud-dev\wwwroot\tru_build\images"/>
> </AnalyzeRequest>
>
> However, the documentation on how to exclude directories seems to be
> missing. Can someone help?
<exclude name="\\trud-dev\wwwroot\tru_build\images\**"/>
will exclude directory and all sup-directories while
<exclude name="\\trud-dev\wwwroot\tru_build\images\*"/>
will just exclude that directory but will still include
sub-directories.
> Also, is there a way to turn off directory recursing?
is the above sufficient ?
Cheers,
Pete
*--------------------------------------------------*
| Latrobe University, | Does the name 'Pavlov' |
| Bundoora, Australia | ring a bell ? |
*--------------------------------------------------*