Skip to content
Browse files

Removing MANIFESTS from merged jars.

  • Loading branch information...
1 parent 8120f52 commit f5c8b652983764f2f47ca3d94d356456a460d7b8 Alexis Torres committed Mar 27, 2012
Showing with 13 additions and 4 deletions.
  1. +13 −4 build.xml
View
17 build.xml
@@ -158,16 +158,25 @@
</jar>
</target>
+ <target name="mergeexternal" depends="jar" description="generate the external fat jar">
+ <jar destfile="${build.dir}/external-libs.jar">
+ <zipgroupfileset dir="${compile.lib.dir}">
+ <include name="*.jar"/>
+ </zipgroupfileset>
+ </jar>
+ </target>
+
<!-- fat jaring using lib in compile lib folder + .classes generated by this build -->
- <target name="fatjar" depends="jar" description="generate the fat jar">
+ <target name="fatjar" depends="mergeexternal" description="generate the fat jar">
<jar destfile="${jar.nodep.file}" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="${classes.dir}"/>
- <zipgroupfileset dir="${compile.lib.dir}">
- <include name="*.jar"/>
- </zipgroupfileset>
+ <zipfileset src="${build.dir}/external-libs.jar">
+ <exclude name="META-INF/*.SF" />
+ <exclude name="META-INF/*.MF" />
+ </zipfileset>
</jar>
</target>

0 comments on commit f5c8b65

Please sign in to comment.
Something went wrong with that request. Please try again.