Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Experimenting with JavaExec for running demos.
- Loading branch information
Showing
15 changed files
with
103,068 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
description = 'Mines Java Toolkit Demo' | ||
|
||
dependencies { | ||
compile project(':core') | ||
compile fileTree("$rootDir/libs") // jars provided with the Mines JTK | ||
} | ||
|
||
task run(type: JavaExec) { | ||
enableAssertions = true | ||
classpath = sourceSets.main.runtimeClasspath | ||
main = ( | ||
project.hasProperty("mainClass") ? | ||
mainClass : | ||
'edu.mines.jtkdemo.mosaic.PolesAndZerosDemo' | ||
) | ||
} | ||
|
||
task runJython(type: JavaExec) { | ||
enableAssertions = true | ||
classpath = sourceSets.main.runtimeClasspath | ||
classpath.each { println it } | ||
main = 'org.python.util.jython' | ||
args "src/main/jython/edu/mines/jtk/mosaic/PlotFrameDemo.py" | ||
} |
Oops, something went wrong.