Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <target name="-post-jar">
- <property name="store.jar.name" value="${application.title}-fat"/>
- <property name="store.dir" value="store"/>
- <property name="store.jar" value="${store.dir}/${store.jar.name}.jar"/>
- <echo message="Packaging ${store.jar.name} into a single JAR at ${store.jar}"/>
- <delete dir="${store.dir}"/>
- <mkdir dir="${store.dir}"/>
- <jar destfile="${store.dir}/temp_final.jar" filesetmanifest="skip">
- <zipgroupfileset dir="dist" includes="*.jar"/>
- <zipgroupfileset dir="dist/lib" includes="*.jar"/>
- <manifest>
- <attribute name="Main-Class" value="${main.class}"/>
- </manifest>
- </jar>
- <zip destfile="${store.jar}">
- <zipfileset src="${store.dir}/temp_final.jar"
- excludes="META-INF/*.SF, META-INF/*.DSA, META-INF/*.RSA"/>
- </zip>
- <delete file="${store.dir}/temp_final.jar"/>
- </target>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement