Author: lfryc(a)redhat.com
Date: 2011-01-04 08:14:16 -0500 (Tue, 04 Jan 2011)
New Revision: 20874
Modified:
modules/tests/metamer/trunk/ftest/pom.xml
Log:
tweaked pom.xml to test jboss6x with myfaces with correct profile redefinition
Modified: modules/tests/metamer/trunk/ftest/pom.xml
===================================================================
--- modules/tests/metamer/trunk/ftest/pom.xml 2011-01-04 12:52:34 UTC (rev 20873)
+++ modules/tests/metamer/trunk/ftest/pom.xml 2011-01-04 13:14:16 UTC (rev 20874)
@@ -84,6 +84,7 @@
<ftest.source.version>4.0.0-SNAPSHOT</ftest.source.version>
<testng.suite.xml>src/test/resources/testng.xml</testng.suite.xml>
<container.home>target/installs/${container.dir.deflatted}/${container.dir.unflatted}</container.home>
+ <jsf.config>Mojarra-2.0</jsf.config>
</properties>
<repositories>
@@ -388,14 +389,12 @@
<id>jboss6x-snapshot-mojarra</id>
<properties>
<deployable.classifier>jee6</deployable.classifier>
- <jsf.config>Mojarra-2.0</jsf.config>
</properties>
</profile>
<profile>
<id>jboss6x-snapshot-mojarra_2_1_0</id>
<properties>
<deployable.classifier>mojarra_2_1_0</deployable.classifier>
- <jsf.config>Mojarra-2.0</jsf.config>
</properties>
</profile>
<profile>
@@ -406,6 +405,41 @@
</properties>
</profile>
<profile>
+ <id>jboss6x-rewrite-default-jsf-config</id>
+ <activation>
+ <property>
+ <name>containerId</name>
+ <value>jboss6x</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+
<groupId>com.google.code.maven-replacer-plugin</groupId>
+ <artifactId>maven-replacer-plugin</artifactId>
+ <version>1.3.2</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>replace</goal>
+ </goals>
+ <configuration>
+
<file>${container.home}/server/${container.configuration}/deployers/jsf.deployer/META-INF/jsf-integration-deployer-jboss-beans.xml</file>
+ <regex>true</regex>
+ <regexFlags>
+ <regexFlag>MULTILINE</regexFlag>
+ </regexFlags>
+ <token><property
name="defaultJSFConfig">\s*<value>[a-zA-Z0-9\.\-]+</value></token>
+ <value><property
name="defaultJSFConfig"><value>${jsf.config}</value></value>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
<id>jboss6x-snapshot-rewrite-default-jsf-config</id>
<activation>
<property>
Show replies by date