OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | dragon-commits List | June 2010 Index

<--  Date Index     <--  Thread Index    

[[dragon-commits]] [989] trunk/integration-tests/integration/pom.xml:- Add profiles for tomcat integration


Title: [989] trunk/integration-tests/integration/pom.xml: - Add profiles for tomcat integration
Revision
989
Author
aruffie
Date
2010-06-28 17:44:44 +0200 (Mon, 28 Jun 2010)

Log Message

- Add profiles for tomcat integration

Modified Paths

Diff

Modified: trunk/integration-tests/integration/pom.xml (988 => 989)


--- trunk/integration-tests/integration/pom.xml	2010-06-02 16:03:12 UTC (rev 988)
+++ trunk/integration-tests/integration/pom.xml	2010-06-28 15:44:44 UTC (rev 989)
@@ -44,6 +44,8 @@
 		<spring-version>2.5.6</spring-version>
 		<petals.artifactId>petals-platform</petals.artifactId>
 		<petals-version>3.0.3</petals-version>
+		<tomcat.container.name>tomcat6x</tomcat.container.name>
+		<tomcat.container.url>ftp://user1:test@xxxxxxxxxxxxx/WebTools/Servers/apache-tomcat-6.0.20.zip</tomcat.container.url>
 	</properties>
 
 	<!-- ============ -->
@@ -227,7 +229,8 @@
 								<configuration>
 									<scanIntervalSeconds>0</scanIntervalSeconds>
 									<daemon>true</daemon>
-									<webApp>${project.build.directory}/${petals.artifactId}/dragon-ui-${project.version}.war</webApp>
+									<webApp>${project.build.directory}/${petals.artifactId}/dragon-ui-${project.version}.war
+									</webApp>
 									<webAppConfig>
 										<contextPath>/petals-master</contextPath>
 									</webAppConfig>
@@ -392,6 +395,245 @@
 					</plugin>
 				</plugins>
 			</build>
