summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorJosh Suereth <joshua.suereth@gmail.com>2012-04-23 13:18:37 -0400
committerJosh Suereth <joshua.suereth@gmail.com>2012-04-23 13:18:37 -0400
commit851491c73f8a9f87845a00c851f3fbc5ab7d0344 (patch)
tree7101123d17c496e02c0bf4a01d94c402f9c0d1a4 /build.xml
parent8c95273b70288e4e3a547fa43f2dbdb40a71b9ea (diff)
downloadscala-851491c73f8a9f87845a00c851f3fbc5ab7d0344.tar.gz
scala-851491c73f8a9f87845a00c851f3fbc5ab7d0344.tar.bz2
scala-851491c73f8a9f87845a00c851f3fbc5ab7d0344.zip
Fixes to OSGi version number based on IDE team's suggestions.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml23
1 files changed, 21 insertions, 2 deletions
diff --git a/build.xml b/build.xml
index 9bcc346a03..d0828ff6f2 100644
--- a/build.xml
+++ b/build.xml
@@ -274,7 +274,26 @@ INITIALISATION
<property name="version.suffix" value="-${version.bnum}"/>
</target>
- <target name="init.build.suffix.done" depends="init.build.release, init.build.patch.release"/>
+ <target name="init.hasmavensuffix" if="build.release" depends="init.build.patch.release, init.build.release">
+ <condition property="version.hasmavensuffix">
+ <not><equals arg1="${maven.version.suffix}" arg2=""/></not>
+ </condition>
+ </target>
+
+ <target name="init.osgi.suffix" if="version.hasmavensuffix" depends="init.hasmavensuffix">
+ <property name="osgi.version.suffix" value="${maven.version.suffix}"/>
+ </target>
+
+ <target name="init.osgi.suffix.final" if="build.release" unless="version.hasmavensuffix" depends="init.hasmavensuffix">
+ <property name="osgi.version.suffix" value="-VFINAL"/>
+ </target>
+
+
+ <target name="init.osgi.suffix.snapshot" unless="build.release" depends="init.hasmavensuffix">
+ <property name="osgi.version.suffix" value=""/>
+ </target>
+
+ <target name="init.build.suffix.done" depends="init.build.release, init.build.patch.release, init.osgi.suffix, init.osgi.suffix.final, init.osgi.suffix.snapshot"/>
<target name="init.version.git" depends="init.build.suffix.done">
<!-- Find out whether we are running on Windows -->
@@ -296,7 +315,7 @@ INITIALISATION
value="${version.major}.${version.minor}.${version.patch}${version.suffix}${maven.version.suffix}"/>
<property
name="osgi.version.number"
- value="${version.major}.${version.minor}.${version.patch}.v${git.commit.date}${version.suffix}-${git.commit.sha}"/>
+ value="${version.major}.${version.minor}.${version.patch}.v${git.commit.date}${version.suffix}${osgi.version.suffix}-${git.commit.sha}"/>
</target>
<target name="init.version.snapshot" unless="build.release" depends="init.version.git">