2015-12-18 16:20:47 +03:00
|
|
|
apply plugin: 'application'
|
|
|
|
|
|
|
|
if (!hasProperty('mainClass')) {
|
2016-12-21 16:39:28 +03:00
|
|
|
ext.mainClass = 'inr.numass.LaunchGrindShell'
|
2015-12-18 16:20:47 +03:00
|
|
|
}
|
|
|
|
mainClassName = mainClass
|
|
|
|
|
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.+'
|
2016-05-02 18:23:03 +03:00
|
|
|
compile project(':numass-storage')
|
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
|
|
|
}
|
|
|
|
|
|
|
|
task listActions(dependsOn: classes, type: JavaExec) {
|
|
|
|
main mainClass
|
|
|
|
args "-lc"
|
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
|
|
description "print a list of available actions as via -lc command line parameter"
|
2016-09-04 19:40:36 +03:00
|
|
|
group "numass"
|
2016-08-17 16:43:46 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
task workspace(dependsOn: classes, type: JavaExec) {
|
|
|
|
main 'inr.numass.workspace.NumassGrindLauncher'
|
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
2016-08-26 19:21:43 +03:00
|
|
|
args "-c \"D:\\Work\\Numass\\sterile2016\\workspace.groovy\" numass.fitsum sum_down".split()
|
2016-08-17 16:43:46 +03:00
|
|
|
description "Run workspace task"
|
|
|
|
group "numass"
|
2016-08-29 16:38:11 +03:00
|
|
|
}
|
2016-08-17 16:43:46 +03:00
|
|
|
|
2016-08-29 16:38:11 +03:00
|
|
|
task repl(dependsOn: classes, type: JavaExec) {
|
|
|
|
main 'inr.numass.LaunchGrindShell'
|
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
|
|
description "Start Grind repl"
|
|
|
|
standardInput = System.in
|
|
|
|
standardOutput = System.out
|
2017-04-05 22:07:43 +03:00
|
|
|
args["--config",]
|
2016-08-29 16:38:11 +03:00
|
|
|
group "numass"
|
2015-12-18 16:20:47 +03:00
|
|
|
}
|