2017-04-11 17:01:34 +03:00
|
|
|
apply plugin: 'groovy'
|
2017-04-13 17:06:41 +03:00
|
|
|
apply plugin: 'application'
|
2015-12-18 16:20:47 +03:00
|
|
|
|
2017-04-11 17:01:34 +03:00
|
|
|
//if (!hasProperty('mainClass')) {
|
|
|
|
// ext.mainClass = 'inr.numass.LaunchGrindShell'
|
|
|
|
//}
|
2017-04-13 17:06:41 +03:00
|
|
|
mainClassName = 'inr.numass.LaunchGrindShell'
|
2015-12-18 16:20:47 +03:00
|
|
|
|
2016-09-15 22:09:21 +03:00
|
|
|
description = "Main numass project"
|
2015-12-18 16:20:47 +03:00
|
|
|
|
|
|
|
dependencies {
|
2016-09-04 19:40:36 +03:00
|
|
|
compile group: 'commons-cli', name: 'commons-cli', version: '1.+'
|
|
|
|
compile group: 'commons-io', name: 'commons-io', version: '2.+'
|
2017-04-15 22:15:53 +03:00
|
|
|
compile project(':numass-core')
|
2017-04-05 22:07:43 +03:00
|
|
|
compile "hep.dataforge:dataforge-minuit" //project(':dataforge-stat:dataforge-minuit')
|
|
|
|
compile "hep.dataforge:grind-terminal" //project(':dataforge-grind:grind-terminal')
|
2015-12-18 16:20:47 +03:00
|
|
|
}
|
|
|
|
|
2017-04-11 17:01:34 +03:00
|
|
|
//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"
|
|
|
|
//}
|
2016-08-17 16:43:46 +03:00
|
|
|
|
2016-08-29 16:38:11 +03:00
|
|
|
task repl(dependsOn: classes, type: JavaExec) {
|
2017-04-11 17:01:34 +03:00
|
|
|
group "numass"
|
2016-08-29 16:38:11 +03:00
|
|
|
main 'inr.numass.LaunchGrindShell'
|
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
|
|
description "Start Grind repl"
|
|
|
|
standardInput = System.in
|
|
|
|
standardOutput = System.out
|
2017-04-11 17:01:34 +03:00
|
|
|
if (project.hasProperty("cmd")) {
|
|
|
|
args = cmd.split().toList()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-04-18 11:28:25 +03:00
|
|
|
task grindTask(dependsOn: classes, type: JavaExec){
|
|
|
|
group "numass"
|
|
|
|
main 'inr.numass.RunTask'
|
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
|
|
description "Run a task in a numass workspace"
|
|
|
|
standardInput = System.in
|
|
|
|
standardOutput = System.out
|
|
|
|
}
|
|
|
|
|
2017-04-11 17:01:34 +03:00
|
|
|
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) {
|
2016-08-29 16:38:11 +03:00
|
|
|
group "numass"
|
2017-07-31 22:12:57 +03:00
|
|
|
main 'inr.numass.scripts.underflow.Underflow'
|
2017-04-11 17:01:34 +03:00
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
2015-12-18 16:20:47 +03:00
|
|
|
}
|