Fixing distribution build + demo-base start port

This commit is contained in:
Joakim Erdfelt 2013-08-29 15:25:13 -07:00
parent a5addbeb5a
commit 7d50302562
3 changed files with 24 additions and 11 deletions

View File

@ -10,7 +10,7 @@
<url>http://www.eclipse.org/jetty</url>
<packaging>pom</packaging>
<properties>
<assembly-directory>target/distribution</assembly-directory>
<assembly-directory>${basedir}/target/distribution</assembly-directory>
<jetty-setuid-version>1.0.1</jetty-setuid-version>
</properties>
<build>
@ -466,18 +466,18 @@
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<phase>process-classes</phase>
<goals>
<goal>exec</goal>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>java</executable>
<workingDirectory>${assembly-directory}</workingDirectory>
<mainClass>org.eclipse.jetty.start.Main</mainClass>
<arguments>
<argument>-jar</argument>
<argument>start.jar</argument>
<argument>--debug</argument>
<argument>jetty.home=${assembly-directory}</argument>
<argument>jetty.base=${assembly-directory}</argument>
<argument>--module-start-ini=server,deploy,http,websocket,jsp,ext,resources</argument>
</arguments>
</configuration>

View File

@ -66,7 +66,7 @@ public class StartArgs
// TODO: might make sense to declare this in modules/base.mod
private static final String SERVER_MAIN = "org.eclipse.jetty.xml.XmlConfiguration";
private List<String> commandLine = new ArrayList<>();
private Set<String> modules = new HashSet<>();
private Map<String, List<String>> sources = new HashMap<>();
@ -579,9 +579,21 @@ public class StartArgs
}
}
public void parse(String arg, String source)
public void parse(final String rawarg, String source)
{
if (arg.trim().startsWith("#"))
if (rawarg == null)
{
return;
}
final String arg = rawarg.trim();
if (arg.length() <= 0)
{
return;
}
if (arg.startsWith("#"))
{
return;
}
@ -751,7 +763,7 @@ public class StartArgs
}
// Anything else is unrecognized
throw new UsageException(ERR_BAD_ARG,"Unrecognized argument: %s in %s",arg,source);
throw new UsageException(ERR_BAD_ARG,"Unrecognized argument: \"%s\" in %s",arg,source);
}
public void parseCommandLine()

View File

@ -4,6 +4,7 @@
# We want to serve content over http
--module=http
jetty.port=8080
# Have webapps be deployed normally from webapps directory
--module=deploy