xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: alanhzone-xom AT yahoo.com
- To: xom-interest AT lists.ibiblio.org
- Cc: elharo AT ibiblio.org
- Subject: Re: [XOM-interest] split jars
- Date: Sat, 3 Apr 2010 19:48:39 -0700 (PDT)
Try this:
<jardestFile="${sources.jar}" basedir="${build.dir}/src" >
<fileset dir=".">
<include name= "**/src/**" />
<exclude name= "**/tools/**" />
<exclude name= "**/test/**" />
</fileset>
</jar>
I think you'll get what you're looking for.
alan
--- On Sat, 4/3/10, Elliotte Rusty Harold <elharo AT ibiblio.org> wrote:
From: Elliotte Rusty Harold <elharo AT ibiblio.org>
Subject: [XOM-interest] split jars
To: "XOM interest" <xom-interest AT lists.ibiblio.org>
Date: Saturday, April 3, 2010, 5:39 PM
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
_______________________________________________
XOM-interest mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest
-
[XOM-interest] split jars,
Elliotte Rusty Harold, 04/03/2010
-
Re: [XOM-interest] split jars,
alanhzone-xom, 04/03/2010
-
Re: [XOM-interest] split jars,
Elliotte Rusty Harold, 04/04/2010
-
Re: [XOM-interest] split jars,
alanhzone-xom, 04/04/2010
-
Message not available
- Re: [XOM-interest] split jars, Dave Pawson, 04/05/2010
-
Message not available
-
Re: [XOM-interest] split jars,
alanhzone-xom, 04/04/2010
-
Re: [XOM-interest] split jars,
Elliotte Rusty Harold, 04/04/2010
-
Re: [XOM-interest] split jars,
alanhzone-xom, 04/03/2010
Archive powered by MHonArc 2.6.24.