You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mf...@apache.org on 2010/07/12 11:50:43 UTC

svn commit: r963231 - /myfaces/portlet-bridge/tck/trunk_2.0.x/portlet-bridge-tck-client/pom.xml

Author: mfreedman
Date: Mon Jul 12 09:50:43 2010
New Revision: 963231

URL: http://svn.apache.org/viewvc?rev=963231&view=rev
Log:
Added target to generate a pluto client configuration file.

Modified:
    myfaces/portlet-bridge/tck/trunk_2.0.x/portlet-bridge-tck-client/pom.xml

Modified: myfaces/portlet-bridge/tck/trunk_2.0.x/portlet-bridge-tck-client/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/tck/trunk_2.0.x/portlet-bridge-tck-client/pom.xml?rev=963231&r1=963230&r2=963231&view=diff
==============================================================================
--- myfaces/portlet-bridge/tck/trunk_2.0.x/portlet-bridge-tck-client/pom.xml (original)
+++ myfaces/portlet-bridge/tck/trunk_2.0.x/portlet-bridge-tck-client/pom.xml Mon Jul 12 09:50:43 2010
@@ -116,7 +116,7 @@
       <properties>
         <maven.skip.tests>true</maven.skip.tests>
         <bridge.tck.test.file.stylesheet>../src/test/resources/test-template.xsl</bridge.tck.test.file.stylesheet>
-        <bridge.tck.test.file.servlet.path>page-servlet-path</bridge.tck.test.file.servlet.path>
+        <bridge.tck.test.file.servlet.path>pluto/portal/TestPage</bridge.tck.test.file.servlet.path>
       </properties>
 
       <build>
@@ -158,5 +158,63 @@
         </plugins>
       </build>
     </profile>
+
+    <profile>
+      <id>generate-pluto-config</id>
+      <activation>
+        <property>
+          <name>tck.external-server</name>
+          <value>generate-pluto-config</value>
+        </property>
+      </activation>
+
+      <properties>
+        <maven.skip.tests>true</maven.skip.tests>
+        <bridge.tck.pluto.config.xsl>../src/test/resources/pluto-portal-driver-config.xsl</bridge.tck.pluto.config.xsl>
+      </properties>
+
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>xml-maven-plugin</artifactId>
+            <configuration>
+              <transformationSets>
+                <transformationSet>
+                  <dir>../portlet-bridge-tck-main/src/main/webapp/WEB-INF</dir>
+                  <includes>
+                    <include>portlet.xml</include>
+                  </includes>
+                  <outputDir>${bridge.tck.test.file.dir}</outputDir>
+                  <fileMappers>
+                    <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.MergeFileMapper">
+                      <targetName>pluto-portal-driver-config.xml</targetName>
+                    </fileMapper>
+                  </fileMappers>
+                  <parameters>
+                    <parameter>
+                      <name>main-portlet-context</name>
+                      <value>portlet-bridge-tck-main-jsr329-1.0.0-SNAPSHOT</value>
+                    </parameter>
+                    <parameter>
+                      <name>extra-portlet-def</name>
+                      <!-- Using a relative path which points to the parent 
+                           directory leads to a bug during the transform, hence
+                           the local copy of the portlet definition file -->
+                      <value>lifecycle-portlet.xml</value>
+                    </parameter>
+                    <parameter>
+                      <name>extra-portlet-context</name>
+                      <value>portlet-bridge-tck-section3-2-lifecycle-set-jsr329-1.0.0-SNAPSHOT</value>
+                    </parameter>
+                  </parameters>
+                  <stylesheet>${bridge.tck.pluto.config.xsl}</stylesheet>
+                </transformationSet>
+              </transformationSets>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
 </project>