ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Taylor" <>
Subject negating a patternset within a fileset
Date Fri, 15 Sep 2006 21:14:24 GMT

I want to use a patternset to tell a jar task which files to include in
a jar.  Easy enough, but I want to EXclude those same files from another
jar while building the jar from other files in the same directory.  So,
essentially, I want to negate the patternset in the fileset for the
second jar file.  Is there any way to do this?

I have found a solution by moving the patternset patterns into an
includesfile and an excludesfile, however, I'd like to keep the
patternset if possible.  Another solution is to move the files to a temp
directory using the patternset, invoking the jar task, and then moving
them back, but that's a bit messy.

Thanks in advance,

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

View raw message