aboutsummaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorJ08nY2017-11-10 13:26:28 +0100
committerJ08nY2017-11-10 13:28:33 +0100
commitd2558f0bf731d24b0f227b9b10de25d42c52466c (patch)
treee974faef3141277c6ddf7da2dc4081537e3500b9 /build.xml
parent41fab902039e21179670edeee59fc8fa3f54db5b (diff)
downloadECTester-d2558f0bf731d24b0f227b9b10de25d42c52466c.tar.gz
ECTester-d2558f0bf731d24b0f227b9b10de25d42c52466c.tar.zst
ECTester-d2558f0bf731d24b0f227b9b10de25d42c52466c.zip
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/build.xml b/build.xml
index 49cc20a..3d778f3 100644
--- a/build.xml
+++ b/build.xml
@@ -104,7 +104,12 @@
<echo message="Packaging ${application.title} into a single JAR at ${store.jar}"/>
<tempfile property="temp.file" destDir="${java.io.tmpdir}" suffix=".jar"/>
+ <tempfile property="temp.previous_jar" destdir="${java.io.tmpdir}" suffix=".jar"/>
+ <copy file="${store.jar}" tofile="${temp.previous_jar}" failonerror="false"/>
+ <echo message="Backed up ${store.jar} into ${temp.previous_jar}"/>
+
+ <delete file="${store.jar}" failonerror="false"/>
<jar destfile="${temp.file}" filesetmanifest="skip">
<zipgroupfileset dir="dist" includes="*.jar"/>
<zipgroupfileset dir="dist/lib" includes="*.jar"/>
@@ -120,5 +125,6 @@
</zip>
<delete file="${temp.file}"/>
+ <delete file="${temp.previous_jar}"/>
</target>
</project>