Skip to content

Commit a09c651

Browse files
committed
[bugfix] Add missing unamed arguments for startup.sh
1 parent bf87264 commit a09c651

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

exist-core/src/main/java/org/exist/jetty/JettyStart.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363

6464
import static org.exist.util.ThreadUtils.newGlobalThread;
6565
import static se.softhouse.jargo.Arguments.helpArgument;
66+
import static se.softhouse.jargo.Arguments.stringArgument;
6667

6768
/**
6869
* This class provides a main method to start Jetty with eXist. It registers shutdown
@@ -88,6 +89,12 @@ public class JettyStart extends Observable implements LifeCycle.Listener {
8889
private final static int STATUS_STOPPED = 3;
8990

9091
/* general arguments */
92+
private static final Argument<String> jettyConfigFilePath = stringArgument()
93+
.description("Path to Jetty Config File")
94+
.build();
95+
private static final Argument<String> existConfigFilePath = stringArgument()
96+
.description("Path to eXist-db Config File")
97+
.build();
9198
private static final Argument<?> helpArg = helpArgument("-h", "--help");
9299

93100
@GuardedBy("this") private int status = STATUS_STOPPED;
@@ -102,7 +109,8 @@ public static void main(final String[] args) {
102109
CompatibleJavaVersionCheck.checkForCompatibleJavaVersion();
103110

104111
CommandLineParser
105-
.withArguments(helpArg)
112+
.withArguments(jettyConfigFilePath, existConfigFilePath)
113+
.andArguments(helpArg)
106114
.programName("startup" + (OSUtil.isWindows() ? ".bat" : ".sh"))
107115
.parse(args);
108116

0 commit comments

Comments
 (0)