aboutsummaryrefslogtreecommitdiff
path: root/common/build.xml
diff options
context:
space:
mode:
authorpeter.danner <peter.danner@d688527b-c9ab-4aba-bd8d-4036d912da1d>2007-07-31 12:32:16 +0000
committerpeter.danner <peter.danner@d688527b-c9ab-4aba-bd8d-4036d912da1d>2007-07-31 12:32:16 +0000
commit9dc5bdc0267ad0650efd4b629273506395b10b6c (patch)
tree448195c579dfbcac5fd8bd9dc38df7bbc4db3760 /common/build.xml
parentdc176228408d0f57904f85f03fddd11311f67d76 (diff)
downloadmoa-id-spss-9dc5bdc0267ad0650efd4b629273506395b10b6c.tar.gz
moa-id-spss-9dc5bdc0267ad0650efd4b629273506395b10b6c.tar.bz2
moa-id-spss-9dc5bdc0267ad0650efd4b629273506395b10b6c.zip
Added version infomation do jar-result
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@861 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'common/build.xml')
-rw-r--r--common/build.xml13
1 files changed, 10 insertions, 3 deletions
diff --git a/common/build.xml b/common/build.xml
index b1075212d..cf352e47b 100644
--- a/common/build.xml
+++ b/common/build.xml
@@ -8,6 +8,7 @@
-->
<project name="moa.common" default="package" basedir=".">
<property environment="env"/>
+ <property name="version" value="1.4.0"/>
<property name="src" value="src"/>
<property name="res" value="res"/>
<property name="tmp" value="tmp"/>
@@ -57,12 +58,12 @@
</target>
<!-- package jar file -->
- <target name="package" depends="compile">
- <jar destfile="${env.MOA_COMMON_JAR}">
+ <target name="package" depends="compile,manifest">
+ <jar destfile="${env.MOA_COMMON_JAR}" manifest="${tmp}/MANIFEST.MF">
<fileset dir="${compile}" excludes="test/**"/>
<fileset dir="${res}"/>
</jar>
- <jar destfile="${env.MOA_COMMON_TEST_JAR}">
+ <jar destfile="${env.MOA_COMMON_TEST_JAR}" manifest="${tmp}/MANIFEST.MF">
<fileset dir="${compile}"/>
<fileset dir="${res}"/>
</jar>
@@ -75,4 +76,10 @@
<target name="clean">
<delete dir="${tmp}"/>
</target>
+
+ <!-- prepare Manifest file -->
+ <target name="manifest">
+ <filter token="version" value="${version}" />
+ <copy file="manifest.template" tofile="${tmp}/MANIFEST.MF" overwrite="true" filtering="true" />
+ </target>
</project>