aboutsummaryrefslogtreecommitdiff
path: root/common/build.xml
diff options
context:
space:
mode:
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>