Commit 00122a70 authored by Christian Meyer's avatar Christian Meyer
Browse files falls back on ZmtGuiState if there is no GUI class

build.gradle: changed zmt-core dependency to 0.21
parent a711cb1f
......@@ -24,7 +24,7 @@ description = "Library for launching ZMT simulations"
dependencies {
compile group: 'args4j', name: 'args4j', version: '2.+'
compile 'de.zmt:zmt-core:0.17.+'
compile 'de.zmt:zmt-core:0.21.+'
// configuration needed when converted to project dependency
testCompile group: 'de.zmt', name: 'zmt-core', version: '0.+', classifier: 'test', configuration: 'test'
......@@ -255,11 +255,11 @@ public class Launcher {
protected void process(LauncherArgs args, ZmtSimState simState, Iterator<Path> pathIterator) {
Class<? extends ZmtGUIState> guiStateClass;
Class<? extends ZmtGUIState> guiStateClass = ZmtGUIState.class;
try {
guiStateClass = context.classLocator.findGuiStateClass(args.getSimName());
} catch (ClassNotFoundException e) {
throw new ProcessFailedException(e);
logger.log(Level.INFO, "GUI state class not found: " + e.getMessage() + ". Using default.");
final ZmtGUIState guiState = createGuiState(guiStateClass, simState);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment