Author: alessio.soldano(a)jboss.com
Date: 2011-07-29 12:50:06 -0400 (Fri, 29 Jul 2011)
New Revision: 14773
Modified:
stack/native/trunk/modules/dist/src/main/distro/test-exclude.xsl
Log:
[JBWS-3336] Fixing xsl for test exclude files generation
Modified: stack/native/trunk/modules/dist/src/main/distro/test-exclude.xsl
===================================================================
--- stack/native/trunk/modules/dist/src/main/distro/test-exclude.xsl 2011-07-29 16:48:00
UTC (rev 14772)
+++ stack/native/trunk/modules/dist/src/main/distro/test-exclude.xsl 2011-07-29 16:50:06
UTC (rev 14773)
@@ -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>
Show replies by date