After thinking about it, I decided my question was rather unclear. Let me be
more specific:

    <jar jarfile="myapp.jar">
       <fileset dir="/my/dir/classes"
                includes="**/*.class"
                excludes="**/Links/*"
                defaultexcludes="yes"
       />
    </jar>


In the example above, Apex insists on putting a "Links" symbolic link at
every level on my package hierachy. This link points to a whole mess of
things. Even though I've defined it as excluded, Ant keeps chugging along
until it runs out of memory. Apparently, it's following the Links directory
(although, it's just a guess- the -debug flag doesn't give me any info).

So my question is - does the "excludes" parameter cause short circuiting of
the recursive descent when a match is seen, or does it not check for
exclusions until an actual file is found? Seems to me that what I want it
the same behavior as "**/CVS/*", but it doesn't seem to be happening.

Thanks,
John



> -----Original Message-----
> From: John Fisher [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 25, 2001 11:13 AM
> To: [EMAIL PROTECTED]
> Subject: Symbolic Links recursion
>
>
>
> Hi folks-
>
> I'm new to Ant, and particularly liking what I see so far. I
> would very much
> like to use Ant to solve some problems in our particular environment.
> Unfortunately, we are maintaining our Java code in Rational's
> Apex (we do a
> lot of Ada here too). As such, Apex likes to liter its directory structure
> with symbolic links pointing to other parts of the system. I played around
> with the 'excludes' tag, but I couldn't come up with a combination that
> works. I'm suspecting that symbolic links are followed, even though the
> exclusion pattern is already matched. Am I correct?
>
> Browsing through ant-user and ant-dev, it looks like a patch was suggested
> at one time to solve this, but was rejected. If I can turn off
> the following
> of symbolic links entirely I'd be happy. Even better, if the exclusion
> patterns I entered actually shorted-circuted the recursive directory
> descent.
>
> Do I have any options here?
>
> Thanks,
> John
>
>

Reply via email to