+		</profile>
+
+		<!-- Tomcat integration profile -->
+		<profile>
+			<id>integration-tomcat</id>
+			<build>
+				<plugins>
+					<plugin>
+						<groupId>org.apache.maven.plugins</groupId>
+						<artifactId>maven-assembly-plugin</artifactId>
+						<executions>
+							<execution>
+								<id>create-petals-distrib</id>
+								<phase>pre-integration-test</phase>
+								<goals>
+									<goal>single</goal>
+								</goals>
+								<configuration>
+									<ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
+									<appendAssemblyId>false</appendAssemblyId>
+									<finalName>${petals.artifactId}</finalName>
+									<descriptors>
+										<descriptor>
+											src/main/assembly/assembly.xml </descriptor>
+									</descriptors>
+								</configuration>
+							</execution>
+						</executions>
+					</plugin>
+					<plugin>
+						<groupId>org.codehaus.cargo</groupId>
+						<artifactId>cargo-maven2-plugin</artifactId>
+						<executions>
+							<execution>
+								<id>install</id>
+								<phase>generate-resources</phase>
+								<goals>
+									<goal>install</goal>
+								</goals>
+							</execution>
+							<execution>
+								<id>start-container</id>
+								<phase>pre-integration-test</phase>
+								<goals>
+									<goal>start</goal>
+								</goals>
+								<configuration>
+									<wait>false</wait>
+								</configuration>
+							</execution>
+							<execution>
+								<id>stop-container</id>
+								<phase>post-integration-test</phase>
+								<goals>
+									<goal>stop</goal>
+								</goals>
+							</execution>
+						</executions>
+						<configuration>
+							<container>
+								<containerId>${tomcat.container.name}</containerId>
+								<zipUrlInstaller>
+									<url>${tomcat.container.url}</url>
+									<installDir>${java.io.tmpdir}/cargoinstalls</installDir>
+								</zipUrlInstaller>
+								<log>${java.io.tmpdir}/cargoinstalls/logs/${tomcat.container.name}.log
+								</log>
+								<output>${java.io.tmpdir}/cargoinstalls/logs/${tomcat.container.name}.out
+								</output>
+								<timeout>600000</timeout>
+							</container>
+							<configuration>
+								<type>standalone</type>
+								<deployables>
+									<!-- application to deploy -->
+									<deployable>
+										<groupId>org.ow2.dragon</groupId>
+										<artifactId>dragon-ui</artifactId>
+										<type>war</type>
+										<properties>
+											<context>petals-master</context>
+										</properties>
+									</deployable>
+								</deployables>
+							</configuration>
+						</configuration>
+					</plugin>
+					<plugin>
+						<groupId>org.codehaus.mojo</groupId>
+						<artifactId>selenium-maven-plugin</artifactId>
+						<executions>
+							<execution>
+								<id>start-selenium</id>
+								<phase>pre-integration-test</phase>
+								<goals>
+									<goal>start-server</goal>
+								</goals>
+								<configuration>
+									<background>true</background>
+								</configuration>
+							</execution>
+						</executions>
+					</plugin>
+					<plugin>
+						<groupId>org.apache.maven.plugins</groupId>
+						<artifactId>maven-antrun-plugin</artifactId>
+						<executions>
+							<execution>
+								<id>start-petals-distrib</id>
+								<phase>pre-integration-test</phase>
+								<goals>
+									<goal>run</goal>
+								</goals>
+								<configuration>
+									<tasks description="PEtALS standalone container : startup">
+										<taskdef resource="net/sf/antcontrib/antcontrib.properties"
+											classpathref="maven.plugin.classpath" />
+										<chmod
+											file="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-version}/bin/*.sh"
+											perm="755" />
+										<exec
+											dir="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-version}/bin"
+											executable="sh" os="Linux" searchpath="true">
+											<arg value="startup.sh" />
+											<arg value="-D" />
+										</exec>
+										<sleep seconds="60" />
+									</tasks>
+								</configuration>
+							</execution>
+							<execution>
+								<id>deploy-petals-components</id>
+								<phase>pre-integration-test</phase>
+								<goals>
+									<goal>run</goal>
+								</goals>
+								<configuration>
+									<tasks description="PEtALS BC MAIL tests">
+										<!--
+											TODO : find a better way to set the PETALS_HOME
+											property/env-variable
+										-->
+										<property name="petals.home"
+											value="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-version}" />
+										<ant
+											antfile="${project.build.directory}/${petals.artifactId}/build.xml"
+											dir="${project.build.directory}/${petals.artifactId}">
+											<target name="deploy" />
+										</ant>
+									</tasks>
+								</configuration>
+							</execution>
+							<execution>
+								<id>stop-petals-distrib</id>
+								<phase>post-integration-test</phase>
+								<goals>
+									<goal>run</goal>
+								</goals>
+								<configuration>
+									<tasks description="PEtALS standalone
+								container : stop">
+										<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
+										<chmod
+											file="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-version}/bin/*.sh"
+											perm="755" />
+										<exec
+											dir="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-version}/bin"
+											executable="sh" os="Linux" searchpath="true">
+											<arg value="stop.sh" />
+										</exec>
+									</tasks>
+								</configuration>
+							</execution>
+						</executions>
+						<dependencies>
+							<dependency>
+								<groupId>org.apache.maven</groupId>
+								<artifactId>maven-artifact-ant</artifactId>
+								<version>2.0.4</version>
+							</dependency>
+							<dependency>
+								<groupId>ant</groupId>
+								<artifactId>ant</artifactId>
+								<version>1.6.5</version>
+							</dependency>
+							<dependency>
+								<groupId>jtidy</groupId>
+								<artifactId>jtidy</artifactId>
+								<version>4aug2000r7-dev</version>
+							</dependency>
+							<dependency>
+								<groupId>ant-contrib</groupId>
+								<artifactId>cpptasks</artifactId>
+								<version>1.0b3</version>
+							</dependency>
+							<dependency>
+								<groupId>ant-contrib</groupId>
+								<artifactId>ant-contrib</artifactId>
+								<version>1.0b2</version>
+							</dependency>
+							<dependency>
+								<groupId>ant</groupId>
+								<artifactId>optional</artifactId>
+								<version>1.5.4</version>
+							</dependency>
+							<dependency>
+								<groupId>ant</groupId>
+								<artifactId>ant-antlr</artifactId>
+								<version>1.6.5</version>
+							</dependency>
+							<dependency>
+								<groupId>antlr</groupId>
+								<artifactId>antlrall</artifactId>
+								<version>2.7.4</version>
+							</dependency>
+							<dependency>
+								<groupId>ant</groupId>
+								<artifactId>ant-nodeps</artifactId>
+								<version>1.6.5</version>
+							</dependency>
+						</dependencies>
+					</plugin>
+					<plugin>
+						<groupId>org.apache.maven.plugins</groupId>
+						<artifactId>maven-surefire-plugin</artifactId>
+						<executions>
+							<execution>
+								<phase>integration-test</phase>
+								<goals>
+									<goal>test</goal>
+								</goals>
+								<configuration>
+									<skip>false</skip>
+								</configuration>
+							</execution>
+						</executions>
+					</plugin>
+				</plugins>
+			</build>
 		</profile>
 		<profile>
 			<id>integration-cleanup</id>
