Author: alessio.soldano(a)jboss.com
Date: 2011-07-29 12:47:29 -0400 (Fri, 29 Jul 2011)
New Revision: 14771
Modified:
stack/cxf/trunk/modules/dist/src/main/distro/test-exclude.xsl
stack/cxf/trunk/modules/dist/src/main/scripts/test-exclude.xsl
Log:
[JBWS-3336] Fixing xsl for test exclusion generation
Modified: stack/cxf/trunk/modules/dist/src/main/distro/test-exclude.xsl
===================================================================
--- stack/cxf/trunk/modules/dist/src/main/distro/test-exclude.xsl 2011-07-28 13:29:24 UTC
(rev 14770)
+++ stack/cxf/trunk/modules/dist/src/main/distro/test-exclude.xsl 2011-07-29 16:47:29 UTC
(rev 14771)
@@ -4,8 +4,13 @@
<xsl:param name="targetName"/>
<xsl:output method="text"/>
<xsl:template match="/">
- <xsl:for-each
select="//m:profile[m:id=$targetName]/m:build/m:plugins/m:plugin[m:artifactId='maven-surefire-plugin']//m:exclude">
- <xsl:value-of
select="."/><xsl:text> </xsl:text>
+ <xsl:for-each
select="//m:profile[m:id=$targetName]/m:build/m:plugins/m:plugin[m:artifactId='maven-surefire-plugin']//m:excludes">
+ <xsl:for-each select="m:exclude|comment()">
+ <xsl:if test="self::comment()">
+ <xsl:text>#</xsl:text>
+ </xsl:if>
+ <xsl:value-of
select="."/><xsl:text> </xsl:text>
+ </xsl:for-each>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Modified: stack/cxf/trunk/modules/dist/src/main/scripts/test-exclude.xsl
===================================================================
--- stack/cxf/trunk/modules/dist/src/main/scripts/test-exclude.xsl 2011-07-28 13:29:24 UTC
(rev 14770)
+++ stack/cxf/trunk/modules/dist/src/main/scripts/test-exclude.xsl 2011-07-29 16:47:29 UTC
(rev 14771)
@@ -4,8 +4,13 @@
<xsl:param name="targetName"/>
<xsl:output method="text"/>
<xsl:template match="/">
-<xsl:for-each
select="//m:profile[m:id='$targetName']/m:build/m:plugins/m:plugin[m:artifactId='maven-surefire-plugin']//m:exclude">
-<xsl:value-of select="."/><xsl:text> </xsl:text>
-</xsl:for-each>
+ <xsl:for-each
select="//m:profile[m:id=$targetName]/m:build/m:plugins/m:plugin[m:artifactId='maven-surefire-plugin']//m:excludes">
+ <xsl:for-each select="m:exclude|comment()">
+ <xsl:if test="self::comment()">
+ <xsl:text>#</xsl:text>
+ </xsl:if>
+ <xsl:value-of
select="."/><xsl:text> </xsl:text>
+ </xsl:for-each>
+ </xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Show replies by date