Author: nickboldt
Date: 2010-09-18 01:24:05 -0400 (Sat, 18 Sep 2010)
New Revision: 25006
Modified:
trunk/build/target-platform/target2ant.xsl
Log:
update XLST to transform target platform into p2.mirror script; next step is to generate
an update site from the available features here
Modified: trunk/build/target-platform/target2ant.xsl
===================================================================
--- trunk/build/target-platform/target2ant.xsl 2010-09-17 21:24:49 UTC (rev 25005)
+++ trunk/build/target-platform/target2ant.xsl 2010-09-18 05:24:05 UTC (rev 25006)
@@ -6,7 +6,8 @@
<xsl:decimal-format decimal-separator="."
grouping-separator="," />
- <xsl:param name="verbose" select="'false'" />
+ <xsl:param name="verbose" select="'${verbose}'" />
+ <xsl:param name="followStrict" select="'${followStrict}'"
/>
<xsl:param name="destination" select="'file:${repo.dir}'"
/>
<xsl:variable name="platformFilter"
@@ -14,20 +15,40 @@
<xsl:template match="target">
<project name="Download target platform"
default="download.target.platform">
- <!-- use followStrict="true" to prevent downloading all requirements not
- included in the target platform or followStrict="false" to fetch everything
-->
+ <target name="help">
+ <echo>
+ Use followStrict="true" to prevent downloading all
+ requirements not included in the target platform
+ or
+ followStrict="false" to fetch everything
+
+ To run this script:
+
+ ./eclipse -vm /opt/jdk1.6.0/bin/java -nosplash
+ -data \
+ /tmp/workspace -consolelog -application \
+ org.eclipse.ant.core.antRunner -f out.xml \
+ -Ddebug=true \
+ -DfollowStrict=false \
+ -Drepo.dir=/tmp/REPO/
+</echo>
+ </target>
<target name="init" unless="repo.dir">
<fail>Must set -Drepo.dir=/path/to/download/artifacts/</fail>
</target>
<target name="download.target.platform" depends="init"
description="Download from target platform definition"
if="repo.dir">
+ <property name="verbose" value="false" />
+ <property name="followStrict" value="false" />
<echo level="info">Download features/plugins into
${repo.dir}</echo>
<p2.mirror destination="{$destination}"
verbose="{$verbose}">
- <slicingOptions includeFeatures="true" followStrict="false"
/>
+ <slicingOptions includeFeatures="true"
followStrict="{$followStrict}" />
<source>
<xsl:apply-templates select="//repository" />
</source>
<xsl:apply-templates select="//unit" />
+ <xsl:apply-templates select="//feature" />
+ <xsl:apply-templates select="//plugin" />
</p2.mirror>
</target>
</project>
@@ -42,6 +63,14 @@
<iu id="{@id}" version="{@version}" />
</xsl:template>
+ <xsl:template match="//plugin">
+ <iu id="{@id}" version="" />
+ </xsl:template>
+
+ <xsl:template match="//feature">
+ <iu id="{(a)id}.feature.group" version="" />
+ </xsl:template>
+
<!-- ignore anything else -->
<xsl:template match="environment|targetJRE|launcherArgs|includeBundles"
/>
Show replies by date