@@ -568,7 +810,8 @@
 								<configuration>
 									<scanIntervalSeconds>0</scanIntervalSeconds>
 									<daemon>true</daemon>
-									<webApp>${project.build.directory}/${petals.artifactId}/dragon-ui-${project.version}.war</webApp>
+									<webApp>${project.build.directory}/${petals.artifactId}/dragon-ui-${project.version}.war
+									</webApp>
 									<webAppConfig>
 										<contextPath>/petals-master</contextPath>
 									</webAppConfig>
@@ -728,9 +971,12 @@
 								</goals>
 								<configuration>
 									<includes>
-										<include>org/ow2/dragon/integration/${test.package}/*Test.java</include>
-										<include>org/ow2/dragon/integration/${test.package}/Test*.java</include>
-										<include>org/ow2/dragon/integration/${test.package}/*TestCase.java</include>
+										<include>org/ow2/dragon/integration/${test.package}/*Test.java
+										</include>
+										<include>org/ow2/dragon/integration/${test.package}/Test*.java
+										</include>
+										<include>org/ow2/dragon/integration/${test.package}/*TestCase.java
+										</include>
 									</includes>
 									<skip>false</skip>
 								</configuration>
@@ -741,181 +987,386 @@
 			</build>
 		</profile>
 		<profile>
-            <id>integration-eclipse</id>
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.apache.maven.plugins</groupId>
-                        <artifactId>maven-assembly-plugin</artifactId>
-                        <executions>
-                            <execution>
-                                <id>create-petals-distrib</id>
-                                <phase>pre-integration-test</phase>
-                                <goals>
-                                    <goal>single</goal>
-                                </goals>
-                                <configuration>
-                                    <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
-                                    <appendAssemblyId>false</appendAssemblyId>
-                                    <finalName>${petals.artifactId}</finalName>
-                                    <descriptors>
-                                        <descriptor>
-                                            src/main/assembly/assembly.xml </descriptor>
-                                    </descriptors>
-                                </configuration>
-                            </execution>
-                        </executions>
-                    </plugin>
-                    <plugin>
-                        <groupId>org.mortbay.jetty</groupId>
-                        <artifactId>jetty-maven-plugin</artifactId>
-                        <version>7.0.0.v20091005</version>
-                        <configuration>
-                            <scanIntervalSeconds>10</scanIntervalSeconds>
-                            <stopKey>foo</stopKey>
-                            <stopPort>9999</stopPort>
-                        </configuration>
-                        <executions>
-                            <execution>
-                                <id>start-jetty</id>
-                                <phase>pre-integration-test</phase>
-                                <goals>
-                                    <goal>run-war</goal>
-                                </goals>
-                                <configuration>
-                                    <scanIntervalSeconds>0</scanIntervalSeconds>
-                                    <daemon>true</daemon>
-                                    <webApp>${project.build.directory}/${petals.artifactId}/dragon-ui-${project.version}.war</webApp>
-                                    <webAppConfig>
-                                        <contextPath>/petals-master</contextPath>
-                                    </webAppConfig>
-                                </configuration>
-                            </execution>
-                            <!--
-                                <execution> <id>stop-jetty</id>
-                                <phase>post-integration-test</phase> <goals> <goal>stop</goal>
-                                </goals> </execution>
-                            -->
-                        </executions>
-                    </plugin>
-                    <plugin>
-                        <groupId>org.codehaus.mojo</groupId>
-                        <artifactId>selenium-maven-plugin</artifactId>
-                        <executions>
-                            <execution>
-                                <id>start-selenium</id>
-                                <phase>pre-integration-test</phase>
-                                <goals>
-                                    <goal>start-server</goal>
-                                </goals>
-                                <configuration>
-                                    <background>true</background>
-                                </configuration>
-                            </execution>
-                        </executions>
-                    </plugin>
-                    <plugin>
-                        <groupId>org.apache.maven.plugins</groupId>
-                        <artifactId>maven-antrun-plugin</artifactId>
-                        <executions>
-                            <execution>
-                                <id>start-petals-distrib</id>
-                                <phase>pre-integration-test</phase>
-                                <goals>
-                                    <goal>run</goal>
-                                </goals>
-                                <configuration>
-                                    <tasks description="PEtALS standalone container : startup">
-                                        <taskdef resource="net/sf/antcontrib/antcontrib.properties"
-                                            classpathref="maven.plugin.classpath" />
-                                        <chmod
-                                            file="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-version}/bin/*.sh"
-                                            perm="755" />
-                                        <exec
-                                            dir="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-version}/bin"
-                                            executable="sh" os="Linux" searchpath="true">
-                                            <arg value="startup.sh" />
-                                            <arg value="-D" />
-                                        </exec>
-                                        <sleep seconds="30" />
-                                    </tasks>
-                                </configuration>
-                            </execution>
-                            <execution>
-                                <id>deploy-petals-components</id>
-                                <phase>pre-integration-test</phase>
-                                <goals>
-                                    <goal>run</goal>
-                                </goals>
-                                <configuration>
-                                    <tasks description="PEtALS BC MAIL tests">
-                                        <!--
-                                            TODO : find a better way to set the PETALS_HOME
-                                            property/env-variable
-                                        -->
-                                        <property name="petals.home"
-                                            value="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-version}" />
-                                        <ant
-                                            antfile="${project.build.directory}/${petals.artifactId}/build.xml"
-                                            dir="${project.build.directory}/${petals.artifactId}">
-                                            <target name="deploy" />
-                                        </ant>
-                                        <sleep hours="2" />
-                                    </tasks>
-                                </configuration>
-                            </execution>
-                        </executions>
-                        <dependencies>
-                            <dependency>
-                                <groupId>org.apache.maven</groupId>
-                                <artifactId>maven-artifact-ant</artifactId>
-                                <version>2.0.4</version>
-                            </dependency>
-                            <dependency>
-                                <groupId>ant</groupId>
-                                <artifactId>ant</artifactId>
-                                <version>1.6.5</version>
-                            </dependency>
-                            <dependency>
-                                <groupId>jtidy</groupId>
-                                <artifactId>jtidy</artifactId>
-                                <version>4aug2000r7-dev</version>
-                            </dependency>
-                            <dependency>
-                                <groupId>ant-contrib</groupId>
-                                <artifactId>cpptasks</artifactId>
-                                <version>1.0b3</version>
-                            </dependency>
-                            <dependency>
-                                <groupId>ant-contrib</groupId>
-                                <artifactId>ant-contrib</artifactId>
-                                <version>1.0b2</version>
-                            </dependency>
-                            <dependency>
-                                <groupId>ant</groupId>
-                                <artifactId>optional</artifactId>
-                                <version>1.5.4</version>
-                            </dependency>
-                            <dependency>
-                                <groupId>ant</groupId>
-                                <artifactId>ant-antlr</artifactId>
-                                <version>1.6.5</version>
-                            </dependency>
-                            <dependency>
-                                <groupId>antlr</groupId>
-                                <artifactId>antlrall</artifactId>
-                                <version>2.7.4</version>
-                            </dependency>
-                            <dependency>
-                                <groupId>ant</groupId>
-                                <artifactId>ant-nodeps</artifactId>
-                                <version>1.6.5</version>
-                            </dependency>
-                        </dependencies>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
+			<id>integration-eclipse</id>
+			<build>
+				<plugins>
+					<plugin>
+						<groupId>org.apache.maven.plugins</groupId>
+						<artifactId>maven-assembly-plugin</artifactId>
+						<executions>
+							<execution>
+								<id>create-petals-distrib</id>
+								<phase>pre-integration-test</phase>
+								<goals>
+									<goal>single</goal>
+								</goals>
+								<configuration>
+									<ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
+									<appendAssemblyId>false</appendAssemblyId>
+									<finalName>${petals.artifactId}</finalName>
+									<descriptors>
+										<descriptor>
+											src/main/assembly/assembly.xml </descriptor>
+									</descriptors>
+								</configuration>
+							</execution>
+						</executions>
+					</plugin>
+					<plugin>
+						<groupId>org.mortbay.jetty</groupId>
+						<artifactId>jetty-maven-plugin</artifactId>
+						<version>7.0.0.v20091005</version>
+						<configuration>
+							<scanIntervalSeconds>10</scanIntervalSeconds>
+							<stopKey>foo</stopKey>
+							<stopPort>9999</stopPort>
+						</configuration>
+						<executions>
+							<execution>
+								<id>start-jetty</id>
+								<phase>pre-integration-test</phase>
+								<goals>
+									<goal>run-war</goal>
+								</goals>
+								<configuration>
+									<scanIntervalSeconds>0</scanIntervalSeconds>
+									<daemon>true</daemon>
+									<webApp>${project.build.directory}/${petals.artifactId}/dragon-ui-${project.version}.war
+									</webApp>
+									<webAppConfig>
+										<contextPath>/petals-master</contextPath>
+									</webAppConfig>
+								</configuration>
+							</execution>
+							<!--
+								<execution> <id>stop-jetty</id>
+								<phase>post-integration-test</phase> <goals> <goal>stop</goal>
+								</goals> </execution>
+							-->
+						</executions>
+					</plugin>
+					<plugin>
+						<groupId>org.codehaus.mojo</groupId>
+						<artifactId>selenium-maven-plugin</artifactId>
+						<executions>
+							<execution>
+								<id>start-selenium</id>
+								<phase>pre-integration-test</phase>
+								<goals>
+									<goal>start-server</goal>
+								</goals>
+								<configuration>
+									<background>true</background>
+								</configuration>
+							</execution>
+						</executions>
+					</plugin>
+					<plugin>
+						<groupId>org.apache.maven.plugins</groupId>
+						<artifactId>maven-antrun-plugin</artifactId>
+						<executions>
+							<execution>
+								<id>start-petals-distrib</id>
+								<phase>pre-integration-test</phase>
+								<goals>
+									<goal>run</goal>
+								</goals>
+								<configuration>
+									<tasks description="PEtALS standalone container : startup">
+										<taskdef resource="net/sf/antcontrib/antcontrib.properties"
+											classpathref="maven.plugin.classpath" />
+										<chmod
+											file="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-version}/bin/*.sh"
+											perm="755" />
+										<exec
+											dir="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-version}/bin"
+											executable="sh" os="Linux" searchpath="true">
+											<arg value="startup.sh" />
+											<arg value="-D" />
+										</exec>
+										<sleep seconds="30" />
+									</tasks>
+								</configuration>
+							</execution>
+							<execution>
+								<id>deploy-petals-components</id>
+								<phase>pre-integration-test</phase>
+								<goals>
+									<goal>run</goal>
+								</goals>
+								<configuration>
+									<tasks description="PEtALS BC MAIL tests">
+										<!--
+											TODO : find a better way to set the PETALS_HOME
+											property/env-variable
+										-->
+										<property name="petals.home"
+											value="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-version}" />
+										<ant
+											antfile="${project.build.directory}/${petals.artifactId}/build.xml"
+											dir="${project.build.directory}/${petals.artifactId}">
+											<target name="deploy" />
+										</ant>
+										<sleep hours="2" />
+									</tasks>
+								</configuration>
+							</execution>
+						</executions>
+						<dependencies>
+							<dependency>
+								<groupId>org.apache.maven</groupId>
+								<artifactId>maven-artifact-ant</artifactId>
+								<version>2.0.4</version>
+							</dependency>
+							<dependency>
+								<groupId>ant</groupId>
+								<artifactId>ant</artifactId>
+								<version>1.6.5</version>
+							</dependency>
+							<dependency>
+								<groupId>jtidy</groupId>
+								<artifactId>jtidy</artifactId>
+								<version>4aug2000r7-dev</version>
+							</dependency>
+							<dependency>
+								<groupId>ant-contrib</groupId>
+								<artifactId>cpptasks</artifactId>
+								<version>1.0b3</version>
+							</dependency>
+							<dependency>
+								<groupId>ant-contrib</groupId>
+								<artifactId>ant-contrib</artifactId>
+								<version>1.0b2</version>
+							</dependency>
+							<dependency>
+								<groupId>ant</groupId>
+								<artifactId>optional</artifactId>
+								<version>1.5.4</version>
+							</dependency>
+							<dependency>
+								<groupId>ant</groupId>
+								<artifactId>ant-antlr</artifactId>
+								<version>1.6.5</version>
+							</dependency>
+							<dependency>
+								<groupId>antlr</groupId>
+								<artifactId>antlrall</artifactId>
+								<version>2.7.4</version>
+							</dependency>
+							<dependency>
+								<groupId>ant</groupId>
+								<artifactId>ant-nodeps</artifactId>
+								<version>1.6.5</version>
+							</dependency>
+						</dependencies>
+					</plugin>
+				</plugins>
+			</build>
+		</profile>
+
+		<!-- Tomcat integration profile for Eclipse testing -->
+		<profile>
+			<id>integration-eclipse-tomcat</id>
+			<build>
+				<plugins>
+					<plugin>
+						<groupId>org.apache.maven.plugins</groupId>
+						<artifactId>maven-assembly-plugin</artifactId>
+						<executions>
+							<execution>
+								<id>create-petals-distrib</id>
+								<phase>pre-integration-test</phase>
+								<goals>
+									<goal>single</goal>
+								</goals>
+								<configuration>
+									<ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
+									<appendAssemblyId>false</appendAssemblyId>
+									<finalName>${petals.artifactId}</finalName>
+									<descriptors>
+										<descriptor>
+											src/main/assembly/assembly.xml </descriptor>
+									</descriptors>
+								</configuration>
+							</execution>
+						</executions>
+					</plugin>
+					<plugin>
+						<groupId>org.codehaus.cargo</groupId>
+						<artifactId>cargo-maven2-plugin</artifactId>
+						<executions>
+							<execution>
+								<id>install</id>
+								<phase>generate-resources</phase>
+								<goals>
+									<goal>install</goal>
+								</goals>
+							</execution>
+							<execution>
+								<id>start-container</id>
+								<phase>pre-integration-test</phase>
+								<goals>
+									<goal>start</goal>
+								</goals>
+								<configuration>
+									<wait>false</wait>
+								</configuration>
+							</execution>
+							<execution>
+								<id>stop-container</id>
+								<phase>post-integration-test</phase>
+								<goals>
+									<goal>stop</goal>
+								</goals>
+							</execution>
+						</executions>
+						<configuration>
+							<container>
+								<containerId>${tomcat.container.name}</containerId>
+								<zipUrlInstaller>
+									<url>${tomcat.container.url}</url>
+									<installDir>${java.io.tmpdir}/cargoinstalls</installDir>
+								</zipUrlInstaller>
+								<log>${java.io.tmpdir}/cargoinstalls/logs/${tomcat.container.name}.log
+								</log>
+								<output>${java.io.tmpdir}/cargoinstalls/logs/${tomcat.container.name}.out
+								</output>
+								<timeout>600000</timeout>
+							</container>
+							<configuration>
+								<type>standalone</type>
+								<deployables>
+									<!-- application to deploy -->
+									<deployable>
+										<groupId>org.ow2.dragon</groupId>
+										<artifactId>dragon-ui</artifactId>
+										<type>war</type>
+										<properties>
+											<context>petals-master</context>
+										</properties>
+									</deployable>
+								</deployables>
+							</configuration>
+						</configuration>
+					</plugin>
+					<plugin>
+						<groupId>org.codehaus.mojo</groupId>
+						<artifactId>selenium-maven-plugin</artifactId>
+						<executions>
+							<execution>
+								<id>start-selenium</id>
+								<phase>pre-integration-test</phase>
+								<goals>
+									<goal>start-server</goal>
+								</goals>
+								<configuration>
+									<background>true</background>
+								</configuration>
+							</execution>
+						</executions>
+					</plugin>
+					<plugin>
+						<groupId>org.apache.maven.plugins</groupId>
+						<artifactId>maven-antrun-plugin</artifactId>
+						<executions>
+							<execution>
+								<id>start-petals-distrib</id>
+								<phase>pre-integration-test</phase>
+								<goals>
+									<goal>run</goal>
+								</goals>
+								<configuration>
+									<tasks description="PEtALS standalone container : startup">
+										<taskdef resource="net/sf/antcontrib/antcontrib.properties"
+											classpathref="maven.plugin.classpath" />
+										<chmod
+											file="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-version}/bin/*.sh"
+											perm="755" />
+										<exec
+											dir="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-version}/bin"
+											executable="sh" os="Linux" searchpath="true">
+											<arg value="startup.sh" />
+											<arg value="-D" />
+										</exec>
+										<sleep seconds="30" />
+									</tasks>
+								</configuration>
+							</execution>
+							<execution>
+								<id>deploy-petals-components</id>
+								<phase>pre-integration-test</phase>
+								<goals>
+									<goal>run</goal>
+								</goals>
+								<configuration>
+									<tasks description="PEtALS BC MAIL tests">
+										<!--
+											TODO : find a better way to set the PETALS_HOME
+											property/env-variable
+										-->
+										<property name="petals.home"
+											value="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-version}" />
+										<ant
+											antfile="${project.build.directory}/${petals.artifactId}/build.xml"
+											dir="${project.build.directory}/${petals.artifactId}">
+											<target name="deploy" />
+										</ant>
+										<sleep hours="2" />
+									</tasks>
+								</configuration>
+							</execution>
+						</executions>
+						<dependencies>
+							<dependency>
+								<groupId>org.apache.maven</groupId>
+								<artifactId>maven-artifact-ant</artifactId>
+								<version>2.0.4</version>
+							</dependency>
+							<dependency>
+								<groupId>ant</groupId>
+								<artifactId>ant</artifactId>
+								<version>1.6.5</version>
+							</dependency>
+							<dependency>
+								<groupId>jtidy</groupId>
+								<artifactId>jtidy</artifactId>
+								<version>4aug2000r7-dev</version>
+							</dependency>
+							<dependency>
+								<groupId>ant-contrib</groupId>
+								<artifactId>cpptasks</artifactId>
+								<version>1.0b3</version>
+							</dependency>
+							<dependency>
+								<groupId>ant-contrib</groupId>
+								<artifactId>ant-contrib</artifactId>
+								<version>1.0b2</version>
+							</dependency>
+							<dependency>
+								<groupId>ant</groupId>
+								<artifactId>optional</artifactId>
+								<version>1.5.4</version>
+							</dependency>
+							<dependency>
+								<groupId>ant</groupId>
+								<artifactId>ant-antlr</artifactId>
+								<version>1.6.5</version>
+							</dependency>
+							<dependency>
+								<groupId>antlr</groupId>
+								<artifactId>antlrall</artifactId>
+								<version>2.7.4</version>
+							</dependency>
+							<dependency>
+								<groupId>ant</groupId>
+								<artifactId>ant-nodeps</artifactId>
+								<version>1.6.5</version>
+							</dependency>
+						</dependencies>
+					</plugin>
+				</plugins>
+			</build>
+		</profile>
 	</profiles>
 
 	<!-- ====== -->
@@ -942,4 +1393,4 @@
 			</plugin>
 		</plugins>
 	</build>
-</project>
\ No newline at end of file
+</project>


<--  Date Index     <--  Thread Index    

Reply via email to:

Powered by MHonArc.

Copyright © 2006-2007, OW2 Consortium | contact | webmaster.