myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wsm...@apache.org
Subject svn commit: r429132 - /myfaces/tomahawk/trunk/examples/pom.xml
Date Sun, 06 Aug 2006 14:55:43 GMT
Author: wsmoak
Date: Sun Aug  6 07:55:42 2006
New Revision: 429132

URL: http://svn.apache.org/viewvc?rev=429132&view=rev
Log:
Add a 'selenium' profile to package Selenium Core and anything in src/test/selenium with the
webapp.
Add configuration for the Cargo plugin to start Tomcat 5.
Usage: mvn package cargo:start -Pselenium -Dcargo.tomcat5x.home=/path/to/tomcat5x
TOMAHAWK-583

Modified:
    myfaces/tomahawk/trunk/examples/pom.xml

Modified: myfaces/tomahawk/trunk/examples/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/pom.xml?rev=429132&r1=429131&r2=429132&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/examples/pom.xml (original)
+++ myfaces/tomahawk/trunk/examples/pom.xml Sun Aug  6 07:55:42 2006
@@ -162,6 +162,72 @@
             </pluginRepositories>
 
         </profile>
+
+        <!-- See http://myfaces.apache.org/tomahawk/testing/selenium.html -->
+        <profile>
+            <id>selenium</id>
+            <activation>
+                <property>
+                    <name>selenium</name>
+                </property>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>dependency-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>unpack-selenium</id>
+                                <phase>generate-resources</phase>
+                                <goals>
+                                    <goal>unpack</goal>
+                                </goals>
+                                <configuration>
+                                    <artifactItems>
+                                        <artifactItem>
+                                            <groupId>org.openqa.selenium.core</groupId>
+                                            <artifactId>selenium-core</artifactId>
+                                            <version>0.7.0</version>
+                                        </artifactItem>
+                                    </artifactItems>
+                                    <outputDirectory>${project.build.directory}/selenium</outputDirectory>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>copy-selenium</id>
+                                <phase>process-resources</phase>
+                                <configuration>
+                                    <tasks>
+                                        <copy todir="${project.build.directory}/${artifactId}/selenium/core">
+                                            <fileset dir="${project.build.directory}/selenium/core"/>
+                                        </copy>
+                                        <copy todir="${project.build.directory}/${artifactId}/selenium/tests">
+                                            <fileset dir="${basedir}/src/test/selenium"/>
+                                        </copy>
+                                    </tasks>
+                                </configuration>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+            <repositories>
+                <repository>
+                    <id>OpenQA</id>
+                    <url>http://maven.openqa.org</url>
+                </repository>
+            </repositories>
+        </profile>
+
     </profiles>
 
     <build>
@@ -185,6 +251,25 @@
                         </goals>
                     </execution>
                 </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.codehaus.cargo</groupId>
+                <artifactId>cargo-maven2-plugin</artifactId>
+                <version>0.2</version>
+                <configuration>
+                    <container>
+                        <containerId>tomcat5x</containerId>
+                        <home>${cargo.tomcat5x.home}</home>
+                        <log>${project.build.directory}/tomcat5x.log</log>
+                        <output>${project.build.directory}/tomcat5x.out</output>
+                    </container>
+                    <configuration>
+                        <home>${project.build.directory}/tomcat5x</home>
+                        <properties>
+                            <cargo.jvmargs> -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n
</cargo.jvmargs>
+                        </properties>
+                    </configuration>
+                </configuration>
             </plugin>
         </plugins>
     </build>



Mime
View raw message