File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
mockserver-netty/src/main/java/org/mockserver/cli Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 19
19
* @author jamesdbloom
20
20
*/
21
21
public class Main {
22
- public static final String SERVER_PORT_KEY = "serverPort" ;
23
- public static final String PROXY_PORT_KEY = "proxyPort" ;
24
- public static final String PROXY_REMOTE_PORT_KEY = "proxyRemotePort" ;
25
- public static final String PROXY_REMOTE_HOST_KEY = "proxyRemoteHost" ;
26
- public static final String USAGE = "" +
22
+ static {
23
+ if (System .getProperty ("logback.configurationFile" ) == null ) {
24
+ System .setProperty ("logback.configurationFile" , "example_logback.xml" );
25
+ System .setProperty ("mockserver.logLevel" , "WARN" );
26
+ }
27
+ }
28
+
29
+ private static final String SERVER_PORT_KEY = "serverPort" ;
30
+ private static final String PROXY_PORT_KEY = "proxyPort" ;
31
+ private static final String PROXY_REMOTE_PORT_KEY = "proxyRemotePort" ;
32
+ private static final String PROXY_REMOTE_HOST_KEY = "proxyRemoteHost" ;
33
+ static final String USAGE = "" +
27
34
" java -jar <path to mockserver-jetty-jar-with-dependencies.jar> [-serverPort <port>] [-proxyPort <port>] [-proxyRemotePort <port>] [-proxyRemoteHost <hostname>]" + NEW_LINE +
28
35
" " + NEW_LINE +
29
36
" valid options are: " + NEW_LINE +
You can’t perform that action at this time.
0 commit comments