Skip to content

Commit

Permalink
automata4j-examples/build.gradle: mainClass setter tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
pavly-gerges committed Aug 15, 2023
1 parent e52f40b commit cfd168a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions automata4j-examples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,20 @@ plugins {
}

application {
mainClass = 'com.avrsandbox.fsa.example.Launcher'
mainClass.set("com.avrsandbox.fsa.example.simple.ndfsa.SerialAdder")
}

/** Runs the [SerialAdder] class only, to use type: └──╼ $./gradlew :automata4j-examples:SerialAdder :automata4j-examples:run */
tasks.register("SerialAdder") {
application.mainClass.set("com.avrsandbox.fsa.example.simple.ndfsa.SerialAdder")
}

/** Runs the [TestDeterministicFiniteState] class only, to use type: └──╼ $./gradlew :automata4j-examples:TestDeterministicFiniteState :automata4j-examples:run */
tasks.register("TestDeterministicFiniteState") {
application.mainClass.set("com.avrsandbox.fsa.example.simple.dfsa.TestDeterministicFiniteState")
}

repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}

Expand Down

0 comments on commit cfd168a

Please sign in to comment.