summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-03-08 10:08:05 (EST)
committerStephan Born2012-04-26 09:53:34 (EDT)
commitdea3fe34a87db2650fd754d1cb4f9e924eac5e86 (patch)
treed4ffbff4e5f6ac66a8fce7b3481423e9ecc1704c
parent1f5c59c1338a2842ee4b56b086b68c1ffeb00785 (diff)
downloadorg.eclipse.stardust.build.tools-dea3fe34a87db2650fd754d1cb4f9e924eac5e86.zip
org.eclipse.stardust.build.tools-dea3fe34a87db2650fd754d1cb4f9e924eac5e86.tar.gz
org.eclipse.stardust.build.tools-dea3fe34a87db2650fd754d1cb4f9e924eac5e86.tar.bz2
CRNT-23366 Fix build number issues in Tycho-Build
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/build.tools@54389 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--stardust-version.xml28
1 files changed, 28 insertions, 0 deletions
diff --git a/stardust-version.xml b/stardust-version.xml
new file mode 100644
index 0000000..aae480e
--- /dev/null
+++ b/stardust-version.xml
@@ -0,0 +1,28 @@
+<project name="stardustVersion" default="setStardustVersion">
+
+ <target name="setStardustVersion">
+ <echo message="Setting version to ${stardustVersion}"/>
+ <replaceregexp byline="true">
+ <regexp pattern="[0-9]+\.[0-9]+\.[0-9]-SNAPSHOT" />
+ <substitution expression="${stardustVersion}" />
+ <fileset dir="${stardustDir}">
+ <include name="**/pom.xml" />
+ </fileset>
+ </replaceregexp>
+ <replaceregexp byline="true">
+ <regexp pattern="Bundle-Version: *[0-9]+\.[0-9]+\.[0-9]+\.qualifier" />
+ <substitution expression="Bundle-Version: ${stardustVersion}" />
+ <fileset dir="${stardustDir}">
+ <include name="**/META-INF/MANIFEST.MF" />
+ </fileset>
+ </replaceregexp>
+ <replaceregexp byline="true">
+ <regexp pattern="[0-9]+\.[0-9]+\.[0-9]+\.qualifier" />
+ <substitution expression="${stardustVersion}" />
+ <fileset dir="${stardustDir}">
+ <include name="**/feature.xml" />
+ </fileset>
+ </replaceregexp>
+ </target>
+
+</project>