Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.core.filebuffers/scripts/exportplugin.xml9
-rw-r--r--org.eclipse.jface.text/scripts/exportplugin.xml9
-rw-r--r--org.eclipse.search/scripts/exportplugin.xml9
-rw-r--r--org.eclipse.ui.editors/scripts/exportplugin.xml9
4 files changed, 32 insertions, 4 deletions
diff --git a/org.eclipse.core.filebuffers/scripts/exportplugin.xml b/org.eclipse.core.filebuffers/scripts/exportplugin.xml
index aefc51df6..2db475257 100644
--- a/org.eclipse.core.filebuffers/scripts/exportplugin.xml
+++ b/org.eclipse.core.filebuffers/scripts/exportplugin.xml
@@ -4,7 +4,14 @@
<property name="destdir" value="../../plugin-export" />
<property name="plugin" value="org.eclipse.core.filebuffers" />
<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>
diff --git a/org.eclipse.jface.text/scripts/exportplugin.xml b/org.eclipse.jface.text/scripts/exportplugin.xml
index 0a7d5b3cd..8276ceb11 100644
--- a/org.eclipse.jface.text/scripts/exportplugin.xml
+++ b/org.eclipse.jface.text/scripts/exportplugin.xml
@@ -4,7 +4,14 @@
<property name="destdir" value="../../plugin-export" />
<property name="plugin" value="org.eclipse.jface.text" />
<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>
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>
diff --git a/org.eclipse.ui.editors/scripts/exportplugin.xml b/org.eclipse.ui.editors/scripts/exportplugin.xml
index 05b6d9d0c..13027d320 100644
--- a/org.eclipse.ui.editors/scripts/exportplugin.xml
+++ b/org.eclipse.ui.editors/scripts/exportplugin.xml
@@ -4,7 +4,14 @@
<property name="destdir" value="../../plugin-export" />
<property name="plugin" value="org.eclipse.ui.editors" />
<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