From d08ea56ee13439236d57271c0981f573ab0315f4 Mon Sep 17 00:00:00 2001 From: Pierrik Lassalas Date: Tue, 12 Sep 2017 10:27:23 +0200 Subject: [PATCH] gs-ir: WatchApp deploy OcrEngineHolderVerticle --- .../java/org/genericsystem/ir/app/WatchApp.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/gs-ir/src/main/java/org/genericsystem/ir/app/WatchApp.java b/gs-ir/src/main/java/org/genericsystem/ir/app/WatchApp.java index 7dd5fc669..6fc3f90fe 100644 --- a/gs-ir/src/main/java/org/genericsystem/ir/app/WatchApp.java +++ b/gs-ir/src/main/java/org/genericsystem/ir/app/WatchApp.java @@ -32,7 +32,6 @@ * * @author Pierrik Lassalas */ -@SuppressWarnings("unused") @DependsOnModel({ Role.class, User.class, UserRole.class, Doc.class, RefreshTimestamp.class, DocTimestamp.class, DocFilename.class, DocClass.class, ZoneGeneric.class, ZoneText.class, ZoneTimestamp.class, ImgFilter.class, LevDistance.class, MeanLevenshtein.class, Score.class }) @Children({ HomePage.class, FiltersStatisticsPage.class }) @@ -40,17 +39,17 @@ public class WatchApp extends RootTagImpl { private static final String gsPath = "/gs-cv_model3"; - public static void main(String[] mainArgs) { - ApplicationServer server = ApplicationServer.startSimpleGenericApp(mainArgs, WatchApp.class, gsPath); - Root root = server.getRoots().get(System.getenv("HOME") + "/genericsystem/" + gsPath); - // deployVerticles(root); - } - @Override public void init() { createNewInitializedProperty(PageSwitcher.PAGE, c -> PageSwitcher.HOME_PAGE); } + public static void main(String[] mainArgs) { + ApplicationServer server = ApplicationServer.startSimpleGenericApp(mainArgs, WatchApp.class, gsPath); + Root root = server.getRoots().get(System.getenv("HOME") + "/genericsystem/" + gsPath); + deployVerticles(root); + } + private static void deployVerticles(Root root) { OcrEngineHolderVerticle deployer = new OcrEngineHolderVerticle(root); deployer.doDeploy();