Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] split jars

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT ibiblio.org>
  • To: XOM interest <xom-interest AT lists.ibiblio.org>
  • Subject: [XOM-interest] split jars
  • Date: Sat, 3 Apr 2010 19:39:26 -0400

Does anyone happen to know how to write a jar task in Ant that would
bundle up everything in src/nu/xom except nu/xom/tests, nu/xom/tools,
nu/xom/samples, and nu/xom/pantry? This is a prerequisite for an
upgraded maven package.

I've been able to get Ant to exclude one directory, but not all of them.

This, for example, does not work:

<jar destFile="${sources.jar}" basedir="${build.dir}/src"
excludes="**/tests/**, **/tools/**"/>

It excludes tests but not tools. Contrary to all rational expectation
this also excludes tests but not tools:

<jar destFile="${sources.jar}" basedir="${build.dir}/src"
excludes="**/tools/**, **/tests/**"/>

I have not been able to make any rational sense out of which
directories Ant excludes when. :-(

--
Elliotte Rusty Harold
elharo AT ibiblio.org




Archive powered by MHonArc 2.6.24.

Top of Page