Updating start.jar & tests with new [version] behavior

This commit is contained in:
Joakim Erdfelt 2015-06-12 09:22:04 -07:00
parent 7c737a587b
commit 7711789852
79 changed files with 38 additions and 377 deletions

View File

@ -1082,28 +1082,11 @@ public class StartArgs
public void parseModule(Module module)
{
// Starting with Jetty 9.3 indicated modules, the default config
// is parsed from the [default] section only
if (module.getVersion().isNewerThanOrEqualTo(new Version("9.3")))
if (module.hasDefaultConfig())
{
if (module.hasDefaultConfig())
for (String line : module.getDefaultConfig())
{
for (String line : module.getDefaultConfig())
{
parse(line,module.getFilesystemRef(),false);
}
}
}
else
{
// With Jetty 9.2 indicated modules and older, the default
// config is parsed from the [ini-template] section
if (module.hasIniTemplate())
{
for (String line : module.getIniTemplate())
{
parse(line,module.getFilesystemRef(),false);
}
parse(line,module.getFilesystemRef(),false);
}
}
}

View File

@ -159,7 +159,7 @@ public class MainTest
Path homePath = MavenTestingUtils.getTestResourceDir("dist-home").toPath().toRealPath();
cmdLineArgs.add("jetty.home=" + homePath);
cmdLineArgs.add("user.dir=" + homePath);
cmdLineArgs.add("java.version=1.7.0_60");
cmdLineArgs.add("java.version=1.8.0_31");
// Modules
cmdLineArgs.add("--module=deploy");

View File

@ -50,7 +50,7 @@ public class TestUseCases
ret.add(new String[] {"versioned-modules", null});
// Ones with command lines
ret.add(new Object[] {"http2", new String[]{"java.version=1.7.0_60"}});
ret.add(new Object[] {"http2", new String[]{"java.version=1.8.0_31"}});
ret.add(new Object[] {"basic-properties", new String[]{"port=9090"}});
ret.add(new Object[] {"agent-properties", new String[]{"java.vm.specification.version=1.6"}});

View File

@ -53,7 +53,7 @@ LIB|${jetty.base}/lib/jetty-jndi-9.3.jar
# The Properties we expect (order is irrelevant)
# (these are the properties we actually set in the configuration)
PROP|java.version=1.7.0_60
PROP|java.version=1.8.0_31
PROP|jetty.http.port=8080
PROP|jetty.httpConfig.delayDispatchUntilContent=false
PROP|jetty.server.dumpAfterStart=false
@ -72,7 +72,7 @@ JVM|-Xms1024m
JVM|-Xmx1024m
# Downloads
DOWNLOAD|maven://org.mortbay.jetty.alpn/alpn-boot/7.1.0.v20141016|lib/alpn/alpn-boot-7.1.0.v20141016.jar
DOWNLOAD|maven://org.mortbay.jetty.alpn/alpn-boot/8.1.3.v20150130|lib/alpn/alpn-boot-8.1.3.v20150130.jar
DOWNLOAD|http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/plain/jetty-server/src/test/config/etc/keystore?id=master|etc/keystore
# Files

View File

@ -1,11 +0,0 @@
[version]
9.3
[name]
alpn-boot
[files]
maven://org.mortbay.jetty.alpn/alpn-boot/7.1.0.v20141016|lib/alpn/alpn-boot-7.1.0.v20141016.jar
[exec]
-Xbootclasspath/p:lib/alpn/alpn-boot-7.1.0.v20141016.jar

View File

@ -1,11 +0,0 @@
[version]
9.3
[name]
alpn-boot
[files]
maven://org.mortbay.jetty.alpn/alpn-boot/7.1.0.v20141016|lib/alpn/alpn-boot-7.1.0.v20141016.jar
[exec]
-Xbootclasspath/p:lib/alpn/alpn-boot-7.1.0.v20141016.jar

View File

@ -1,11 +0,0 @@
[version]
9.3
[name]
alpn-boot
[files]
maven://org.mortbay.jetty.alpn/alpn-boot/7.1.0.v20141016|lib/alpn/alpn-boot-7.1.0.v20141016.jar
[exec]
-Xbootclasspath/p:lib/alpn/alpn-boot-7.1.0.v20141016.jar

View File

@ -1,11 +0,0 @@
[version]
9.3
[name]
alpn-boot
[files]
maven://org.mortbay.jetty.alpn/alpn-boot/7.1.0.v20141016|lib/alpn/alpn-boot-7.1.0.v20141016.jar
[exec]
-Xbootclasspath/p:lib/alpn/alpn-boot-7.1.0.v20141016.jar

