<targetname="package-for-store"depends="jar"> <!-- Change the value of this property to be the name of your JAR, minus the .jar extension. It should not have spaces. <property name="store.jar.name" value="MyJarName"/> --> <propertyname="store.jar.name"value="YouJarPacketName"/> <!-- don't edit below this line --> <propertyname="store.dir"value="store"/> <propertyname="store.jar"value="${store.dir}/${store.jar.name}.jar"/> <echomessage="Packaging ${application.title} into a single JAR at ${store.jar}"/> <deletedir="${store.dir}"/> <mkdirdir="${store.dir}"/> <jardestfile="${store.dir}/temp_final.jar"filesetmanifest="skip"> <zipgroupfilesetdir="dist"includes="*.jar"/> <zipgroupfilesetdir="dist/lib"includes="*.jar"/> <manifest> <attributename="Main-Class"value="${main.class}"/> </manifest> </jar> <zipdestfile="${store.jar}"> <zipfilesetsrc="${store.dir}/temp_final.jar" excludes="META-INF/*.SF, META-INF/*.DSA, META-INF/*.RSA"/> </zip> <deletefile="${store.dir}/temp_final.jar"/> </target>