mirror of
https://github.com/lov3b/Schack.git
synced 2025-01-18 12:50:10 +01:00
Bygginstruktioner för dup-jar
This commit is contained in:
parent
adefef247d
commit
7d1155390d
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,3 +6,4 @@ nbbuild/
|
||||
dist/
|
||||
nbdist/
|
||||
.nb-gradle/
|
||||
store
|
21
build.xml
21
build.xml
@ -70,4 +70,25 @@
|
||||
nbproject/build-impl.xml file.
|
||||
|
||||
-->
|
||||
<!-- Bygg alla libs i sista jar -->
|
||||
<target name="package-for-store" depends="jar">
|
||||
<property name="store.jar.name" value="Schack"/>
|
||||
<property name="store.dir" value="store"/>
|
||||
<property name="store.jar" value="${store.dir}/${store.jar.name}.jar"/>
|
||||
<echo message="Packaging ${application.title} 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>
|
||||
</project>
|
||||
|
Loading…
x
Reference in New Issue
Block a user