Author: nickboldt
Date: 2010-11-05 09:12:18 -0400 (Fri, 05 Nov 2010)
New Revision: 26287
Modified:
trunk/build/target-platform/target2targetTemplate.xsl
Log:
make transform of version # optional (must first run artifactVersions.properties
generator)
Modified: trunk/build/target-platform/target2targetTemplate.xsl
===================================================================
--- trunk/build/target-platform/target2targetTemplate.xsl 2010-11-05 12:48:11 UTC (rev
26286)
+++ trunk/build/target-platform/target2targetTemplate.xsl 2010-11-05 13:12:18 UTC (rev
26287)
@@ -6,14 +6,25 @@
-->
<xsl:param name="replacement.URL"/>
+<xsl:param name="replace.versions"/>
-<!-- Copy unit nodes and templatize their version attributes -->
+<!-- Copy unit nodes and optionally (if we ran contentXml2artifactVersions.xsl
transform and have artifactVersions.properties file) templatize their version attributes
-->
<xsl:template match="unit">
+<xsl:choose>
+<xsl:when test="$replace.versions">
<unit id="{@id}" version="${{{(a)id}.version}}">
<xsl:apply-templates/>
</unit>
+</xsl:when>
+<xsl:otherwise>
+<unit id="{@id}" version="{@version}">
+<xsl:apply-templates/>
+</unit>
+</xsl:otherwise>
+</xsl:choose>
</xsl:template>
+<!-- Copy repository nodes and optionally replace their location attributes (if
replacement.URL is set) -->
<xsl:template match="repository">
<xsl:choose>
<xsl:when test="$replacement.URL">
Show replies by date