Advertisement
Armandobs14

fatjar netbeans

Nov 25th, 2014
418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.02 KB | None | 0 0
  1. <target name="-post-jar">  
  2.         <property name="store.jar.name" value="${application.title}-fat"/>
  3.         <property name="store.dir" value="store"/>  
  4.         <property name="store.jar" value="${store.dir}/${store.jar.name}.jar"/>
  5.         <echo message="Packaging ${store.jar.name} into a single JAR at ${store.jar}"/>
  6.         <delete dir="${store.dir}"/>  
  7.         <mkdir dir="${store.dir}"/>
  8.         <jar destfile="${store.dir}/temp_final.jar" filesetmanifest="skip">  
  9.             <zipgroupfileset dir="dist" includes="*.jar"/>  
  10.             <zipgroupfileset dir="dist/lib" includes="*.jar"/>  
  11.             <manifest>  
  12.                 <attribute name="Main-Class" value="${main.class}"/>                  
  13.             </manifest>  
  14.         </jar>
  15.         <zip destfile="${store.jar}">  
  16.             <zipfileset src="${store.dir}/temp_final.jar"  
  17.                        excludes="META-INF/*.SF, META-INF/*.DSA, META-INF/*.RSA"/>  
  18.         </zip>
  19.         <delete file="${store.dir}/temp_final.jar"/>
  20.     </target>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement