Author: jim.ma
Date: 2011-01-27 06:01:24 -0500 (Thu, 27 Jan 2011)
New Revision: 13622
Added:
stack/cxf/branches/jbossws-cxf-4.0.0.SNAPSHOT-Maven3/modules/dist/src/main/scripts/test-exclude.xsl
Modified:
stack/cxf/branches/jbossws-cxf-4.0.0.SNAPSHOT-Maven3/modules/dist/pom.xml
stack/cxf/branches/jbossws-cxf-4.0.0.SNAPSHOT-Maven3/modules/dist/src/main/scripts/assembly-bin-dist.xml
Log:
Add xsl file to generate exclude test file list, binaray distribution needs that to run
ant tests
Modified: stack/cxf/branches/jbossws-cxf-4.0.0.SNAPSHOT-Maven3/modules/dist/pom.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-4.0.0.SNAPSHOT-Maven3/modules/dist/pom.xml 2011-01-27
10:36:59 UTC (rev 13621)
+++ stack/cxf/branches/jbossws-cxf-4.0.0.SNAPSHOT-Maven3/modules/dist/pom.xml 2011-01-27
11:01:24 UTC (rev 13622)
@@ -151,6 +151,39 @@
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.4</version>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant-trax</artifactId>
+ <version>1.8.0</version>
+ </dependency>
+ </dependencies>
+ <executions>
+ <execution>
+ <id>generate-exclude-file</id>
+ <phase>validate</phase>
+ <configuration>
+ <tasks>
+ <mkdir dir="${basedir}/target/exclude-file"
/>
+ <xslt
style="${basedir}/src/main/distro/test-exclude.xsl"
in="../testsuite/pom.xml"
out="${basedir}/target/exclude-file/test-excludes-jboss600.txt">
+ <param name="targetName"
expression="jboss600" />
+ </xslt>
+ <xslt
style="${basedir}/src/main/distro/test-exclude.xsl"
in="../testsuite/pom.xml"
out="${basedir}/target/exclude-file/test-excludes-jboss601.txt">
+ <param name="targetName"
expression="jboss601" />
+ </xslt>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
</plugins>
</build>
Modified:
stack/cxf/branches/jbossws-cxf-4.0.0.SNAPSHOT-Maven3/modules/dist/src/main/scripts/assembly-bin-dist.xml
===================================================================
---
stack/cxf/branches/jbossws-cxf-4.0.0.SNAPSHOT-Maven3/modules/dist/src/main/scripts/assembly-bin-dist.xml 2011-01-27
10:36:59 UTC (rev 13621)
+++
stack/cxf/branches/jbossws-cxf-4.0.0.SNAPSHOT-Maven3/modules/dist/src/main/scripts/assembly-bin-dist.xml 2011-01-27
11:01:24 UTC (rev 13622)
@@ -74,7 +74,7 @@
</fileSet>
<!-- test excludes -->
<fileSet>
- <directory>../modules/testsuite</directory>
+ <directory>target/exclude-file</directory>
<outputDirectory>jbossws-cxf-bin-dist/tests/resources</outputDirectory>
<includes>
<include>test-excludes-*.txt</include>
Added:
stack/cxf/branches/jbossws-cxf-4.0.0.SNAPSHOT-Maven3/modules/dist/src/main/scripts/test-exclude.xsl
===================================================================
---
stack/cxf/branches/jbossws-cxf-4.0.0.SNAPSHOT-Maven3/modules/dist/src/main/scripts/test-exclude.xsl
(rev 0)
+++
stack/cxf/branches/jbossws-cxf-4.0.0.SNAPSHOT-Maven3/modules/dist/src/main/scripts/test-exclude.xsl 2011-01-27
11:01:24 UTC (rev 13622)
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<xsl:stylesheet version="1.0"
+xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:m="http://maven.apache.org/POM/4.0.0">
+<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:template>
+</xsl:stylesheet>