Elliotte Rusty Harold
2010-04-03 23:39:26 UTC
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. :-(
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
Elliotte Rusty Harold
elharo at ibiblio.org