Author: lfryc(a)redhat.com
Date: 2010-09-15 07:50:39 -0400 (Wed, 15 Sep 2010)
New Revision: 19214
Modified:
modules/tests/metamer/trunk/ftest/pom.xml
Log:
added support for choosing jsf.config and deployable.classifier based on profiles; ad-hoc
changing jsf.config in jboss6x-snapshot configuration (RFPL-811)
Modified: modules/tests/metamer/trunk/ftest/pom.xml
===================================================================
--- modules/tests/metamer/trunk/ftest/pom.xml 2010-09-15 10:37:07 UTC (rev 19213)
+++ modules/tests/metamer/trunk/ftest/pom.xml 2010-09-15 11:50:39 UTC (rev 19214)
@@ -83,6 +83,7 @@
<deployable.version>4.0.0-SNAPSHOT</deployable.version>
<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>
</properties>
<repositories>
@@ -311,6 +312,73 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>tomcat6x-mojarra</id>
+ <properties>
+ <deployable.classifier>mojarra</deployable.classifier>
+ </properties>
+ </profile>
+ <profile>
+ <id>tomcat6x-myfaces</id>
+ <properties>
+ <deployable.classifier>myfaces</deployable.classifier>
+ </properties>
+ </profile>
+ <profile>
+ <id>jboss6x-myfaces</id>
+ <properties>
+ <deployable.classifier>myfaces</deployable.classifier>
+ </properties>
+ </profile>
+ <profile>
+ <id>jboss6x-snapshot-mojarra</id>
+ <properties>
+ <deployable.classifier>jee6</deployable.classifier>
+ <jsf.config>Mojarra-2.0</jsf.config>
+ </properties>
+ </profile>
+ <profile>
+ <id>jboss6x-snapshot-myfaces</id>
+ <properties>
+ <deployable.classifier>jee6</deployable.classifier>
+ <jsf.config>MyFaces-2.0</jsf.config>
+ </properties>
+ </profile>
+ <profile>
+ <id>jboss6x-snapshot-rewrite-default-jsf-config</id>
+ <activation>
+ <property>
+ <name>containerId</name>
+ <value>jboss6x-snapshot</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>
</profiles>
<build>