Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2017-12-20 03:38:20 -0500
committerEike Stepper2017-12-20 03:38:20 -0500
commit80b313f32db4ee4aa8aeb5eb0a7a5d6555563506 (patch)
tree9e6463e8f6dd87d2827c8a30377b1fd5f867f280
parent9f03dc36c60218cb4800c414df06b70ee36a8fd1 (diff)
downloadcdo-80b313f32db4ee4aa8aeb5eb0a7a5d6555563506.tar.gz
cdo-80b313f32db4ee4aa8aeb5eb0a7a5d6555563506.tar.xz
cdo-80b313f32db4ee4aa8aeb5eb0a7a5d6555563506.zip
[528979] Migrate build to Maven/Tycho
https://bugs.eclipse.org/bugs/show_bug.cgi?id=528979
-rw-r--r--releng/org.eclipse.emf.cdo.releng/build.xml46
-rw-r--r--releng/org.eclipse.emf.cdo.releng/local.properties.template1
-rw-r--r--releng/org.eclipse.emf.cdo.releng/xsl/bom2bookmarks.xsl12
3 files changed, 50 insertions, 9 deletions
diff --git a/releng/org.eclipse.emf.cdo.releng/build.xml b/releng/org.eclipse.emf.cdo.releng/build.xml
index cbca863b0e..2cf7d32a1f 100644
--- a/releng/org.eclipse.emf.cdo.releng/build.xml
+++ b/releng/org.eclipse.emf.cdo.releng/build.xml
@@ -109,6 +109,41 @@
</sequential>
</macrodef>
+ <!-- =================== -->
+ <!-- Generate Booksmarks -->
+ <!-- =================== -->
+
+ <macrodef name="generate.bookmarks">
+ <sequential>
+ <echo message="" />
+ <echo message="Generating dependency bookmarks" />
+ <property name="bookmarks.tmp" location="${build.root}/bookmarks.tmp" />
+ <xslt style="xsl/bom2bookmarks.xsl" in="${releng.dir}/org.eclipse.emf.cdo.releng.target" out="${bookmarks.tmp}" />
+ <property name="bookmarks.xml" location="${build.root}/bookmarks.xml" />
+ <concat destfile="${bookmarks.xml}">
+ <header filtering="false">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
+&lt;bookmarks&gt;
+</header>
+ <union>
+ <sort>
+ <tokens>
+ <file file="${bookmarks.tmp}" />
+ <linetokenizer includedelims="true" />
+ </tokens>
+ </sort>
+ </union>
+ <filterchain>
+ <linecontains>
+ <contains value="http://" />
+ </linecontains>
+ </filterchain>
+ <footer filtering="false">&lt;/bookmarks&gt;
+ </footer>
+ </concat>
+ <delete file="${bookmarks.tmp}" />
+ </sequential>
+ </macrodef>
+
<!-- ================ -->
<!-- Generate Dropins -->
<!-- ================ -->
@@ -125,7 +160,7 @@
<include name="plugins/*.jar" />
</fileset>
</zip>
- <echo message=" for use with a &lt;a href=&quot;http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/p2_dropins_format.html&quot;&gt;dropins&lt;/a&gt; folder."
+ <echo message=" for use with a &lt;a href=&quot;http://help.eclipse.org/oxygen/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/p2_dropins_format.html&quot;&gt;dropins&lt;/a&gt; folder."
file="${zips}/emf-cdo-${build.qualifier}-Dropins.properties" />
</sequential>
</macrodef>
@@ -442,6 +477,15 @@
<if>
<not>
+ <equals arg1="${skip.generate.bookmarks}" arg2="true" />
+ </not>
+ <then>
+ <generate.bookmarks />
+ </then>
+ </if>
+
+ <if>
+ <not>
<equals arg1="${skip.generate.dropins}" arg2="true" />
</not>
<then>
diff --git a/releng/org.eclipse.emf.cdo.releng/local.properties.template b/releng/org.eclipse.emf.cdo.releng/local.properties.template
index 45420929fb..975942f421 100644
--- a/releng/org.eclipse.emf.cdo.releng/local.properties.template
+++ b/releng/org.eclipse.emf.cdo.releng/local.properties.template
@@ -26,3 +26,4 @@ skip.generate.site = false
skip.generate.help = false
skip.generate.index = false
skip.generate.dropins = false
+skip.generate.bookmarks =false
diff --git a/releng/org.eclipse.emf.cdo.releng/xsl/bom2bookmarks.xsl b/releng/org.eclipse.emf.cdo.releng/xsl/bom2bookmarks.xsl
index eff2705097..e55688b3ef 100644
--- a/releng/org.eclipse.emf.cdo.releng/xsl/bom2bookmarks.xsl
+++ b/releng/org.eclipse.emf.cdo.releng/xsl/bom2bookmarks.xsl
@@ -1,21 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:md="http://www.eclipse.org/buckminster/MetaData-1.0" exclude-result-prefixes="md">
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
- <xsl:apply-templates select="//md:resolution"/>
+ <xsl:apply-templates select="//repository"/>
</xsl:template>
- <xsl:template match="md:resolution">
+ <xsl:template match="repository">
<site>
<xsl:attribute name="url">
- <xsl:value-of select="@repository"/>
+ <xsl:value-of select="@location"/>
</xsl:attribute>
<xsl:attribute name="selected">true</xsl:attribute>
- <xsl:attribute name="name">
- <xsl:value-of select="@repository"/>
- </xsl:attribute>
</site>
</xsl:template>

Back to the top