Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: bdab169c0d33f395dcdc1839e59020687b49b051 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!--
Copyright (c) 2010, 2015 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/2019-06' />
    </properties>
  </xsl:template>

  <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.committers']/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.javascript']/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.testing']/properties">
    <xsl:call-template name="artifact_properties" />
  </xsl:template>

  <xsl:template match="artifact[@classifier='osgi.bundle' and @id='org.eclipse.epp.package.rust']/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.committers.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.javascript.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.testing.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.rust.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