Skip to content
Snippets Groups Projects
Commit cf66de77 authored by Felix Sidokhine's avatar Felix Sidokhine
Browse files

fixed some stuff

parent 2adc1d15
No related branches found
No related tags found
No related merge requests found
......@@ -88,6 +88,7 @@ public class Server {
break;
case 3:
tomcatLauncher = new TomcatLauncher(Integer.parseInt(args[0]), args[1], args[2]);
break;
default:
log.error("Incorrect number of start arguments provided!");
System.exit(-1);
......
......@@ -57,7 +57,8 @@ public class TomcatLauncher {
public TomcatLauncher(int port, String certificateFile, String keyFile) {
//If running in SSL mode, we need a trusts store in order to let clients authenticate.
//In this case this is a bit of a dirty hack...
//Hack to prevent useless verbose messages.
context.getJarScanner().setJarScanFilter((jarScanType, s) -> false);
log.info(System.getProperty("user.dir") + File.separator + "keystore.jks");
if(Files.exists(Paths.get(System.getProperty("user.dir") + File.separator + "keystore.jks")))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment