refined start.jar mechanism to align with updated documentation
This commit is contained in:
parent
c6355854ab
commit
ace43502ad
|
@ -478,7 +478,8 @@
|
||||||
<argument>--debug</argument>
|
<argument>--debug</argument>
|
||||||
<argument>jetty.home=${assembly-directory}</argument>
|
<argument>jetty.home=${assembly-directory}</argument>
|
||||||
<argument>jetty.base=${assembly-directory}</argument>
|
<argument>jetty.base=${assembly-directory}</argument>
|
||||||
<argument>--module-start-ini=server,deploy,http,websocket,jsp,ext,resources</argument>
|
<argument>--module-start-ini=server,deploy,websocket,jsp,ext,resources</argument>
|
||||||
|
<argument>--module-ini=http</argument>
|
||||||
</arguments>
|
</arguments>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
|
@ -7,7 +7,7 @@ jetty-setuid-java-1.0.1.jar
|
||||||
[xml]
|
[xml]
|
||||||
etc/jetty-setuid.xml
|
etc/jetty-setuid.xml
|
||||||
|
|
||||||
[ini]
|
[ini-template]
|
||||||
# jetty.startServerAsPrivileged=false
|
# jetty.startServerAsPrivileged=false
|
||||||
# jetty.username=jetty
|
# jetty.username=jetty
|
||||||
# jetty.groupname=jetty
|
# jetty.groupname=jetty
|
||||||
|
|
|
@ -13,5 +13,5 @@ lib/jetty-jaas-${jetty.version}.jar
|
||||||
# JAAS configuration
|
# JAAS configuration
|
||||||
etc/jetty-jaas.xml
|
etc/jetty-jaas.xml
|
||||||
|
|
||||||
[ini]
|
[ini-template]
|
||||||
jaas.login.conf=etc/login.conf
|
jaas.login.conf=etc/login.conf
|
|
@ -10,7 +10,7 @@ lib/jetty-jmx-${jetty.version}.jar
|
||||||
# JMX configuration
|
# JMX configuration
|
||||||
etc/jetty-jmx.xml
|
etc/jetty-jmx.xml
|
||||||
|
|
||||||
[ini]
|
[ini-template]
|
||||||
# jetty.jmxrmihost=localhost
|
# jetty.jmxrmihost=localhost
|
||||||
# jetty.jmxrmiport=1099
|
# jetty.jmxrmiport=1099
|
||||||
# -Dcom.sun.management.jmxremote
|
# -Dcom.sun.management.jmxremote
|
|
@ -8,6 +8,6 @@ server
|
||||||
[xml]
|
[xml]
|
||||||
etc/jetty-http.xml
|
etc/jetty-http.xml
|
||||||
|
|
||||||
[ini]
|
[ini-template]
|
||||||
jetty.port=8080
|
jetty.port=8080
|
||||||
http.timeout=30000
|
http.timeout=30000
|
|
@ -8,6 +8,6 @@ ssl
|
||||||
[xml]
|
[xml]
|
||||||
etc/jetty-https.xml
|
etc/jetty-https.xml
|
||||||
|
|
||||||
[ini]
|
[ini-template]
|
||||||
https.port=8443
|
https.port=8443
|
||||||
https.timeout=30000
|
https.timeout=30000
|
|
@ -1,4 +1,4 @@
|
||||||
[ini]
|
[ini-template]
|
||||||
#===========================================================
|
#===========================================================
|
||||||
# Configure JVM arguments.
|
# Configure JVM arguments.
|
||||||
# If JVM args are include in an ini file then --exec is needed
|
# If JVM args are include in an ini file then --exec is needed
|
||||||
|
|
|
@ -8,7 +8,7 @@ server
|
||||||
[xml]
|
[xml]
|
||||||
etc/jetty-lowresources.xml
|
etc/jetty-lowresources.xml
|
||||||
|
|
||||||
[ini]
|
[ini-template]
|
||||||
# lowresources.period=1050
|
# lowresources.period=1050
|
||||||
# lowresources.lowResourcesIdleTimeout=200
|
# lowresources.lowResourcesIdleTimeout=200
|
||||||
# lowresources.monitorThreads=true
|
# lowresources.monitorThreads=true
|
||||||
|
|
|
@ -11,7 +11,7 @@ etc/jetty-requestlog.xml
|
||||||
[files]
|
[files]
|
||||||
logs/
|
logs/
|
||||||
|
|
||||||
[ini]
|
[ini-template]
|
||||||
# requestlog.retain=90
|
# requestlog.retain=90
|
||||||
# requestlog.append=true
|
# requestlog.append=true
|
||||||
# requestlog.extended=true
|
# requestlog.extended=true
|
||||||
|
|
|
@ -22,7 +22,7 @@ lib/jetty-io-${jetty.version}.jar
|
||||||
# Annotations needs annotations configuration
|
# Annotations needs annotations configuration
|
||||||
etc/jetty.xml
|
etc/jetty.xml
|
||||||
|
|
||||||
[ini]
|
[ini-template]
|
||||||
threads.min=10
|
threads.min=10
|
||||||
threads.max=200
|
threads.max=200
|
||||||
threads.timeout=60000
|
threads.timeout=60000
|
||||||
|
|
|
@ -10,10 +10,17 @@ etc/jetty-ssl.xml
|
||||||
[files]
|
[files]
|
||||||
http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/plain/jetty-server/src/main/config/etc/keystore:etc/keystore
|
http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/plain/jetty-server/src/main/config/etc/keystore:etc/keystore
|
||||||
|
|
||||||
[ini]
|
[ini-template]
|
||||||
|
# define the port to use for secure redirection
|
||||||
|
jetty.secure.port=8443
|
||||||
|
|
||||||
|
# Setup a demonstration keystore and truststore
|
||||||
jetty.keystore=etc/keystore
|
jetty.keystore=etc/keystore
|
||||||
|
jetty.truststore=etc/keystore
|
||||||
|
|
||||||
|
# Set the demonstration passwords.
|
||||||
|
# Note that OBF passwords are not secure, just protected from casual observation
|
||||||
jetty.keystore.password=OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4
|
jetty.keystore.password=OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4
|
||||||
jetty.keymanager.password=OBF:1u2u1wml1z7s1z7a1wnl1u2g
|
jetty.keymanager.password=OBF:1u2u1wml1z7s1z7a1wnl1u2g
|
||||||
jetty.truststore=etc/keystore
|
|
||||||
jetty.truststore.password=OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4
|
jetty.truststore.password=OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4
|
||||||
jetty.secure.port=8443
|
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
[files]
|
[files]
|
||||||
http://repo1.maven.org/maven2/org/mortbay/jetty/npn/npn-boot/1.1.5.v20130313/npn-boot-1.1.5.v20130313.jar:lib/npn/npn-boot-1.1.5.v20130313.jar
|
http://repo1.maven.org/maven2/org/mortbay/jetty/npn/npn-boot/1.1.5.v20130313/npn-boot-1.1.5.v20130313.jar:lib/npn/npn-boot-1.1.5.v20130313.jar
|
||||||
|
|
||||||
[ini]
|
[ini-template]
|
||||||
-Xbootclasspath/p:lib/npn/npn-boot-1.1.5.v20130313.jar
|
-Xbootclasspath/p:lib/npn/npn-boot-1.1.5.v20130313.jar
|
||||||
--exec
|
--exec
|
||||||
|
|
|
@ -9,7 +9,7 @@ lib/spdy/*.jar
|
||||||
etc/jetty-ssl.xml
|
etc/jetty-ssl.xml
|
||||||
etc/jetty-spdy.xml
|
etc/jetty-spdy.xml
|
||||||
|
|
||||||
[ini]
|
[ini-template]
|
||||||
spdy.port=8443
|
spdy.port=8443
|
||||||
spdy.timeout=30000
|
spdy.timeout=30000
|
||||||
#spdy.initialWindowSize=65536
|
#spdy.initialWindowSize=65536
|
|
@ -177,7 +177,7 @@ public class Main
|
||||||
{
|
{
|
||||||
File file = baseHome.getBaseFile(arg.location);
|
File file = baseHome.getBaseFile(arg.location);
|
||||||
|
|
||||||
StartLog.debug("Download to %s %s",file.getAbsolutePath(),(file.exists()?"[Exists!]":""));
|
StartLog.debug("Module file %s %s",file.getAbsolutePath(),(file.exists()?"[Exists!]":""));
|
||||||
if (file.exists())
|
if (file.exists())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -274,7 +274,7 @@ public class Module
|
||||||
// blank lines and comments are valid for initialize section
|
// blank lines and comments are valid for initialize section
|
||||||
if (line.length() == 0 || line.startsWith("#"))
|
if (line.length() == 0 || line.startsWith("#"))
|
||||||
{
|
{
|
||||||
if ("INI".equals(sectionType))
|
if ("INI-TEMPLATE".equals(sectionType))
|
||||||
{
|
{
|
||||||
initialise.add(line);
|
initialise.add(line);
|
||||||
}
|
}
|
||||||
|
@ -298,7 +298,7 @@ public class Module
|
||||||
case "FILES":
|
case "FILES":
|
||||||
files.add(line);
|
files.add(line);
|
||||||
break;
|
break;
|
||||||
case "INI":
|
case "INI-TEMPLATE":
|
||||||
initialise.add(line);
|
initialise.add(line);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,6 +78,7 @@ public class StartArgs
|
||||||
private List<String> jvmArgs = new ArrayList<>();
|
private List<String> jvmArgs = new ArrayList<>();
|
||||||
private List<String> moduleIni = new ArrayList<>();
|
private List<String> moduleIni = new ArrayList<>();
|
||||||
private List<String> moduleStartIni = new ArrayList<>();
|
private List<String> moduleStartIni = new ArrayList<>();
|
||||||
|
private Map<String,String> propertySource = new HashMap<>();
|
||||||
private String moduleGraphFilename;
|
private String moduleGraphFilename;
|
||||||
|
|
||||||
private Modules allModules;
|
private Modules allModules;
|
||||||
|
@ -767,6 +768,13 @@ public class StartArgs
|
||||||
{
|
{
|
||||||
String key = arg.substring(0,idx);
|
String key = arg.substring(0,idx);
|
||||||
String value = arg.substring(idx + 1);
|
String value = arg.substring(idx + 1);
|
||||||
|
|
||||||
|
if (source!=CMD_LINE_SOURCE)
|
||||||
|
{
|
||||||
|
if (propertySource.containsKey(key))
|
||||||
|
throw new UsageException(ERR_BAD_ARG,"Property %s in %s already set in %s",key,source,propertySource.get(key));
|
||||||
|
propertySource.put(key,source);
|
||||||
|
}
|
||||||
properties.setProperty(key,value);
|
properties.setProperty(key,value);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
[files]
|
[files]
|
||||||
http://repo1.maven.org/maven2/org/mortbay/jetty/npn/npn-boot/1.1.5.v20130313/npn-boot-1.1.5.v20130313.jar:lib/npn/npn-boot-1.1.5.v20130313.jar
|
http://repo1.maven.org/maven2/org/mortbay/jetty/npn/npn-boot/1.1.5.v20130313/npn-boot-1.1.5.v20130313.jar:lib/npn/npn-boot-1.1.5.v20130313.jar
|
||||||
|
|
||||||
[ini]
|
[ini-template]
|
||||||
-Xbootclasspath/p:lib/npn/npn-boot-1.1.5.v20130313.jar
|
-Xbootclasspath/p:lib/npn/npn-boot-1.1.5.v20130313.jar
|
||||||
|
|
|
@ -6,6 +6,6 @@
|
||||||
|
|
||||||
etc/jetty-logging.xml
|
etc/jetty-logging.xml
|
||||||
|
|
||||||
[ini]
|
[ini-template]
|
||||||
# Number of days to retain logs
|
# Number of days to retain logs
|
||||||
# jetty.log.retain=90
|
# jetty.log.retain=90
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
#
|
||||||
|
# HTTP connector
|
||||||
|
#
|
||||||
|
--module=http
|
||||||
|
jetty.port=8080
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
#
|
#
|
||||||
# Example of providing a demo configuration, using a ${jetty.base}
|
# Example of providing a demo configuration, using a ${jetty.base}
|
||||||
#
|
#
|
||||||
|
# Additional ini files are in demo-base/start.d
|
||||||
# We want to serve content over http
|
#
|
||||||
--module=http
|
|
||||||
jetty.port=8080
|
|
||||||
|
|
||||||
# Have webapps be deployed normally from webapps directory
|
# Have webapps be deployed normally from webapps directory
|
||||||
--module=deploy
|
--module=deploy
|
||||||
|
|
Loading…
Reference in New Issue