View File

@ -1,11 +0,0 @@
[version]
9.3
[name]
alpn-boot
[files]
maven://org.mortbay.jetty.alpn/alpn-boot/7.1.0.v20141016|lib/alpn/alpn-boot-7.1.0.v20141016.jar
[exec]
-Xbootclasspath/p:lib/alpn/alpn-boot-7.1.0.v20141016.jar

View File

@ -1,11 +0,0 @@
[version]
9.3
[name]
alpn-boot
[files]
maven://org.mortbay.jetty.alpn/alpn-boot/7.1.0.v20141016|lib/alpn/alpn-boot-7.1.0.v20141016.jar
[exec]
-Xbootclasspath/p:lib/alpn/alpn-boot-7.1.0.v20141016.jar

View File

@ -1,11 +0,0 @@
[version]
9.3
[name]
alpn-boot
[files]
maven://org.mortbay.jetty.alpn/alpn-boot/7.1.0.v20141016|lib/alpn/alpn-boot-7.1.0.v20141016.jar
[exec]
-Xbootclasspath/p:lib/alpn/alpn-boot-7.1.0.v20141016.jar

View File

@ -1,11 +0,0 @@
[version]
9.3
[name]
alpn-boot
[files]
maven://org.mortbay.jetty.alpn/alpn-boot/7.1.2.v20141202|lib/alpn/alpn-boot-7.1.2.v20141202.jar
[exec]
-Xbootclasspath/p:lib/alpn/alpn-boot-7.1.2.v20141202.jar

View File

@ -1,11 +0,0 @@
[version]
9.3
[name]
alpn-boot
[files]
maven://org.mortbay.jetty.alpn/alpn-boot/7.1.2.v20141202|lib/alpn/alpn-boot-7.1.2.v20141202.jar
[exec]
-Xbootclasspath/p:lib/alpn/alpn-boot-7.1.2.v20141202.jar

View File

@ -1,11 +0,0 @@
[version]
9.3
[name]
alpn-boot
[files]
maven://org.mortbay.jetty.alpn/alpn-boot/7.1.3.v20150130|lib/alpn/alpn-boot-7.1.3.v20150130.jar
[exec]
-Xbootclasspath/p:lib/alpn/alpn-boot-7.1.3.v20150130.jar

View File

@ -1,11 +0,0 @@
[version]
9.3
[name]
alpn-boot
[files]
maven://org.mortbay.jetty.alpn/alpn-boot/7.1.3.v20150130|lib/alpn/alpn-boot-7.1.3.v20150130.jar
[exec]
-Xbootclasspath/p:lib/alpn/alpn-boot-7.1.3.v20150130.jar

View File

@ -1,11 +0,0 @@
[version]
9.3
[name]
protonego-boot
[files]
http://central.maven.org/maven2/org/mortbay/jetty/alpn/alpn-boot/7.1.3.v20150130/alpn-boot-7.1.3.v20150130.jar|lib/alpn/alpn-boot-7.1.3.v20150130.jar
[exec]
-Xbootclasspath/p:lib/alpn/alpn-boot-7.1.3.v20150130.jar

View File

@ -1,11 +0,0 @@
[version]
9.3
[name]
protonego-boot
[files]
http://central.maven.org/maven2/org/mortbay/jetty/alpn/alpn-boot/7.1.3.v20150130/alpn-boot-7.1.3.v20150130.jar|lib/alpn/alpn-boot-7.1.3.v20150130.jar
[exec]
-Xbootclasspath/p:lib/alpn/alpn-boot-7.1.3.v20150130.jar

View File

@ -1,6 +1,3 @@
[version]
9.3
[name]
alpn-boot

View File

@ -1,6 +1,3 @@
[version]
9.3
[name]
alpn-boot

View File

@ -1,6 +1,3 @@
[version]
9.3
[name]
alpn-boot

View File

@ -1,6 +1,3 @@
[version]
9.3
[name]
alpn-boot

View File

@ -1,6 +1,3 @@
[version]
9.3
[name]
alpn-boot

View File

@ -1,6 +1,3 @@
[version]
9.3
[name]
alpn-boot

View File

@ -1,6 +1,3 @@
[version]
9.3
[name]
protonego-boot

View File

@ -1,6 +1,3 @@
[version]
9.3
[name]
protonego-boot

View File

