Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.search/scripts/exportplugin.xml')
-rw-r--r--org.eclipse.search/scripts/exportplugin.xml9
1 files changed, 8 insertions, 1 deletions
diff --git a/org.eclipse.search/scripts/exportplugin.xml b/org.eclipse.search/scripts/exportplugin.xml
index ce8988c56..382bc661c 100644
--- a/org.eclipse.search/scripts/exportplugin.xml
+++ b/org.eclipse.search/scripts/exportplugin.xml
@@ -4,7 +4,14 @@
<property name="destdir" value="../../plugin-export" />
<property name="plugin" value="org.eclipse.search" />
<property name="qualifier" value="zzz${DSTAMP}-${TSTAMP}" />
- <property name="plugin_version" value="_3.2.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