Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2006-06-23 11:11:12 +0000
committerDani Megert2006-06-23 11:11:12 +0000
commit187e233b7a870fdf09ca4ed8268325ff24799731 (patch)
treef54ed5f8781530dd2c83e9f14e6163daa823faee /org.eclipse.text/scripts/exportplugin.xml
parent160bc2e7392137d86b70b44e8e49c29b981fb8e4 (diff)
downloadeclipse.platform.text-187e233b7a870fdf09ca4ed8268325ff24799731.tar.gz
eclipse.platform.text-187e233b7a870fdf09ca4ed8268325ff24799731.tar.xz
eclipse.platform.text-187e233b7a870fdf09ca4ed8268325ff24799731.zip
read plug-in version from MANIFEST.MF
Diffstat (limited to 'org.eclipse.text/scripts/exportplugin.xml')
-rw-r--r--org.eclipse.text/scripts/exportplugin.xml9
1 files changed, 8 insertions, 1 deletions
diff --git a/org.eclipse.text/scripts/exportplugin.xml b/org.eclipse.text/scripts/exportplugin.xml
index c0005cc49..76c9e3036 100644
--- a/org.eclipse.text/scripts/exportplugin.xml
+++ b/org.eclipse.text/scripts/exportplugin.xml
@@ -4,7 +4,14 @@
<property name="destdir" value="../../plugin-export" />
<property name="plugin" value="org.eclipse.text" />
<property name="qualifier" value="zzz${DSTAMP}-${TSTAMP}" />
- <property name="plugin_version" value="_3.3.0.${qualifier}" />
+
+ <!-- define property ${plugin_version} by reading version from MANIFEST.MF: -->
+ <tempfile property="plugin_version_file" suffix=".plugin_version.tmp" destdir="${destdir}"/>
+ <copy file="META-INF/MANIFEST.MF" tofile="${plugin_version_file}"/>
+ <replaceregexp file="${plugin_version_file}" match=".*Bundle-Version: ((\d)+\.(\d)+\.(\d)+\.)qualifier.*" replace="plugin_version=_\1${qualifier}" flags="s" />
+ <property file="${plugin_version_file}"/>
+ <delete file="${plugin_version_file}" />
+
<property name="dest" value="${destdir}/${plugin}${plugin_version}" />
<property name="destjar" value="${destdir}/${plugin}${plugin_version}.jar" />
</target>

Back to the top