Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2012-07-13 13:46:44 +0000
committerHenrik Rentz-Reichert2012-07-13 13:46:44 +0000
commit220c2ede64aa0bf0c5147fe40077060b3af56bc1 (patch)
treedcaccfb47dfca158bf0c8ae24599a6360bc0d591
parent090060df02e41d8330e612495b7377b058e23a43 (diff)
downloadorg.eclipse.etrice-220c2ede64aa0bf0c5147fe40077060b3af56bc1.tar.gz
org.eclipse.etrice-220c2ede64aa0bf0c5147fe40077060b3af56bc1.tar.xz
org.eclipse.etrice-220c2ede64aa0bf0c5147fe40077060b3af56bc1.zip
[generator.java] -noexit option
-rw-r--r--plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/Main.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/Main.java b/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/Main.java
index 2b0bf5e97..5e2b780e4 100644
--- a/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/Main.java
+++ b/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/Main.java
@@ -28,6 +28,7 @@ import com.google.inject.Inject;
public class Main extends AbstractGenerator {
public static final String OPTION_LIB = "-lib";
+ public static final String OPTION_NOEXIT = "-noexit";
public static final String OPTION_GEN_INST_DIAG = "-genInstDiag";
public static final String OPTION_SAVE_GEN_MODEL = "-saveGenModel";
@@ -41,15 +42,13 @@ public class Main extends AbstractGenerator {
output.println(" -saveGenModel <genmodel path> # if specified the generator model will be saved to this location");
output.println(" -genInstDiag # if specified an instance diagram is created for each subsystem");
output.println(" -lib # if specified all classes are generated and no instances");
+ output.println(" -noexit # if specified the JVM is not exited");
}
public static void main(String[] args) {
- System.out.println("This is the eTrice Java generator");
- /*
int ret = createAndRunGenerator(new GeneratorModule(), args);
if (isTerminateOnError() && ret!=GENERATOR_OK)
System.exit(ret);
- */
}
@Inject
@@ -86,6 +85,9 @@ public class Main extends AbstractGenerator {
else if (args[i].equals(OPTION_LIB)) {
asLibrary = true;
}
+ else if (args[i].equals(OPTION_NOEXIT)) {
+ setTerminateOnError(false);
+ }
else {
uriList.add(args[i]);
}

Back to the top