added onlyRunWeb launch argument
This commit is contained in:
parent
e7fb459e1b
commit
a8e1998b85
1 changed files with 10 additions and 0 deletions
|
@ -17,6 +17,7 @@ public class Main {
|
|||
public static boolean UPLOAD_MEMBER_PHOTOS;
|
||||
public static boolean FORCE_UPLOAD_MEMBERS;
|
||||
public static boolean FORCE_UPLOAD_SPEECHES;
|
||||
public static boolean ONLY_RUN_WEB;
|
||||
private static final FileObjectFactory xmlFactory = FileObjectFactory.getFactory();
|
||||
private static final MongoObjectFactory mongoFactory = MongoObjectFactory.getFactory();
|
||||
|
||||
|
@ -24,6 +25,7 @@ public class Main {
|
|||
UPLOAD_MEMBER_PHOTOS = Arrays.asList(args).contains("uploadMemberPhotos");
|
||||
FORCE_UPLOAD_MEMBERS = Arrays.asList(args).contains("forceUploadMembers");
|
||||
FORCE_UPLOAD_SPEECHES = Arrays.asList(args).contains("forceUploadSpeeches");
|
||||
ONLY_RUN_WEB = Arrays.asList(args).contains("onlyRunWeb");
|
||||
|
||||
System.out.println("Starting Multimodal Parliament Explorer...");
|
||||
System.out.println("--------------------------");
|
||||
|
@ -31,8 +33,16 @@ public class Main {
|
|||
System.out.println(" - Upload the Member Photos to the DB: " + UPLOAD_MEMBER_PHOTOS);
|
||||
System.out.println(" - Force Upload Members: " + FORCE_UPLOAD_MEMBERS);
|
||||
System.out.println(" - Force Upload Speeches: " + FORCE_UPLOAD_SPEECHES);
|
||||
System.out.println(" - Only Run Web: " + ONLY_RUN_WEB);
|
||||
System.out.println("--------------------------");
|
||||
|
||||
if (ONLY_RUN_WEB) {
|
||||
Logger.info("Starting Web Service...");
|
||||
RESTHandler restHandler = new RESTHandler();
|
||||
restHandler.startJavalin();
|
||||
return;
|
||||
}
|
||||
|
||||
//TEST
|
||||
MongoDBHandler mongoDBHandler = new MongoDBHandler();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue