Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Knauer2014-06-24 14:03:10 -0400
committerMarkus Knauer2014-06-24 14:03:10 -0400
commit6a8c5e573e3130b08435fb53e351d950ee141ff3 (patch)
tree6df533c410a83454a90970c412f15ba8c56f1054
parent05ed0af82d43c44b3df7dc955f5e0267b59a695d (diff)
downloadorg.eclipse.epp.packages-6a8c5e573e3130b08435fb53e351d950ee141ff3.tar.gz
org.eclipse.epp.packages-6a8c5e573e3130b08435fb53e351d950ee141ff3.tar.xz
org.eclipse.epp.packages-6a8c5e573e3130b08435fb53e351d950ee141ff3.zip
Update XSL stylesheet for adding p2 download stats to artifacts metadata
Change-Id: I7fbb2d61956f5fe2b9fb5e0b2081783077bfe3de Signed-off-by: Markus Knauer <mknauer@eclipsesource.com>
-rw-r--r--releng/org.eclipse.epp.config/tools/addDownloadStats.xsl322
1 files changed, 161 insertions, 161 deletions
diff --git a/releng/org.eclipse.epp.config/tools/addDownloadStats.xsl b/releng/org.eclipse.epp.config/tools/addDownloadStats.xsl
index 94c3015b..de41f846 100644
--- a/releng/org.eclipse.epp.config/tools/addDownloadStats.xsl
+++ b/releng/org.eclipse.epp.config/tools/addDownloadStats.xsl
@@ -1,161 +1,161 @@
-<!--
-Copyright (c) 2010 Mia-Software
-All rights reserved. This program and the accompanying materials
-are made available under the terms of the Eclipse Public License v1.0
-which accompanies this distribution, and is available at
-http://www.eclipse.org/legal/epl-v10.html
-
-Contributors:
-Gregoire Dupe
--->
-<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
- version="1.0">
- <xsl:output encoding="UTF-8" method="xml" indent="yes" />
- <xsl:strip-space elements="*" />
-
- <xsl:template match="/">
- <xsl:processing-instruction name="artifactRepository">version='1.1.0'</xsl:processing-instruction>
-
- <xsl:apply-templates />
- </xsl:template>
-
- <xsl:template match="repository/properties">
- <properties size='{@size+1}'>
- <xsl:copy-of select="property" />
- <property name='p2.statsURI' value='http://download.eclipse.org/stats/technology/epp/packages/luna' />
- </properties>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.automotive']/properties">
- <xsl:call-template name="artifact_properties"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.cpp']/properties">
- <xsl:call-template name="artifact_properties"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.dsl']/properties">
- <xsl:call-template name="artifact_properties"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.java']/properties">
- <xsl:call-template name="artifact_properties"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.jee']/properties">
- <xsl:call-template name="artifact_properties"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.mobile']/properties">
- <xsl:call-template name="artifact_properties"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.modeling']/properties">
- <xsl:call-template name="artifact_properties"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.parallel']/properties">
- <xsl:call-template name="artifact_properties"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.rcp']/properties">
- <xsl:call-template name="artifact_properties"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.reporting']/properties">
- <xsl:call-template name="artifact_properties"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.scout']/properties">
- <xsl:call-template name="artifact_properties"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.standard']/properties">
- <xsl:call-template name="artifact_properties"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.testing']/properties">
- <xsl:call-template name="artifact_properties"/>
- </xsl:template>
-
- <xsl:template name="artifact_properties">
- <properties size='{@size+1}'>
- <xsl:copy-of select="property" />
- <property name='download.stats' value='{../@id}.bundle-{../@version}' />
- </properties>
- </xsl:template>
-
-
- <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.automotive.feature']/properties">
- <xsl:call-template name="artifact_properties_feature"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.common.feature']/properties">
- <xsl:call-template name="artifact_properties_feature"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.cpp.feature']/properties">
- <xsl:call-template name="artifact_properties_feature"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.dsl.feature']/properties">
- <xsl:call-template name="artifact_properties_feature"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.java.feature']/properties">
- <xsl:call-template name="artifact_properties_feature"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.jee.feature']/properties">
- <xsl:call-template name="artifact_properties_feature"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.mobile.feature']/properties">
- <xsl:call-template name="artifact_properties_feature"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.modeling.feature']/properties">
- <xsl:call-template name="artifact_properties_feature"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.parallel.feature']/properties">
- <xsl:call-template name="artifact_properties_feature"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.rcp.feature']/properties">
- <xsl:call-template name="artifact_properties_feature"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.reporting.feature']/properties">
- <xsl:call-template name="artifact_properties_feature"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.scout.feature']/properties">
- <xsl:call-template name="artifact_properties_feature"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.standard.feature']/properties">
- <xsl:call-template name="artifact_properties_feature"/>
- </xsl:template>
-
- <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.testing.feature']/properties">
- <xsl:call-template name="artifact_properties_feature"/>
- </xsl:template>
-
- <xsl:template name="artifact_properties_feature">
- <properties size='{@size+1}'>
- <xsl:copy-of select="property" />
- <property name='download.stats' value='{../@id}-{../@version}' />
- </properties>
- </xsl:template>
-
- <xsl:template match="*">
- <xsl:copy>
- <xsl:for-each select="@*">
- <xsl:copy-of select="." />
- </xsl:for-each>
- <xsl:apply-templates />
- </xsl:copy>
- </xsl:template>
-
-</xsl:stylesheet>
+<!--
+Copyright (c) 2010, 2014 Mia-Software and others.
+All rights reserved. This program and the accompanying materials
+are made available under the terms of the Eclipse Public License v1.0
+which accompanies this distribution, and is available at
+http://www.eclipse.org/legal/epl-v10.html
+
+Contributors:
+ Gregoire Dupe (initial version)
+ Markus Knauer (ongoing maintenance)
+
+-->
+<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version="1.0">
+ <xsl:output encoding="UTF-8" method="xml" indent="yes" />
+ <xsl:strip-space elements="*" />
+
+ <xsl:template match="/">
+ <xsl:processing-instruction name="artifactRepository">version='1.1.0'</xsl:processing-instruction>
+ <xsl:apply-templates />
+ </xsl:template>
+
+ <xsl:template match="repository/properties">
+ <properties size='{@size+1}'>
+ <xsl:copy-of select="property" />
+ <property name='p2.statsURI' value='http://download.eclipse.org/stats/technology/epp/packages/luna' />
+ </properties>
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.automotive']/properties">
+ <xsl:call-template name="artifact_properties" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.cpp']/properties">
+ <xsl:call-template name="artifact_properties" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.dsl']/properties">
+ <xsl:call-template name="artifact_properties" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.java']/properties">
+ <xsl:call-template name="artifact_properties" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.jee']/properties">
+ <xsl:call-template name="artifact_properties" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.modeling']/properties">
+ <xsl:call-template name="artifact_properties" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.parallel']/properties">
+ <xsl:call-template name="artifact_properties" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.php']/properties">
+ <xsl:call-template name="artifact_properties" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.rcp']/properties">
+ <xsl:call-template name="artifact_properties" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.reporting']/properties">
+ <xsl:call-template name="artifact_properties" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.scout']/properties">
+ <xsl:call-template name="artifact_properties" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.standard']/properties">
+ <xsl:call-template name="artifact_properties" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.testing']/properties">
+ <xsl:call-template name="artifact_properties" />
+ </xsl:template>
+
+ <xsl:template name="artifact_properties">
+ <properties size='{@size+1}'>
+ <xsl:copy-of select="property" />
+ <property name='download.stats' value='{../@id}.bundle-{../@version}' />
+ </properties>
+ </xsl:template>
+
+
+ <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.automotive.feature']/properties">
+ <xsl:call-template name="artifact_properties_feature" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.common.feature']/properties">
+ <xsl:call-template name="artifact_properties_feature" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.cpp.feature']/properties">
+ <xsl:call-template name="artifact_properties_feature" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.dsl.feature']/properties">
+ <xsl:call-template name="artifact_properties_feature" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.java.feature']/properties">
+ <xsl:call-template name="artifact_properties_feature" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.jee.feature']/properties">
+ <xsl:call-template name="artifact_properties_feature" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.modeling.feature']/properties">
+ <xsl:call-template name="artifact_properties_feature" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.parallel.feature']/properties">
+ <xsl:call-template name="artifact_properties_feature" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.php.feature']/properties">
+ <xsl:call-template name="artifact_properties_feature" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.rcp.feature']/properties">
+ <xsl:call-template name="artifact_properties_feature" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.reporting.feature']/properties">
+ <xsl:call-template name="artifact_properties_feature" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.scout.feature']/properties">
+ <xsl:call-template name="artifact_properties_feature" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.standard.feature']/properties">
+ <xsl:call-template name="artifact_properties_feature" />
+ </xsl:template>
+
+ <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='org.eclipse.epp.package.testing.feature']/properties">
+ <xsl:call-template name="artifact_properties_feature" />
+ </xsl:template>
+
+ <xsl:template name="artifact_properties_feature">
+ <properties size='{@size+1}'>
+ <xsl:copy-of select="property" />
+ <property name='download.stats' value='{../@id}-{../@version}' />
+ </properties>
+ </xsl:template>
+
+ <xsl:template match="*">
+ <xsl:copy>
+ <xsl:for-each select="@*">
+ <xsl:copy-of select="." />
+ </xsl:for-each>
+ <xsl:apply-templates />
+ </xsl:copy>
+ </xsl:template>
+
+</xsl:stylesheet>

Back to the top