ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Murdoch" <adammurdoch...@yahoo.com>
Subject RE: How can I make ant ignore directories
Date Mon, 14 Jan 2002 22:30:50 GMT

Hi,

You can use dirname/** as the exclude pattern.  E.g

<javac>
    <exclude name="some-dir/**"/>
</javac>

Also, the <javac> task will ignore anything that doesn't end with .java, so
you don't have to explicitly exclude all the other types of files.


Adam

> -----Original Message-----
> From: DPietro@arrissys.com [mailto:DPietro@arrissys.com]
> Sent: Tuesday, 15 January 2002 3:36 AM
> To: Ant Users List
> Cc: RHope@arrissys.com
> Subject: How can I make ant ignore directories
>
>
> We hava a directory hierarchy that has links in it to RCS spaces
> and other
> "useful" directories in the tree that I make ant traverse to build java
> (and other types of) files.
> My javac task has a bunch of excludes in it to exclude all the know file
> types encountered in our directory hierarchy, however, it appears
> that ant
> walks all the directories building a file list that it must then go and
> apply the excludes against. (The excludes list appears to be file
> oriented).
> I make this claim, as I had to constantly increase the heap space needed
> by ant as the number of linked directories increased.
> Sadly, it got to a point where ant was taking 20 minutes to run. In a
> workspace that did not have too many linked RCS directories (like,3) ant
> only takes 20 seconds to run (when there were a small number of files to
> recompile)
>
> We are embarking on a new project that will have more linked directories
> than previously encountered and no real way to eliminate the need.
>
> Can someone tell me how to tell ant to ignore a directory, at least for a
> javac command?
> This would be a big help.
> thanks.
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:ant-user-help@jakarta.apache.org>


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


Mime
View raw message