aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/build.xml13
-rw-r--r--common/manifest.template6
2 files changed, 16 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>
diff --git a/common/manifest.template b/common/manifest.template
new file mode 100644
index 000000000..734f23f58
--- /dev/null
+++ b/common/manifest.template
@@ -0,0 +1,6 @@
+Manifest-version: 1.0
+
+Name: at/gv/egovernment/moa/util/
+Implementation-Title: MOA-Common
+Implementation-Version: @version@
+Implementation-URL: http://www.cio.gv.at/onlineservices/basicmodules/