@ -16,9 +16,6 @@
# All versions of alpn-boot can be found at
# http://central.maven.org/maven2/org/mortbay/jetty/alpn/alpn-boot/
[version]
9.3
[name]
alpn
@ -38,15 +35,15 @@ lib/
lib/alpn/
[ini-template]
# Overrides the order protocols are chosen by the server.
# The default order is that specified by the order of the
# modules declared in start.ini.
## Overrides the order protocols are chosen by the server.
## The default order is that specified by the order of the
## modules declared in start.ini.
# jetty.alpn.protocols=h2-16,http/1.1
# Specifies what protocol to use when negotiation fails.
## Specifies what protocol to use when negotiation fails.
# jetty.alpn.defaultProtocol=http/1.1
# ALPN debug logging on System.err
## ALPN debug logging on System.err
# jetty.alpn.debug=false
[license]

View File

@ -2,9 +2,6 @@
# Jetty Annotation Scanning Module
#
[version]
9.3
[depend]
# Annotations needs plus, and jndi features
plus

View File

@ -2,9 +2,6 @@
# Apache JSP Module
#
[version]
9.3
[name]
apache-jsp

View File

@ -2,9 +2,6 @@
# Apache JSTL
#
[version]
9.3
[name]
apache-jstl

View File

@ -1,10 +1,7 @@
#
# CDI / Weld Jetty module
# [EXPERIMENTAL] CDI / Weld Jetty module
#
[version]
9.3
[depend]
deploy
annotations

View File

@ -2,8 +2,5 @@
# Client Feature
#
[version]
9.3
[lib]
lib/jetty-client-${jetty.version}.jar

View File

@ -2,8 +2,5 @@
# Classic Jetty Continuation Support Module
#
[version]
9.3
[lib]
lib/jetty-continuation-${jetty.version}.jar

View File

@ -2,9 +2,6 @@
# Debug module
#
[version]
9.3
[depend]
server

View File

@ -2,9 +2,6 @@
# Deploy Feature
#
[version]
9.3
[depend]
webapp

View File

