ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: How do I prevent Ant from scanning a directory?
Date Thu, 24 Aug 2000 16:54:03 GMT
You didn't actually tell ant not to go there, you told it not to include 
that set of files/directories in the final list of files.  The directory 
scanner is examining pretty much everything under src_dir, becuase you 
told it to include _all_ .java files under src_dir.   You might want to be 
more specific in your listing of *.java files, like

<include name="com/nortel/pkg/i/want/**/*.java"/>

This might bypass the com/nortel/spiff directory, because it will figure 
out that the directory will never statisfy the include directive.  You'd 
have to give it a shot though, as I haven't tried it.

Glenn McAllister
Software Developer, IBM Toronto Lab, (416) 448-3805
"An approximate answer to the right question is better than the 
right answer to the wrong question." - John W. Tukey

Please respond to 
To:     "Ant-User (text)" <>
Subject:        How do I prevent Ant from scanning a directory?

I know the title is overly simplistic, but I need something more then just
<exclude .../>.

The problem is this:  I have a clear case vob NFS mounted.  One of the
directories under this vob I don't have read access to, but I can see the
existence of the directory.  For the code samples below, the directory is

A snippet of my build.xml file looks like this:
      <include name="**/*.java"/>
      <exclude name="com/nortel/spiff"/>

I have also tried to use a file pattern instead of a directory name (i.e.:
<exclude name="com/nortel/spiff/**"/>)

However, whenever I run Ant, I get the following error:
    build.xml:30: IO error scanning directoryV:\com\nortel\spiff\build

Yes, this is an error, but I told Ant not to go there.

I am using the nightly loadbuild for 24 Aug 2000.

Any suggestions?

Jay Dickon Glanville
P068 - SiteManager Development, Nortel Networks
613-765-1144 (ESN 395-1144)
MS: 045/55/A05

View raw message