Skip to content

Commit

Permalink
Experimenting with JavaExec for running demos.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhale committed Dec 3, 2015
1 parent c117fc9 commit e82aadb
Show file tree
Hide file tree
Showing 15 changed files with 103,068 additions and 0 deletions.
24 changes: 24 additions & 0 deletions demo/build.gradle
@@ -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"
}

0 comments on commit e82aadb

Please sign in to comment.