@ -2,9 +2,6 @@
# Module to add all lib/ext/**.jar files to classpath
#
[version]
9.3
[lib]
lib/ext/**.jar

View File

@ -2,9 +2,6 @@
# FastCGI Module
#
[version]
9.3
[depend]
servlet
client

View File

@ -3,9 +3,6 @@
# Applies GzipHandler to entire server
#
[version]
9.3
[depend]
server

View File

@ -2,9 +2,6 @@
# Hawtio x module
#
[version]
9.3
[depend]
stats
deploy
@ -25,7 +22,7 @@ http://github.com/hawtio/hawtio
http://www.apache.org/licenses/LICENSE-2.0.html
[ini-template]
## Hawt.io configuration
-Dhawtio.authenticationEnabled=false
-Dhawtio.dirname=/dirname
-Dhawtio.config.dir=${jetty.base}/etc/hawtio

View File

@ -2,9 +2,6 @@
# Home and Base Warning
#
[version]
9.3
[xml]
etc/home-base-warning.xml

View File

@ -2,9 +2,6 @@
# Jetty HTTP Connector
#
[version]
9.3
[depend]
server
@ -18,7 +15,7 @@ etc/jetty-http.xml
# jetty.http.host=0.0.0.0
## Connector port to listen on
jetty.http.port=8080
# jetty.http.port=8080
## Connector idle timeout in milliseconds
# jetty.http.idleTimeout=30000

View File

@ -2,9 +2,6 @@
# HTTP2 Support Module
#
[version]
9.3
[depend]
ssl
alpn

View File

@ -5,9 +5,6 @@
# The resulting connector will accept both HTTP/1 and HTTP/2 connections.
#
[version]
9.3
[depend]
http

View File

@ -2,9 +2,6 @@
# Jetty HTTPS Connector
#
[version]
9.3
[depend]
ssl

View File

@ -2,14 +2,10 @@
# Jetty Infinispan module
#
[version]
9.3
[depend]
annotations
webapp
[files]
maven://org.infinispan/infinispan-core/7.1.1.Final|lib/infinispan/infinispan-core-7.1.1.Final.jar
maven://org.infinispan/infinispan-commons/7.1.1.Final|lib/infinispan/infinispan-commons-7.1.1.Final.jar
@ -21,7 +17,6 @@ maven://org.jboss.logging/jboss-logging/3.1.2.GA|lib/infinispan/jboss-logging-3.
lib/jetty-infinispan-${jetty.version}.jar
lib/infinispan/*.jar
[xml]
etc/jetty-infinispan.xml
@ -34,5 +29,5 @@ http://www.apache.org/licenses/LICENSE-2.0.html
## Infinispan Session config
## Unique identifier for this node in the cluster
jetty.infinispanSession.workerName=node1
# jetty.infinispanSession.workerName=node1

View File

@ -2,9 +2,6 @@
# IPAccess module
#
[version]
9.3
[depend]
server

View File

@ -2,9 +2,6 @@
# JAAS Module
#
[version]
9.3
[depend]
server

View File

@ -2,9 +2,6 @@
# JAMon Jetty module
#
[version]
9.3
[depend]
stats
deploy
@ -28,6 +25,7 @@ http://jamonapi.sourceforge.net
http://jamonapi.sourceforge.net/JAMonLicense.html
[ini-template]
## Jamon Configuration
# jamon.summaryLabels=demo
jamon.summaryLabels=default, request.getStatus().contextpath.value.ms
#jamon.summaryLabels=demo

View File

@ -2,9 +2,6 @@
# Jetty JASPI Module
#
[version]
9.3
[depend]
security

View File

@ -2,9 +2,6 @@
# Jetty JDBC Session module
#
[version]
9.3
[depend]
annotations
webapp
@ -17,14 +14,14 @@ etc/jetty-jdbc-sessions.xml
## JDBC Session config
## Unique identifier for this node in the cluster
jetty.jdbcSession.workerName=node1
# jetty.jdbcSession.workerName=node1
## The interval in seconds between sweeps of the scavenger
jetty.jdbcSession.scavenge=600
# jetty.jdbcSession.scavenge=600
##Uncomment either the datasource name or driverClass and connectionURL
#jetty.jdbcSession.datasource=sessions
#jetty.jdbcSession.driverClass=changeme
#jetty.jdbcSession.connectionURL=changeme
## Uncomment either the datasource name or driverClass and connectionURL
# jetty.jdbcSession.datasource=sessions
# jetty.jdbcSession.driverClass=changeme
# jetty.jdbcSession.connectionURL=changeme

View File

@ -2,9 +2,6 @@
# JaMON Jetty module
#
[version]
9.3
[depend]
stats
jmx
@ -39,6 +36,6 @@ https://code.google.com/p/jminix/
http://www.apache.org/licenses/LICENSE-2.0
[ini-template]
# Jminix Configuration
## Jminix Configuration
jminix.port=8088

View File

@ -2,9 +2,6 @@
# JMX Remote Module
#
[version]
9.3
[depend]
jmx

View File

@ -2,9 +2,6 @@
# JMX Module
#
[version]
9.3
[depend]
server

View File

@ -2,9 +2,6 @@
# JNDI Support
#
[version]
9.3
[depend]
server

View File

@ -2,9 +2,6 @@
# Jolokia Jetty module
#
[version]
9.3
[depend]
stats
deploy

View File

@ -2,9 +2,6 @@
# Jetty JSP Module
#
[version]
9.3
[depend]
servlet
annotations

View File

@ -2,9 +2,6 @@
# Jetty JSTL Module
#
[version]
9.3
[depend]
jsp
apache-jstl

View File

@ -1,6 +1,3 @@
[version]
9.3
[ini-template]
## JVM Configuration
## If JVM args are include in an ini file then --exec is needed

View File

@ -2,9 +2,6 @@
# Jetty std err/out logging
#
[version]
9.3
[xml]
etc/jetty-logging.xml
@ -17,13 +14,13 @@ resources/
[ini-template]
## Logging Configuration
# Configure jetty logging for default internal behavior STDERR output
## Configure jetty logging for default internal behavior STDERR output
# -Dorg.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.StdErrLog
# Configure jetty logging for slf4j
## Configure jetty logging for slf4j
# -Dorg.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.Slf4jLog
# Configure jetty logging for java.util.logging
## Configure jetty logging for java.util.logging
# -Dorg.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.JavaUtilLog
## Logging directory (relative to $jetty.base)

View File

@ -2,9 +2,6 @@
# Low Resources module
#
[version]
9.3
[depend]
server

View File

@ -2,9 +2,6 @@
# Jetty Monitor module
#
[version]
9.3
[depend]
server
client

View File

@ -2,9 +2,6 @@
# Jetty NoSql module
#
[version]
9.3
[depend]
webapp
@ -27,9 +24,8 @@ http://www.apache.org/licenses/LICENSE-2.0.html
## MongoDB SessionIdManager config
## Unique identifier for this node in the cluster
jetty.nosqlSession.workerName=node1
# jetty.nosqlSession.workerName=node1
## Interval in seconds between scavenging expired sessions
jetty.nosqlSession.scavenge=1800
# jetty.nosqlSession.scavenge=1800

View File

@ -2,9 +2,6 @@
# Jetty Plus module
#
[version]
9.3
[depend]
server
security

View File

@ -2,9 +2,6 @@
# Jetty Proxy module
#
[version]
9.3
[depend]
servlet
client

View File

@ -2,14 +2,10 @@
# Jetty Quickstart module
#
[version]
9.3
[depend]
server
plus
annotations
[lib]
lib/jetty-quickstart-${jetty.version}.jar

View File

@ -2,9 +2,6 @@
# Request Log module
#
[version]
9.3
[depend]
server
@ -21,19 +18,19 @@ logs/
## File path
# jetty.requestlog.filePath=${jetty.requestlog.dir}/yyyy_mm_dd.request.log
# Date format for rollovered files (uses SimpleDateFormat syntax)
## Date format for rollovered files (uses SimpleDateFormat syntax)
# jetty.requestlog.filenameDateFormat=yyyy_MM_dd
# How many days to retain old log files
## How many days to retain old log files
# jetty.requestlog.retainDays=90
## Whether to append to existing file
# jetty.requestlog.append=true
# Whether to use the extended log output
## Whether to use the extended log output
# jetty.requestlog.extended=true
# Whether to log http cookie information
## Whether to log http cookie information
# jetty.requestlog.cookies=true
## Timezone of the log entries

View File

@ -2,9 +2,6 @@
# Module to add resources directory to classpath
#
[version]
9.3
[lib]
resources/

View File

@ -1,8 +1,6 @@
#
# Jetty Rewrite module
#
[version]
9.3
[depend]
server

View File

@ -2,9 +2,6 @@
# Jetty Security Module
#
[version]
9.3
[depend]
server

View File

@ -2,9 +2,6 @@
# Base Server Module
#
[version]
9.3
[optional]
jvm
ext

View File

@ -2,9 +2,6 @@
# Jetty Servlet Module
#
[version]
9.3
[depend]
server

View File

@ -2,8 +2,6 @@
# Jetty Servlets Module
#
[version]
9.3
[depend]
servlet

View File

@ -2,9 +2,6 @@
# Set UID Feature
#
[version]
9.3
[depend]
server

View File

@ -1,8 +1,6 @@
#
# Spring
#
[version]
9.3
[name]
spring

View File

@ -1,8 +1,6 @@
#
# SSL Keystore module
#
[version]
9.3
[name]
ssl

View File

@ -2,9 +2,6 @@
# Stats module
#
[version]
9.3
[depend]
server

View File

@ -2,9 +2,6 @@
# WebApp Support Module
#
[version]
9.3
[depend]
servlet
security

View File

@ -2,9 +2,6 @@
# WebSocket Module
#
[version]
9.3
[depend]
# javax.websocket needs annotations
annotations

View File

@ -25,7 +25,7 @@ LIB|${jetty.home}/lib/http2/http2-server-9.3.jar
# The Properties we expect (order is irrelevant)
# (this is the property we actually set in jetty.base)
PROP|jetty.http.port=9090
PROP|java.version=1.7.0_60
PROP|java.version=1.8.0_31
PROP|jetty.sslContext.keyStorePath=etc/keystore
PROP|jetty.sslContext.keyStorePassword=friendly
PROP|jetty.sslContext.keyManagerPassword=icecream
@ -33,11 +33,11 @@ PROP|jetty.sslContext.trustStorePath=etc/keystore
PROP|jetty.sslContext.trustStorePassword=sundae
# The Downloads
DOWNLOAD|maven://org.mortbay.jetty.alpn/alpn-boot/7.1.0.v20141016|lib/alpn/alpn-boot-7.1.0.v20141016.jar
DOWNLOAD|maven://org.mortbay.jetty.alpn/alpn-boot/8.1.3.v20150130|lib/alpn/alpn-boot-8.1.3.v20150130.jar
DOWNLOAD|http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/plain/jetty-server/src/test/config/etc/keystore?id=master|etc/keystore
# The Bootlib
BOOTLIB|-Xbootclasspath/p:lib/alpn/alpn-boot-7.1.0.v20141016.jar
BOOTLIB|-Xbootclasspath/p:lib/alpn/alpn-boot-8.1.3.v20150130.jar
# The Files
FILE|lib/

View File

@ -2,6 +2,6 @@
# Old Module (backward compat test with 9.2 modules)
#
[ini-template]
[defaults]
from-module=old