ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "KARR, DAVID (ATTSI)" <dk0...@att.com>
Subject How to put all jars in a path variable (minus some exclusions) into WEB-INF/lib?
Date Thu, 20 May 2010 15:14:50 GMT
I have a "build.classpath" path variable.  I want all of the jars, but
not the classes, and minus some specific exclusions, to be put into my
WEB-INF/lib.  All of the jars specified there are stored in a specific
directory, but I don't know that I want to depend on that.

I have a "war" element, and a "lib" element below that.  I can use a
'includes="*.jar"' attribute and add exclusions for all the jars that I
don't want to include, but I'd really rather just have exclusions from
the "build.classpath" path variable.  This would include any specific
elements in that variable that refer to "classes" dirs, and any jars
that are implicit in the container.  If I can do it this way, it makes
it much easier to test varying versions of certain packages.  I can have
both versions in my "lib" directory, and just change a properties file
reference, and not even change the build.xml.  Without this capability,
I have to change both the properties file and the exclusions in the
"lib" element.

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


Mime
View raw message