[jbosstools-commits] JBoss Tools SVN: r41114 - trunk/build/target-platform.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Thu May 17 09:53:47 EDT 2012
Author: nickboldt
Date: 2012-05-17 09:53:47 -0400 (Thu, 17 May 2012)
New Revision: 41114
Modified:
trunk/build/target-platform/contentXml2artifactVersions.xsl
Log:
JBIDE-11814 ensure that largest IU version found is the one added to the TP when regenerating with contentXml2artifactVersions.xsl
Modified: trunk/build/target-platform/contentXml2artifactVersions.xsl
===================================================================
--- trunk/build/target-platform/contentXml2artifactVersions.xsl 2012-05-17 13:49:07 UTC (rev 41113)
+++ trunk/build/target-platform/contentXml2artifactVersions.xsl 2012-05-17 13:53:47 UTC (rev 41114)
@@ -8,7 +8,12 @@
<xsl:template match="repository">
<xsl:apply-templates select="//unit" />
</xsl:template>
-<xsl:template match="//unit"><xsl:for-each select="."><xsl:sort select="@version" order="descending" case-order="lower-first" data-type="qname"/><xsl:value-of select="@id" />.version=<xsl:value-of select="@version" />
+<xsl:template match="/"><xsl:for-each select="//unit">
+<xsl:sort select="@id" order="ascending" case-order="lower-first"/><xsl:sort select="@version" order="descending" case-order="lower-first" data-type="qname"/><xsl:value-of select="@id" />.version=<xsl:value-of select="@version" />
+<xsl:variable name="thisID" select="@id"/>
+<xsl:if test="count(//unit[@id = $thisID]) > 1">
+# Warning: <xsl:value-of select="count(//unit[@id = $thisID])"/> versions found for <xsl:value-of select="@id" />:<xsl:for-each select="//unit[@id = $thisID]"><xsl:sort select="@id" order="ascending" case-order="lower-first"/><xsl:sort select="@version" order="descending" case-order="lower-first" data-type="qname"/>
+# <xsl:value-of select="@id" />.version=<xsl:value-of select="@version" /></xsl:for-each></xsl:if>
#
</xsl:for-each></xsl:template>
</xsl:stylesheet>
More information about the jbosstools-commits
mailing list