Author: mickael_istria
Date: 2012-10-02 09:47:56 -0400 (Tue, 02 Oct 2012)
New Revision: 44215
Added:
trunk/build/target-platforms/jbds/jenkins/
trunk/build/target-platforms/jbds/jenkins/multiple2unified.xsl
trunk/build/target-platforms/jbds/jenkins/pom.xml
trunk/build/target-platforms/jenkins/
trunk/build/target-platforms/jenkins/multiple2jenkins.xsl
trunk/build/target-platforms/jenkins/pom.xml
Log:
JBIDE-12773: Jenkins target-platfoms (same as unified, but using local FS URL)
Added: trunk/build/target-platforms/jbds/jenkins/multiple2unified.xsl
===================================================================
--- trunk/build/target-platforms/jbds/jenkins/multiple2unified.xsl
(rev 0)
+++ trunk/build/target-platforms/jbds/jenkins/multiple2unified.xsl 2012-10-02 13:47:56 UTC
(rev 44215)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ version="2.0">
+
+ <xsl:output method="xml" encoding="UTF-8"
indent="yes"/>
+ <xsl:param name="destinationUrl"/>
+
+ <xsl:template match="target">
+ <target includeMode="feature" name="e42-wtp34-jbds6">
+ <locations>
+ <location includeAllPlatforms="false" includeMode="planner"
type="InstallableUnit" includeSource="true">
+ <repository location="{$destinationUrl}"/>
+ <xsl:apply-templates select="//unit" />
+ </location>
+ </locations>
+ <targetJRE
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ </target>
+ </xsl:template>
+
+ <xsl:template match="//unit">
+ <xsl:copy-of select="."/>
+ </xsl:template>
+</xsl:stylesheet>
Property changes on: trunk/build/target-platforms/jbds/jenkins/multiple2unified.xsl
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/build/target-platforms/jbds/jenkins/pom.xml
===================================================================
--- trunk/build/target-platforms/jbds/jenkins/pom.xml (rev 0)
+++ trunk/build/target-platforms/jbds/jenkins/pom.xml 2012-10-02 13:47:56 UTC (rev 44215)
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>target-platforms</artifactId>
+ <version>4.0.0.Beta1-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.target-platforms</groupId>
+ <artifactId>jbds-jenkins</artifactId>
+ <name>JBDS Unified (Aggregated) target platform for Jenkins</name>
+ <packaging>pom</packaging>
+
+ <properties>
+ <unified.URL>file:///home/hudson/static_build_env/jbds/jbds-target-platform_4.0.juno.SR0/jbds600-e421-wtp341.target/</unified.URL>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.5.1</version>
+ <executions>
+ <execution>
+ <id>get-multiple-target</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>get</goal>
+ </goals>
+ <configuration>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>jbds-multiple</artifactId>
+ <version>${project.version}</version>
+ <packaging>target</packaging>
+ <classifier>jbds-multiple</classifier>
+ <destination>${project.build.directory}/jbds-multiple.target</destination>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>xml-maven-plugin</artifactId>
+ <version>1.0</version>
+ <executions>
+ <execution>
+ <id>generate-unified.target</id>
+ <phase>generate-resources</phase> <!-- Should be generate-resources
-->
+ <goals>
+ <goal>transform</goal>
+ </goals>
+ <configuration>
+ <transformationSets>
+ <transformationSet>
+ <dir>${project.build.directory}</dir>
+ <includes>
+ <include>jbds-multiple.target</include>
+ </includes>
+ <stylesheet>multiple2unified.xsl</stylesheet>
+ <outputDir>${project.build.directory}/${project.artifactId}</outputDir>
+ <outputProperties>
+ <outputPropertie>
+ <name>indent</name>
+ <value>yes</value>
+ </outputPropertie>
+ </outputProperties>
+ <parameters>
+ <parameter>
+ <name>destinationUrl</name>
+ <value>${unified.URL}</value>
+ </parameter>
+ </parameters>
+ </transformationSet>
+ </transformationSets>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho.extras</groupId>
+ <artifactId>target-platform-validation-plugin</artifactId>
+ <version>${tychoExtrasVersion}</version>
+ <executions>
+ <execution>
+ <phase>verify</phase>
+ <goals>
+ <goal>validate-target-platform</goal>
+ </goals>
+ <configuration>
+ <targetFiles>
+ <param>${project.build.directory}/${project.artifactId}/jbds-multiple.target</param>
+ </targetFiles>
+ <failOnError>true</failOnError>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.3</version>
+ <executions>
+ <execution>
+ <id>attach-artifacts</id>
+ <phase>package</phase>
+ <goals>
+ <goal>attach-artifact</goal>
+ </goals>
+ <configuration>
+ <artifacts>
+ <artifact>
+ <file>${project.build.directory}/${project.artifactId}/jbds-multiple.target</file>
+ <type>target</type>
+ <classifier>${project.artifactId}</classifier>
+ </artifact>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Property changes on: trunk/build/target-platforms/jbds/jenkins/pom.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/build/target-platforms/jenkins/multiple2jenkins.xsl
===================================================================
--- trunk/build/target-platforms/jenkins/multiple2jenkins.xsl (rev
0)
+++ trunk/build/target-platforms/jenkins/multiple2jenkins.xsl 2012-10-02 13:47:56 UTC (rev
44215)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ version="2.0">
+
+ <xsl:output method="xml" encoding="UTF-8"
indent="yes"/>
+ <xsl:param name="destinationUrl"/>
+
+ <xsl:template match="target">
+ <target includeMode="feature" name="e42-wtp34-jbds6">
+ <locations>
+ <location includeAllPlatforms="false" includeMode="planner"
type="InstallableUnit" includeSource="true">
+ <repository location="{$destinationUrl}"/>
+ <xsl:apply-templates select="//unit" />
+ </location>
+ </locations>
+ <targetJRE
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ </target>
+ </xsl:template>
+
+ <xsl:template match="//unit">
+ <xsl:copy-of select="."/>
+ </xsl:template>
+</xsl:stylesheet>
Property changes on: trunk/build/target-platforms/jenkins/multiple2jenkins.xsl
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/build/target-platforms/jenkins/pom.xml
===================================================================
--- trunk/build/target-platforms/jenkins/pom.xml (rev 0)
+++ trunk/build/target-platforms/jenkins/pom.xml 2012-10-02 13:47:56 UTC (rev 44215)
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>target-platforms</artifactId>
+ <version>4.0.0.Beta1-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.target-platforms</groupId>
+ <artifactId>jenkins</artifactId>
+ <name>Unified (Aggregated) target platform for Jenkins</name>
+ <packaging>pom</packaging>
+
+ <properties>
+ <unified.URL>file:///home/hudson/static_build_env/jbds/target-platform_4.0.juno.SR1/e421-wtp341.target/</unified.URL>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.5.1</version>
+ <executions>
+ <execution>
+ <id>get-multiple-target</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>get</goal>
+ </goals>
+ <configuration>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>multiple</artifactId>
+ <version>${project.version}</version>
+ <packaging>target</packaging>
+ <classifier>multiple</classifier>
+ <destination>${project.build.directory}/multiple.target</destination>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>xml-maven-plugin</artifactId>
+ <version>1.0</version>
+ <executions>
+ <execution>
+ <id>generate-unified.target</id>
+ <phase>generate-resources</phase> <!-- Should be generate-resources
-->
+ <goals>
+ <goal>transform</goal>
+ </goals>
+ <configuration>
+ <transformationSets>
+ <transformationSet>
+ <dir>${project.build.directory}</dir>
+ <includes>
+ <include>multiple.target</include>
+ </includes>
+ <stylesheet>multiple2unified.xsl</stylesheet>
+ <outputDir>${project.build.directory}/${project.artifactId}</outputDir>
+ <outputProperties>
+ <outputPropertie>
+ <name>indent</name>
+ <value>yes</value>
+ </outputPropertie>
+ </outputProperties>
+ <parameters>
+ <parameter>
+ <name>destinationUrl</name>
+ <value>${unified.URL}</value>
+ </parameter>
+ </parameters>
+ </transformationSet>
+ </transformationSets>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho.extras</groupId>
+ <artifactId>target-platform-validation-plugin</artifactId>
+ <version>${tychoExtrasVersion}</version>
+ <executions>
+ <execution>
+ <phase>verify</phase>
+ <goals>
+ <goal>validate-target-platform</goal>
+ </goals>
+ <configuration>
+ <targetFiles>
+ <param>${project.build.directory}/${project.artifactId}/multiple.target</param>
+ </targetFiles>
+ <failOnError>true</failOnError>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.3</version>
+ <executions>
+ <execution>
+ <id>attach-artifacts</id>
+ <phase>package</phase>
+ <goals>
+ <goal>attach-artifact</goal>
+ </goals>
+ <configuration>
+ <artifacts>
+ <artifact>
+ <file>${project.build.directory}/${project.artifactId}/multiple.target</file>
+ <type>target</type>
+ <classifier>${project.artifactId}</classifier>
+ </artifact>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Property changes on: trunk/build/target-platforms/jenkins/pom.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain