Skip to main content
Sign in
Snippets Groups Projects
Commit b7426b98 authored by René Schöne's avatar René Schöne
Browse files

Split statemachine into base and DrAST.

parent bfa8febc
No related branches found
No related tags found
No related merge requests found
build/
/bin/
logs/
DrAST.cfg
File moved
group 'de.tudresden.inf.st'
version '0.1'
apply plugin: 'java'
apply plugin: 'application'
apply plugin: "idea"
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
implementation project(':statemachine.base')
implementation files('../libs/DrAST-1.2.2.jar')
implementation fileTree(dir: "${System.properties['java.home']}", include: '**/jfxrt.jar')
}
run {
mainClassName = 'de.tudresden.inf.st.statemachine.DrAstRunner'
standardInput = System.in
}
task jarDrAst(type: Jar, dependsOn: ':statemachine.base:jar') {
group = "build"
description = 'create a jar to run the DrAST visual debugger tool'
manifest {
attributes 'Implementation-Title': 'DrAST visual debugger tool for StateMachine',
'Implementation-Version': project.version,
'Main-Class': 'de.tudresden.inf.st.statemachine.DrAstRunner'
}
archivesBaseName = 'drast-statemachine-all'
from { sourceSets.main.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
task runDrAST(type: JavaExec, dependsOn: [jar, ':statemachine.base:jar']) {
group = "application"
description = 'run the DrAST visual debugger tool'
classpath = sourceSets.main.runtimeClasspath
main = 'de.tudresden.inf.st.statemachine.DrAstRunner'
}
sourceSets {
main {
java.srcDir "src/main/java"
}
}
File moved
File moved
......@@ -37,7 +37,7 @@ public class DrAstRunner extends DrASTGUI {
private static void openView() {
guiHasBeenCreated = true;
DrASTSettings.put(DrASTSettings.PREV_JAR, "build/libs/statemachine-0.1.jar");
DrASTSettings.put(DrASTSettings.PREV_JAR, "../statemachine.base/build/libs/statemachine-0.1.jar");
DrASTSettings.put(DrASTSettings.PREV_TAIL_ARGS, "-Dlog4j2.disable.jmx=true");
launch();
con.onApplicationClose();
......@@ -71,7 +71,7 @@ public class DrAstRunner extends DrASTGUI {
mon.setGraphView(graphview);
con.init(mon);
Rectangle2D primaryScreenBounds = Screen.getPrimary().getVisualBounds();
stage.setTitle("DrAST 1.2.2");
stage.setTitle("Statemachine DrAST 1.2.2");
stage.setScene(new Scene(rootView, primaryScreenBounds.getWidth(), primaryScreenBounds.getHeight() - 100.0D));
stage.show();
ScrollPane center = (ScrollPane)rootView.lookup("#graphViewScrollPane");
......
......
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
<Appenders>
<Console name="Console">
<PatternLayout pattern="%highlight{%d{HH:mm:ss.SSS} %-5level} %c{1.} - %msg%n"/>
</Console>
<RollingFile name="RollingFile" fileName="logs/statemachine.log"
filePattern="logs/statemachine-%i.log">
<PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %logger{36} - %msg%n"/>
<Policies>
<OnStartupTriggeringPolicy/>
</Policies>
<DefaultRolloverStrategy max="20"/>
</RollingFile>
</Appenders>
<Loggers>
<Root level="info">
<AppenderRef ref="Console"/>
<AppenderRef ref="RollingFile"/>
</Root>
</Loggers>
</Configuration>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment