parent
733118687c
commit
be066959e3
|
@ -1 +0,0 @@
|
||||||
invoker.goals = test
|
|
|
@ -1,103 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<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/xsd/maven-4.0.0.xsd">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
|
|
||||||
<parent>
|
|
||||||
<groupId>org.eclipse.jetty.its</groupId>
|
|
||||||
<artifactId>it-parent-pom</artifactId>
|
|
||||||
<version>0.0.1-SNAPSHOT</version>
|
|
||||||
</parent>
|
|
||||||
|
|
||||||
<artifactId>jetty-run-mojo-jsp</artifactId>
|
|
||||||
<packaging>war</packaging>
|
|
||||||
|
|
||||||
<name>Jetty :: Simple :: Webapp</name>
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<jetty.port.file>${project.build.directory}/jetty-run-mojo-jsp.txt</jetty.port.file>
|
|
||||||
</properties>
|
|
||||||
<dependencies>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.slf4j</groupId>
|
|
||||||
<artifactId>slf4j-simple</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.eclipse.jetty</groupId>
|
|
||||||
<artifactId>jetty-servlet</artifactId>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.eclipse.jetty</groupId>
|
|
||||||
<artifactId>jetty-maven-plugin</artifactId>
|
|
||||||
<classifier>tests</classifier>
|
|
||||||
<type>test-jar</type>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.junit.jupiter</groupId>
|
|
||||||
<artifactId>junit-jupiter-engine</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
|
|
||||||
<pluginManagement>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-war-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<failOnMissingWebXml>false</failOnMissingWebXml>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</pluginManagement>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<systemPropertyVariables>
|
|
||||||
<jetty.port.file>${jetty.port.file}</jetty.port.file>
|
|
||||||
<contentCheck>Counter accessed 1 times.</contentCheck>
|
|
||||||
<pathToCheck>/jsp/bean1.jsp</pathToCheck>
|
|
||||||
<maven.it.name>${project.groupId}:${project.artifactId}</maven.it.name>
|
|
||||||
</systemPropertyVariables>
|
|
||||||
<dependenciesToScan>
|
|
||||||
<dependency>org.eclipse.jetty:jetty-maven-plugin</dependency>
|
|
||||||
</dependenciesToScan>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.eclipse.jetty</groupId>
|
|
||||||
<artifactId>jetty-maven-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>start-jetty</id>
|
|
||||||
<phase>test-compile</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>start</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<systemProperties>
|
|
||||||
<systemProperty>
|
|
||||||
<name>jetty.port.file</name>
|
|
||||||
<value>${jetty.port.file}</value>
|
|
||||||
</systemProperty>
|
|
||||||
</systemProperties>
|
|
||||||
<nonBlocking>true</nonBlocking>
|
|
||||||
<jettyXml>${basedir}/src/config/jetty.xml</jettyXml>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
|
|
||||||
</project>
|
|
|
@ -1,22 +0,0 @@
|
||||||
/*
|
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
* or more contributor license agreements. See the NOTICE file
|
|
||||||
* distributed with this work for additional information
|
|
||||||
* regarding copyright ownership. The ASF licenses this file
|
|
||||||
* to you under the Apache License, Version 2.0 (the
|
|
||||||
* "License"); you may not use this file except in compliance
|
|
||||||
* with the License. You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
File buildLog = new File( basedir, 'build.log' )
|
|
||||||
assert buildLog.text.contains( 'Started Server' )
|
|
||||||
assert buildLog.text.contains( 'Running org.eclipse.jetty.maven.plugin.it.TestGetContent')
|
|
||||||
assert buildLog.text.contains( 'contentCheck')
|
|
|
@ -1,40 +0,0 @@
|
||||||
<?xml version="1.0"?>
|
|
||||||
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_10_0.dtd">
|
|
||||||
|
|
||||||
<Configure id="Server" class="org.eclipse.jetty.server.Server">
|
|
||||||
<New id="httpConfig" class="org.eclipse.jetty.server.HttpConfiguration">
|
|
||||||
<Set name="secureScheme">https</Set>
|
|
||||||
<Set name="securePort"><Property name="jetty.secure.port" default="8443" /></Set>
|
|
||||||
<Set name="outputBufferSize">32768</Set>
|
|
||||||
<Set name="requestHeaderSize">8192</Set>
|
|
||||||
<Set name="responseHeaderSize">8192</Set>
|
|
||||||
<Set name="headerCacheSize">4096</Set>
|
|
||||||
</New>
|
|
||||||
|
|
||||||
<Call name="addConnector">
|
|
||||||
<Arg>
|
|
||||||
<New class="org.eclipse.jetty.server.ServerConnector">
|
|
||||||
<Arg name="server"><Ref refid="Server" /></Arg>
|
|
||||||
<Arg name="factories">
|
|
||||||
<Array type="org.eclipse.jetty.server.ConnectionFactory">
|
|
||||||
<Item>
|
|
||||||
<New class="org.eclipse.jetty.server.HttpConnectionFactory">
|
|
||||||
<Arg name="config"><Ref refid="httpConfig" /></Arg>
|
|
||||||
</New>
|
|
||||||
</Item>
|
|
||||||
</Array>
|
|
||||||
</Arg>
|
|
||||||
<Call name="addLifeCycleListener">
|
|
||||||
<Arg>
|
|
||||||
<New class="org.eclipse.jetty.maven.plugin.ServerConnectorListener">
|
|
||||||
<Set name="fileName"><Property name="jetty.port.file" default="port.txt"/></Set>
|
|
||||||
</New>
|
|
||||||
</Arg>
|
|
||||||
</Call>
|
|
||||||
<Set name="host" property="jetty.host"/>
|
|
||||||
<Set name="port" property="jetty.port"/>
|
|
||||||
<Set name="idleTimeout">30000</Set>
|
|
||||||
</New>
|
|
||||||
</Arg>
|
|
||||||
</Call>
|
|
||||||
</Configure>
|
|
|
@ -1,7 +0,0 @@
|
||||||
<?xml version="1.0"?>
|
|
||||||
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
|
|
||||||
version="3.1">
|
|
||||||
<display-name>Jetty Simple Webapp run-mojo-jsp</display-name>
|
|
||||||
</web-app>
|
|
|
@ -16,7 +16,7 @@
|
||||||
// ========================================================================
|
// ========================================================================
|
||||||
//
|
//
|
||||||
|
|
||||||
package com.acme;
|
package org.eclipse.jetty.its.jetty_start_forked;
|
||||||
|
|
||||||
@SuppressWarnings("serial")
|
@SuppressWarnings("serial")
|
||||||
public class Counter implements java.io.Serializable
|
public class Counter implements java.io.Serializable
|
|
@ -16,7 +16,7 @@
|
||||||
// ========================================================================
|
// ========================================================================
|
||||||
//
|
//
|
||||||
|
|
||||||
package org.eclipse.jetty.its.jetty_run_forked_mojo_it;
|
package org.eclipse.jetty.its.jetty_start_forked;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import javax.servlet.ServletException;
|
import javax.servlet.ServletException;
|
|
@ -16,7 +16,7 @@
|
||||||
// ========================================================================
|
// ========================================================================
|
||||||
//
|
//
|
||||||
|
|
||||||
package org.eclipse.jetty.its.jetty_run_forked_mojo_it;
|
package org.eclipse.jetty.its.jetty_start_forked;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import javax.servlet.ServletException;
|
import javax.servlet.ServletException;
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
<servlet>
|
<servlet>
|
||||||
<servlet-name>Ping</servlet-name>
|
<servlet-name>Ping</servlet-name>
|
||||||
<servlet-class>org.eclipse.jetty.its.jetty_run_forked_mojo_it.PingServlet</servlet-class>
|
<servlet-class>org.eclipse.jetty.its.jetty_start_forked.PingServlet</servlet-class>
|
||||||
<init-param>
|
<init-param>
|
||||||
<param-name>extra1</param-name><param-value>123</param-value>
|
<param-name>extra1</param-name><param-value>123</param-value>
|
||||||
</init-param>
|
</init-param>
|
||||||
|
@ -29,4 +29,4 @@
|
||||||
</servlet-mapping>
|
</servlet-mapping>
|
||||||
|
|
||||||
|
|
||||||
</web-fragment>
|
</web-fragment>
|
||||||
|
|
|
@ -70,6 +70,8 @@
|
||||||
<jetty.port.file>${jetty.port.file}</jetty.port.file>
|
<jetty.port.file>${jetty.port.file}</jetty.port.file>
|
||||||
<pingServlet>true</pingServlet>
|
<pingServlet>true</pingServlet>
|
||||||
<helloServlet>true</helloServlet>
|
<helloServlet>true</helloServlet>
|
||||||
|
<contentCheck>Counter accessed 1 times.</contentCheck>
|
||||||
|
<pathToCheck>/jsp/bean1.jsp</pathToCheck>
|
||||||
<maven.it.name>${project.groupId}:${project.artifactId}</maven.it.name>
|
<maven.it.name>${project.groupId}:${project.artifactId}</maven.it.name>
|
||||||
</systemPropertyVariables>
|
</systemPropertyVariables>
|
||||||
<dependenciesToScan>
|
<dependenciesToScan>
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
|
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
|
||||||
version="3.1">
|
version="3.1">
|
||||||
<display-name>Jetty Simple Webapp run-mojo-it</display-name>
|
<display-name>Jetty Simple Webapp start-jetty-forked</display-name>
|
||||||
</web-app>
|
</web-app>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<html>
|
<html>
|
||||||
<%@ page session="true"%>
|
<%@ page session="true"%>
|
||||||
<body>
|
<body>
|
||||||
<jsp:useBean id='counter' scope='session' class='com.acme.Counter' type="com.acme.Counter" />
|
<jsp:useBean id='counter' scope='session' class='org.eclipse.jetty.its.jetty_start_forked.Counter' type="org.eclipse.jetty.its.jetty_start_forked.Counter" />
|
||||||
|
|
||||||
<h1>JSP1.2 Beans: 1</h1>
|
<h1>JSP1.2 Beans: 1</h1>
|
||||||
|
|
Loading…
Reference in New Issue