Author: nickboldt
Date: 2010-09-30 17:45:55 -0400 (Thu, 30 Sep 2010)
New Revision: 25366
Added:
trunk/build/target-platform/OLD/target2pomXml.xsl
trunk/build/target-platform/OLD/target2site.xml
trunk/build/target-platform/OLD/target2siteXml.xsl
Removed:
trunk/build/target-platform/target2pomXml.xsl
trunk/build/target-platform/target2site.xml
trunk/build/target-platform/target2siteXml.xsl
Log:
deprecated scripts for generating tycho update site from .target file
Copied: trunk/build/target-platform/OLD/target2pomXml.xsl (from rev 25174,
trunk/build/target-platform/target2pomXml.xsl)
===================================================================
--- trunk/build/target-platform/OLD/target2pomXml.xsl (rev 0)
+++ trunk/build/target-platform/OLD/target2pomXml.xsl 2010-09-30 21:45:55 UTC (rev 25366)
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+ <xsl:output method="xml" indent="yes" encoding="UTF-8"
+ version="1.0" />
+ <xsl:decimal-format decimal-separator="."
+ grouping-separator="," />
+
+ <xsl:param name="useLatest" select="'true'" />
+
+ <xsl:variable name="platformFilter"
+ select="concat(/target/environment/os/text(), ',',
/target/environment/ws/text(), ',', /target/environment/arch/text())" />
+
+ <xsl:template match="target">
+ <project
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"
+
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.parent.pom</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.target.platform.site</artifactId>
+ <name>JBoss Tools Target Platform Definition Site</name>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>eclipse-update-site</packaging>
+
+ <profiles>
+ <profile>
+ <id>targetPlatformRepositories</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <repositories>
+ <xsl:apply-templates select="//repository" />
+ </repositories>
+ </profile>
+ </profiles>
+ </project>
+ </xsl:template>
+
+ <xsl:template match="//repository">
+ <repository>
+ <id>
+ <xsl:variable name="myString" select="@id" />
+ <xsl:variable name="myNewString">
+ <xsl:call-template name="replaceCharsInString">
+ <xsl:with-param name="stringIn"
+ select="substring-after(@location, '//')" />
+ <xsl:with-param name="charsIn" select="'/'" />
+ <xsl:with-param name="charsOut" select="'_'" />
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:value-of select="$myNewString" />
+ </id>
+ <url>
+ <xsl:value-of select="@location" />
+ </url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ </xsl:template>
+
+ <!-- ignore anything else -->
+ <xsl:template
+ match="environment|targetJRE|launcherArgs|includeBundles|location|locations|unit|feature"
/>
+
+ <!-- pretend this is in a template -->
+
+ <!-- here is the template that does the replacement -->
+ <xsl:template name="replaceCharsInString">
+ <xsl:param name="stringIn" />
+ <xsl:param name="charsIn" />
+ <xsl:param name="charsOut" />
+ <xsl:choose>
+ <xsl:when test="contains($stringIn,$charsIn)">
+ <xsl:value-of
+ select="concat(substring-before($stringIn,$charsIn),$charsOut)" />
+ <xsl:call-template name="replaceCharsInString">
+ <xsl:with-param name="stringIn"
+ select="substring-after($stringIn,$charsIn)" />
+ <xsl:with-param name="charsIn" select="$charsIn" />
+ <xsl:with-param name="charsOut" select="$charsOut" />
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$stringIn" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file
Property changes on: trunk/build/target-platform/OLD/target2pomXml.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Copied: trunk/build/target-platform/OLD/target2site.xml (from rev 25174,
trunk/build/target-platform/target2site.xml)
===================================================================
--- trunk/build/target-platform/OLD/target2site.xml (rev 0)
+++ trunk/build/target-platform/OLD/target2site.xml 2010-09-30 21:45:55 UTC (rev 25366)
@@ -0,0 +1,15 @@
+<project default="custom.build" name="jbosstools target platform
pom.xml + site.xml generator">
+ <property name="targetFile" value="e361-wtp322.target" />
+
+ <target name="custom.build" depends="pom.xml, site.xml" />
+
+ <target name="pom.xml" description="use XSLT to generate a pom.xml
from .target">
+ <echo level="verbose">Generate site/pom.xml from
${targetFile}</echo>
+ <xslt style="target2pomXml.xsl" in="${targetFile}"
out="site/pom.xml" processor="trax" />
+ </target>
+
+ <target name="site.xml" description="use XSLT to generate a site.xml
from .target">
+ <echo level="verbose">Generate site/site.xml from
${targetFile}</echo>
+ <xslt style="target2siteXml.xsl" in="${targetFile}"
out="site/site.xml" processor="trax" />
+ </target>
+</project>
Property changes on: trunk/build/target-platform/OLD/target2site.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Copied: trunk/build/target-platform/OLD/target2siteXml.xsl (from rev 25174,
trunk/build/target-platform/target2siteXml.xsl)
===================================================================
--- trunk/build/target-platform/OLD/target2siteXml.xsl (rev 0)
+++ trunk/build/target-platform/OLD/target2siteXml.xsl 2010-09-30 21:45:55 UTC (rev
25366)
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+ <xsl:output method="xml" indent="yes" encoding="UTF-8"
+ version="1.0" />
+ <xsl:decimal-format decimal-separator="."
+ grouping-separator="," />
+
+ <!-- should we include {@version} for specific ver, or 0.0.0 for latest
+ avail? -->
+ <xsl:param name="useLatest" select="'true'" />
+
+ <xsl:variable name="platformFilter"
+ select="concat(/target/environment/os/text(), ',',
/target/environment/ws/text(), ',', /target/environment/arch/text())" />
+
+ <xsl:template match="target">
+ <site>
+ <description>JBoss Tools Target Platform Update Site / p2
Repo</description>
+ <category-def name="TargetPlatform" label="TargetPlatform">
+ <description>JBoss Tools Target Platform</description>
+ </category-def>
+
+ <xsl:apply-templates select="//unit" />
+ <xsl:apply-templates select="//feature" />
+ </site>
+ </xsl:template>
+
+ <xsl:template match="//unit">
+ <xsl:choose>
+ <xsl:when
test="substring-before((a)id,'.feature.group')!=''">
+ <xsl:choose>
+ <xsl:when test="$useLatest='true'">
+ <feature
+ url="features/{substring-before((a)id,'.feature.group')}_0.0.0.jar"
+ id="{substring-before((a)id,'.feature.group')}"
version="0.0.0">
+ <category name="TargetPlatform" />
+ </feature>
+ </xsl:when>
+ <xsl:otherwise>
+ <feature
+ url="features/{substring-before(@id,'.feature.group')}_{(a)version}.jar"
+ id="{substring-before((a)id,'.feature.group')}"
version="{@version}">
+ <category name="TargetPlatform" />
+ </feature>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="$useLatest='true'">
+ <bundle url="plugins/{(a)id}_0.0.0.jar" id="{@id}"
+ version="0.0.0">
+ <category name="TargetPlatform" />
+ </bundle>
+ </xsl:when>
+ <xsl:otherwise>
+ <bundle url="plugins/{@id}_{(a)version}.jar" id="{@id}"
+ version="{@version}">
+ <category name="TargetPlatform" />
+ </bundle>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="//feature">
+ <feature url="features/{(a)id}_0.0.0.jar" id="{@id}"
version="0.0.0">
+ <category name="TargetPlatform" />
+ </feature>
+ </xsl:template>
+
+ <!-- ignore anything else -->
+ <xsl:template
+ match="environment|targetJRE|launcherArgs|includeBundles|location|locations"
/>
+
+</xsl:stylesheet>
\ No newline at end of file
Property changes on: trunk/build/target-platform/OLD/target2siteXml.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Deleted: trunk/build/target-platform/target2pomXml.xsl
===================================================================
--- trunk/build/target-platform/target2pomXml.xsl 2010-09-30 21:44:01 UTC (rev 25365)
+++ trunk/build/target-platform/target2pomXml.xsl 2010-09-30 21:45:55 UTC (rev 25366)
@@ -1,99 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
- <xsl:output method="xml" indent="yes" encoding="UTF-8"
- version="1.0" />
- <xsl:decimal-format decimal-separator="."
- grouping-separator="," />
-
- <xsl:param name="useLatest" select="'true'" />
-
- <xsl:variable name="platformFilter"
- select="concat(/target/environment/os/text(), ',',
/target/environment/ws/text(), ',', /target/environment/arch/text())" />
-
- <xsl:template match="target">
- <project
-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"
-
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.jboss.tools</groupId>
- <artifactId>org.jboss.tools.parent.pom</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- </parent>
- <groupId>org.jboss.tools</groupId>
- <artifactId>org.jboss.tools.target.platform.site</artifactId>
- <name>JBoss Tools Target Platform Definition Site</name>
- <version>0.0.1-SNAPSHOT</version>
- <packaging>eclipse-update-site</packaging>
-
- <profiles>
- <profile>
- <id>targetPlatformRepositories</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <repositories>
- <xsl:apply-templates select="//repository" />
- </repositories>
- </profile>
- </profiles>
- </project>
- </xsl:template>
-
- <xsl:template match="//repository">
- <repository>
- <id>
- <xsl:variable name="myString" select="@id" />
- <xsl:variable name="myNewString">
- <xsl:call-template name="replaceCharsInString">
- <xsl:with-param name="stringIn"
- select="substring-after(@location, '//')" />
- <xsl:with-param name="charsIn" select="'/'" />
- <xsl:with-param name="charsOut" select="'_'" />
- </xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="$myNewString" />
- </id>
- <url>
- <xsl:value-of select="@location" />
- </url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- </xsl:template>
-
- <!-- ignore anything else -->
- <xsl:template
- match="environment|targetJRE|launcherArgs|includeBundles|location|locations|unit|feature"
/>
-
- <!-- pretend this is in a template -->
-
- <!-- here is the template that does the replacement -->
- <xsl:template name="replaceCharsInString">
- <xsl:param name="stringIn" />
- <xsl:param name="charsIn" />
- <xsl:param name="charsOut" />
- <xsl:choose>
- <xsl:when test="contains($stringIn,$charsIn)">
- <xsl:value-of
- select="concat(substring-before($stringIn,$charsIn),$charsOut)" />
- <xsl:call-template name="replaceCharsInString">
- <xsl:with-param name="stringIn"
- select="substring-after($stringIn,$charsIn)" />
- <xsl:with-param name="charsIn" select="$charsIn" />
- <xsl:with-param name="charsOut" select="$charsOut" />
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$stringIn" />
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-</xsl:stylesheet>
\ No newline at end of file
Deleted: trunk/build/target-platform/target2site.xml
===================================================================
--- trunk/build/target-platform/target2site.xml 2010-09-30 21:44:01 UTC (rev 25365)
+++ trunk/build/target-platform/target2site.xml 2010-09-30 21:45:55 UTC (rev 25366)
@@ -1,15 +0,0 @@
-<project default="custom.build" name="jbosstools target platform
pom.xml + site.xml generator">
- <property name="targetFile" value="e36-wtp32.target" />
-
- <target name="custom.build" depends="pom.xml, site.xml" />
-
- <target name="pom.xml" description="use XSLT to generate a pom.xml
from .target">
- <echo level="verbose">Generate site/pom.xml from
${targetFile}</echo>
- <xslt style="target2pomXml.xsl" in="${targetFile}"
out="site/pom.xml" processor="trax" />
- </target>
-
- <target name="site.xml" description="use XSLT to generate a site.xml
from .target">
- <echo level="verbose">Generate site/site.xml from
${targetFile}</echo>
- <xslt style="target2siteXml.xsl" in="${targetFile}"
out="site/site.xml" processor="trax" />
- </target>
-</project>
Deleted: trunk/build/target-platform/target2siteXml.xsl
===================================================================
--- trunk/build/target-platform/target2siteXml.xsl 2010-09-30 21:44:01 UTC (rev 25365)
+++ trunk/build/target-platform/target2siteXml.xsl 2010-09-30 21:45:55 UTC (rev 25366)
@@ -1,78 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
- <xsl:output method="xml" indent="yes" encoding="UTF-8"
- version="1.0" />
- <xsl:decimal-format decimal-separator="."
- grouping-separator="," />
-
- <!-- should we include {@version} for specific ver, or 0.0.0 for latest
- avail? -->
- <xsl:param name="useLatest" select="'true'" />
-
- <xsl:variable name="platformFilter"
- select="concat(/target/environment/os/text(), ',',
/target/environment/ws/text(), ',', /target/environment/arch/text())" />
-
- <xsl:template match="target">
- <site>
- <description>JBoss Tools Target Platform Update Site / p2
Repo</description>
- <category-def name="TargetPlatform" label="TargetPlatform">
- <description>JBoss Tools Target Platform</description>
- </category-def>
-
- <xsl:apply-templates select="//unit" />
- <xsl:apply-templates select="//feature" />
- </site>
- </xsl:template>
-
- <xsl:template match="//unit">
- <xsl:choose>
- <xsl:when
test="substring-before((a)id,'.feature.group')!=''">
- <xsl:choose>
- <xsl:when test="$useLatest='true'">
- <feature
- url="features/{substring-before((a)id,'.feature.group')}_0.0.0.jar"
- id="{substring-before((a)id,'.feature.group')}"
version="0.0.0">
- <category name="TargetPlatform" />
- </feature>
- </xsl:when>
- <xsl:otherwise>
- <feature
- url="features/{substring-before(@id,'.feature.group')}_{(a)version}.jar"
- id="{substring-before((a)id,'.feature.group')}"
version="{@version}">
- <category name="TargetPlatform" />
- </feature>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="$useLatest='true'">
- <bundle url="plugins/{(a)id}_0.0.0.jar" id="{@id}"
- version="0.0.0">
- <category name="TargetPlatform" />
- </bundle>
- </xsl:when>
- <xsl:otherwise>
- <bundle url="plugins/{@id}_{(a)version}.jar" id="{@id}"
- version="{@version}">
- <category name="TargetPlatform" />
- </bundle>
- </xsl:otherwise>
- </xsl:choose>
-
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="//feature">
- <feature url="features/{(a)id}_0.0.0.jar" id="{@id}"
version="0.0.0">
- <category name="TargetPlatform" />
- </feature>
- </xsl:template>
-
- <!-- ignore anything else -->
- <xsl:template
- match="environment|targetJRE|launcherArgs|includeBundles|location|locations"
/>
-
-</xsl:stylesheet>
\ No newline at end of file