Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.executable/customBuildCallbacks.xml')
-rw-r--r--bundles/org.eclipse.equinox.executable/customBuildCallbacks.xml21
1 files changed, 20 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.executable/customBuildCallbacks.xml b/bundles/org.eclipse.equinox.executable/customBuildCallbacks.xml
index eaed1dddc..48a9f1676 100644
--- a/bundles/org.eclipse.equinox.executable/customBuildCallbacks.xml
+++ b/bundles/org.eclipse.equinox.executable/customBuildCallbacks.xml
@@ -43,7 +43,26 @@
<target name="post.build.sources">
</target>
- <target name="pre.gather.bin.parts">
+ <target name="pre.gather.bin.parts" unless="dontFetchBinaries">
+ <property file="${basedir}/build.properties" />
+ <basename file="${basedir}" property="fragmentName" />
+ <available file="/gitroot/equinox/rt.equinox.binaries.git" type="dir" property="gitRepo" value="/gitroot/equinox/rt.equinox.binaries.git" />
+ <property name="gitRepo" value="ssh://git.eclipse.org/gitroot/equinox/rt.equinox.binaries.git" />
+
+ <echo message="${fragmentName}"/>
+ <echo message="${gitRepo}"/>
+ <echo message="${binaryTag}"/>
+
+ <exec dir="${basedir}" executable="git" output="${basedir}/binary.tar" errorproperty="errorResult" >
+ <arg line="archive --format=tar --remote=${gitRepo} ${binaryTag} ${fragmentName}" />
+ </exec>
+
+ <copy todir="${basedir}">
+ <tarfileset includes="${fragmentName}/**" src="${basedir}/binary.tar" />
+ <globmapper from="${fragmentName}/*" to="*" />
+ </copy>
+
+ <delete file="${basedir}/binary.tar" failonerror="false" quiet="true" />
</target>
<!-- ===================================================================== -->

Back to the top