aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/onap/aai/schema/GenTester.java15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/main/java/org/onap/aai/schema/GenTester.java b/src/main/java/org/onap/aai/schema/GenTester.java
index 55212d8..6443d43 100644
--- a/src/main/java/org/onap/aai/schema/GenTester.java
+++ b/src/main/java/org/onap/aai/schema/GenTester.java
@@ -54,6 +54,18 @@ public class GenTester {
*/
public static void main(String[] args) throws AAIException {
+ try {
+ createSchema(args);
+ } catch (Exception e) {
+ LOGGER.error("Failed to run schema creation", e);
+ System.exit(1);
+ }
+
+ LOGGER.debug("All done, if the program does not exit, please kill it manually.");
+ System.exit(0);
+ }
+
+ private static void createSchema(String[] args) throws AAIException {
JanusGraph graph = null;
System.setProperty("aai.service.name", GenTester.class.getSimpleName());
@@ -180,9 +192,6 @@ public class GenTester {
ErrorLogHelper.logError("AAI_4000", ex.getMessage());
System.exit(1);
}
-
- LOGGER.debug("-- all done, if program does not exit, please kill.");
- System.exit(0);
}
private static void setSchemaInitializedToFalse(JanusGraph graph, Optional<Vertex> schemaInitializedVertex) {