49 lines
1.5 KiB
Groovy
49 lines
1.5 KiB
Groovy
apply plugin: 'groovy'
|
|
|
|
//if (!hasProperty('mainClass')) {
|
|
// ext.mainClass = 'inr.numass.LaunchGrindShell'
|
|
//}
|
|
//mainClassName = mainClass
|
|
|
|
description = "Main numass project"
|
|
|
|
dependencies {
|
|
compile group: 'commons-cli', name: 'commons-cli', version: '1.+'
|
|
compile group: 'commons-io', name: 'commons-io', version: '2.+'
|
|
compile project(':numass-storage')
|
|
compile "hep.dataforge:dataforge-minuit" //project(':dataforge-stat:dataforge-minuit')
|
|
compile "hep.dataforge:grind-terminal" //project(':dataforge-grind:grind-terminal')
|
|
}
|
|
|
|
//task listActions(dependsOn: classes, type: JavaExec) {
|
|
// main "inr.numass.LaunchGrindShell"
|
|
// args "-lc"
|
|
// classpath = sourceSets.main.runtimeClasspath
|
|
// description "print a list of available actions as via -lc command line parameter"
|
|
// group "numass"
|
|
//}
|
|
|
|
task repl(dependsOn: classes, type: JavaExec) {
|
|
group "numass"
|
|
main 'inr.numass.LaunchGrindShell'
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
description "Start Grind repl"
|
|
standardInput = System.in
|
|
standardOutput = System.out
|
|
if (project.hasProperty("cmd")) {
|
|
args = cmd.split().toList()
|
|
}
|
|
}
|
|
|
|
task simulate(dependsOn: classes, type: JavaExec) {
|
|
group "numass"
|
|
main 'inr.numass.scripts.Simulate'
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
description "Simulate spectrum"
|
|
}
|
|
|
|
task underflow(dependsOn: classes, type: JavaExec) {
|
|
group "numass"
|
|
main 'inr.numass.scripts.Underflow'
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
} |