Author: lfryc(a)redhat.com
Date: 2010-07-10 17:11:53 -0400 (Sat, 10 Jul 2010)
New Revision: 17908
Modified:
root/tests/metamer/trunk/ftest/pom.xml
Log:
added functionality for undeploying (post-integration-test) and cleaning the deployment
(exploded war, in initialize phase)
Modified: root/tests/metamer/trunk/ftest/pom.xml
===================================================================
--- root/tests/metamer/trunk/ftest/pom.xml 2010-07-10 21:11:41 UTC (rev 17907)
+++ root/tests/metamer/trunk/ftest/pom.xml 2010-07-10 21:11:53 UTC (rev 17908)
@@ -70,6 +70,15 @@
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>undeploy</id>
+ <phase>post-integration-test</phase>
+ <goals>
+ <goal>undeploy</goal>
+ </goals>
+ </execution>
+ </executions>
<configuration>
<deployer>
<type>installed</type>
@@ -176,6 +185,42 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>clean-tomcat-exploded-war</id>
+ <activation>
+ <property>
+ <name>containerId</name>
+ <value>tomcat6x</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-clean-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>clean-tomcat-exploded-war</id>
+ <phase>initialize</phase>
+ <goals>
+ <goal>clean</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <excludeDefaultDirectories>true</excludeDefaultDirectories>
+ <filesets>
+ <fileset>
+ <directory>${container.home}/webapps/${context.deploy.path}</directory>
+ <includes>
+ <include>**</include>
+ </includes>
+ </fileset>
+ </filesets>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
<profile>
<id>unpack-test-source</id>