Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Erdfelt2015-01-21 18:00:54 +0000
committerJoakim Erdfelt2015-01-21 18:00:54 +0000
commit48e515773151252327e54fe5f8056df5e70867c1 (patch)
tree6b7ac4ef8903526454fc776fce0b374c3f74b50a /tests/test-jmx/jmx-webapp-it/pom.xml
parent73110f5ba0c3960b9294fdc935e3724aa0a972db (diff)
parentc6b07e09d9fd76d114fb3298a6423dcf8edadf24 (diff)
downloadorg.eclipse.jetty.project-48e515773151252327e54fe5f8056df5e70867c1.tar.gz
org.eclipse.jetty.project-48e515773151252327e54fe5f8056df5e70867c1.tar.xz
org.eclipse.jetty.project-48e515773151252327e54fe5f8056df5e70867c1.zip
Merge branch 'jetty-9.2.x'
Conflicts: VERSION.txt aggregates/jetty-all/pom.xml apache-jsp/pom.xml apache-jstl/pom.xml examples/async-rest/async-rest-jar/pom.xml examples/async-rest/async-rest-webapp/pom.xml examples/async-rest/pom.xml examples/embedded/pom.xml examples/pom.xml jetty-alpn/jetty-alpn-client/pom.xml jetty-alpn/jetty-alpn-server/pom.xml jetty-alpn/pom.xml jetty-annotations/pom.xml jetty-ant/pom.xml jetty-cdi/pom.xml jetty-client/pom.xml jetty-continuation/pom.xml jetty-deploy/pom.xml jetty-distribution/pom.xml jetty-fcgi/fcgi-client/pom.xml jetty-fcgi/fcgi-server/pom.xml jetty-fcgi/pom.xml jetty-http-spi/pom.xml jetty-http/pom.xml jetty-io/pom.xml jetty-jaas/pom.xml jetty-jaspi/pom.xml jetty-jmx/pom.xml jetty-jndi/pom.xml jetty-jsp/pom.xml jetty-jspc-maven-plugin/pom.xml jetty-maven-plugin/pom.xml jetty-monitor/pom.xml jetty-nosql/pom.xml jetty-osgi/jetty-osgi-alpn/pom.xml jetty-osgi/jetty-osgi-boot-jsp/pom.xml jetty-osgi/jetty-osgi-boot-warurl/pom.xml jetty-osgi/jetty-osgi-boot/pom.xml jetty-osgi/jetty-osgi-httpservice/pom.xml jetty-osgi/jetty-osgi-npn/pom.xml jetty-osgi/pom.xml jetty-osgi/test-jetty-osgi-context/pom.xml jetty-osgi/test-jetty-osgi-webapp/pom.xml jetty-osgi/test-jetty-osgi/pom.xml jetty-plus/pom.xml jetty-proxy/pom.xml jetty-quickstart/pom.xml jetty-rewrite/pom.xml jetty-runner/pom.xml jetty-security/pom.xml jetty-server/pom.xml jetty-servlet/pom.xml jetty-servlets/pom.xml jetty-spdy/pom.xml jetty-spdy/spdy-alpn-tests/pom.xml jetty-spdy/spdy-client/pom.xml jetty-spdy/spdy-core/pom.xml jetty-spdy/spdy-example-webapp/pom.xml jetty-spdy/spdy-http-client-transport/pom.xml jetty-spdy/spdy-http-common/pom.xml jetty-spdy/spdy-http-server/pom.xml jetty-spdy/spdy-npn-tests/pom.xml jetty-spdy/spdy-server/pom.xml jetty-spring/pom.xml jetty-start/pom.xml jetty-util-ajax/pom.xml jetty-util/pom.xml jetty-webapp/pom.xml jetty-websocket/javax-websocket-client-impl/pom.xml jetty-websocket/javax-websocket-server-impl/pom.xml jetty-websocket/pom.xml jetty-websocket/websocket-api/pom.xml jetty-websocket/websocket-client/pom.xml jetty-websocket/websocket-common/pom.xml jetty-websocket/websocket-server/pom.xml jetty-websocket/websocket-servlet/pom.xml jetty-xml/pom.xml pom.xml tests/pom.xml tests/test-continuation/pom.xml tests/test-integration/pom.xml tests/test-loginservice/pom.xml tests/test-quickstart/pom.xml tests/test-sessions/pom.xml tests/test-sessions/test-hash-sessions/pom.xml tests/test-sessions/test-jdbc-sessions/pom.xml tests/test-sessions/test-mongodb-sessions/pom.xml tests/test-sessions/test-sessions-common/pom.xml tests/test-webapps/pom.xml tests/test-webapps/test-jaas-webapp/pom.xml tests/test-webapps/test-jetty-webapp/pom.xml tests/test-webapps/test-jndi-webapp/pom.xml tests/test-webapps/test-mock-resources/pom.xml tests/test-webapps/test-proxy-webapp/pom.xml tests/test-webapps/test-servlet-spec/pom.xml tests/test-webapps/test-servlet-spec/test-container-initializer/pom.xml tests/test-webapps/test-servlet-spec/test-spec-webapp/pom.xml tests/test-webapps/test-servlet-spec/test-web-fragment/pom.xml tests/test-webapps/test-webapp-rfc2616/pom.xml
Diffstat (limited to 'tests/test-jmx/jmx-webapp-it/pom.xml')
-rw-r--r--tests/test-jmx/jmx-webapp-it/pom.xml215
1 files changed, 215 insertions, 0 deletions
diff --git a/tests/test-jmx/jmx-webapp-it/pom.xml b/tests/test-jmx/jmx-webapp-it/pom.xml
new file mode 100644
index 0000000000..00a255ca40
--- /dev/null
+++ b/tests/test-jmx/jmx-webapp-it/pom.xml
@@ -0,0 +1,215 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+// ========================================================================
+// Copyright (c) Webtide LLC
+//
+// All rights reserved. This program and the accompanying materials
+// are made available under the terms of the Eclipse Public License v1.0
+// and Apache License v2.0 which accompanies this distribution.
+//
+// The Eclipse Public License is available at
+// http://www.eclipse.org/legal/epl-v10.html
+//
+// The Apache License v2.0 is available at
+// http://www.apache.org/licenses/LICENSE-2.0.txt
+//
+// You may elect to redistribute this code under either of these licenses.
+// ========================================================================
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.eclipse.jetty.tests</groupId>
+ <artifactId>test-jmx-parent</artifactId>
+ <version>9.3.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jmx-webapp-it</artifactId>
+ <packaging>jar</packaging>
+ <name>Jetty Tests :: JMX :: WebApp Integration Tests</name>
+ <url>http://www.eclipse.org/jetty</url>
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+ <bundle-symbolic-name>${project.groupId}.jmx.webapp.it</bundle-symbolic-name>
+ <scripts-dir>${project.basedir}/src/test/scripts</scripts-dir>
+ <test-base-dir>${project.build.directory}/test-base</test-base-dir>
+ <test-home-dir>${project.build.directory}/test-home</test-home-dir>
+ </properties>
+ <dependencies>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-distribution</artifactId>
+ <version>${project.version}</version>
+ <type>zip</type>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty.tests</groupId>
+ <artifactId>jmx-webapp</artifactId>
+ <version>${project.version}</version>
+ <type>war</type>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty.toolchain</groupId>
+ <artifactId>jetty-test-helper</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-apps-for-testing</id>
+ <phase>process-test-resources</phase>
+ <goals>
+ <goal>copy-dependencies</goal>
+ </goals>
+ <configuration>
+ <includeArtifactIds>jmx-webapp</includeArtifactIds>
+ <includeScope>runtime</includeScope>
+ <includeTypes>war</includeTypes>
+ <overwriteSnapshots>true</overwriteSnapshots>
+ <overwriteReleases>true</overwriteReleases>
+ <stripVersion>true</stripVersion>
+ <outputDirectory>${test-base-dir}/webapps</outputDirectory>
+ </configuration>
+ </execution>
+ <execution>
+ <id>unpack-jetty-distro</id>
+ <phase>process-test-resources</phase>
+ <goals>
+ <goal>unpack-dependencies</goal>
+ </goals>
+ <configuration>
+ <includeArtifactIds>jetty-distribution</includeArtifactIds>
+ <includeScope>runtime</includeScope>
+ <includeTypes>zip</includeTypes>
+ <outputAbsoluteArtifactFilename>true</outputAbsoluteArtifactFilename>
+ <outputDirectory>${test-home-dir}</outputDirectory>
+ <overWriteSnapshots>true</overWriteSnapshots>
+ <overWriteIfNewer>true</overWriteIfNewer>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <version>2.17</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>integration-test</goal>
+ <goal>verify</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.7</version>
+ <executions>
+ <execution>
+ <id>start-jetty</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <target>
+ <property name="jetty.jmx.home" location="${test-home-dir}/jetty-distribution-${project.version}"/>
+ <property name="jetty.jmx.base" location="${test-base-dir}"/>
+ <echo>Integration Test : Setup Jetty</echo>
+ <exec executable="${run.command}"
+ dir="${scripts-dir}"
+ spawn="false">
+ <arg value="${run.command.xtra}"/>
+ <arg value="${setup.script}"/>
+ <arg file="${java.home}"/>
+ <arg file="${jetty.jmx.home}"/>
+ <arg file="${jetty.jmx.base}"/>
+ </exec>
+
+ <echo>Integration Test : Starting Jetty ...</echo>
+ <exec executable="${run.command}"
+ dir="${scripts-dir}"
+ spawn="true">
+ <arg value="${run.command.xtra}"/>
+ <arg value="${start.script}"/>
+ <arg file="${java.home}"/>
+ <arg file="${jetty.jmx.home}"/>
+ <arg file="${jetty.jmx.base}"/>
+ </exec>
+ <waitfor maxwait="5" maxwaitunit="second"
+ checkevery="500" checkeveryunit="millisecond">
+ <http url="http://localhost:58080/jmx-webapp/"/>
+ </waitfor>
+ <echo>Integration Test : Jetty is now available</echo>
+ </target>
+ </configuration>
+ </execution>
+ <execution>
+ <id>stop-jetty</id>
+ <phase>post-integration-test</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <target>
+ <property name="jetty.jmx.home" location="${test-home-dir}/jetty-distribution-${project.version}"/>
+ <property name="jetty.jmx.base" location="${test-base-dir}"/>
+ <echo>Integration Test : Stop Jetty</echo>
+ <exec executable="${run.command}"
+ dir="${scripts-dir}"
+ spawn="false">
+ <arg value="${run.command.xtra}"/>
+ <arg value="${stop.script}"/>
+ <arg file="${java.home}"/>
+ <arg file="${jetty.jmx.home}"/>
+ <arg file="${jetty.jmx.base}"/>
+ </exec>
+ </target>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ <profiles>
+ <profile>
+ <id>it-windows</id>
+ <activation>
+ <os>
+ <family>Windows</family>
+ </os>
+ </activation>
+ <properties>
+ <run.command>cmd</run.command>
+ <run.command.xtra>/c</run.command.xtra>
+ <start.script>start-jetty.bat</start.script>
+ <stop.script>stop-jetty.bat</stop.script>
+ </properties>
+ </profile>
+ <profile>
+ <id>it-unix</id>
+ <activation>
+ <os>
+ <family>unix</family>
+ </os>
+ </activation>
+ <properties>
+ <run.command>sh</run.command>
+ <run.command.xtra>--</run.command.xtra>
+ <setup.script>setup-jetty.sh</setup.script>
+ <start.script>start-jetty.sh</start.script>
+ <stop.script>stop-jetty.sh</stop.script>
+ </properties>
+ </profile>
+ </profiles>
+</project>

Back to the top