Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ecomod
zmt-launcher
Commits
00122a70
Commit
00122a70
authored
Nov 14, 2016
by
Christian Meyer
Browse files
Launcher.java: falls back on ZmtGuiState if there is no GUI class
build.gradle: changed zmt-core dependency to 0.21
parent
a711cb1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
build.gradle
View file @
00122a70
...
...
@@ -24,7 +24,7 @@ description = "Library for launching ZMT simulations"
dependencies
{
compile
group:
'args4j'
,
name:
'args4j'
,
version:
'2.+'
compile
'de.zmt:zmt-core:0.1
7
.+'
compile
'de.zmt:zmt-core:0.
2
1.+'
// configuration needed when converted to project dependency
testCompile
group:
'de.zmt'
,
name:
'zmt-core'
,
version:
'0.+'
,
classifier:
'test'
,
configuration:
'test'
...
...
src/main/java/de/zmt/launcher/Launcher.java
View file @
00122a70
...
...
@@ -255,11 +255,11 @@ public class Launcher {
protected
void
process
(
LauncherArgs
args
,
ZmtSimState
simState
,
Iterator
<
Path
>
pathIterator
)
{
simState
.
setOutputPath
(
pathIterator
.
next
());
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment