I currently have this:
<jarjar destfile="a.jar" manifest="Manifest.mf">
  <zipfileset src="first.jar"/>
  <zipfileset src="second.jar"/>
</jarjar>
The problem is I have to manually specify each jar, because I need the src parameter to be taken in consideration. I would want something like this:
<zipfileset>
   <include name="*.jar"/>
<zipfileset>
And have their contents extracted and included in my resulting archive. Is this possible?
Maybe you could merge the jars first with:
<zip destfile="out.jar">
  <zipgroupfileset dir="lib" includes="*.jar"/>
</zip>
and specify the merged jar in the zipfileset.
zipgroupfileset
A <zipgroupfileset> allows for multiple zip files to be merged intothe archive. Each file found in this fileset is added to the archive the same way that zipfileset src files are added.
<zipgroupfileset> is a fileset and supports all of its attributes andnested elements.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With