File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
exist-core/src/main/java/org/exist/jetty Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 63
63
64
64
import static org .exist .util .ThreadUtils .newGlobalThread ;
65
65
import static se .softhouse .jargo .Arguments .helpArgument ;
66
+ import static se .softhouse .jargo .Arguments .stringArgument ;
66
67
67
68
/**
68
69
* 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 {
88
89
private final static int STATUS_STOPPED = 3 ;
89
90
90
91
/* 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 ();
91
98
private static final Argument <?> helpArg = helpArgument ("-h" , "--help" );
92
99
93
100
@ GuardedBy ("this" ) private int status = STATUS_STOPPED ;
@@ -102,7 +109,8 @@ public static void main(final String[] args) {
102
109
CompatibleJavaVersionCheck .checkForCompatibleJavaVersion ();
103
110
104
111
CommandLineParser
105
- .withArguments (helpArg )
112
+ .withArguments (jettyConfigFilePath , existConfigFilePath )
113
+ .andArguments (helpArg )
106
114
.programName ("startup" + (OSUtil .isWindows () ? ".bat" : ".sh" ))
107
115
.parse (args );
108
116
You can’t perform that action at this time.
0 commit comments