2015-12-18 16:20:47 +03:00
|
|
|
apply plugin: 'application'
|
|
|
|
|
|
|
|
if (!hasProperty('mainClass')) {
|
|
|
|
ext.mainClass = 'inr.numass.Main'
|
|
|
|
}
|
|
|
|
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-08-04 17:14:42 +03:00
|
|
|
compile project(':dataforge-stat:dataforge-minuit')
|
2016-05-02 18:23:03 +03:00
|
|
|
compile project(':numass-storage')
|
2016-12-16 13:56:26 +03:00
|
|
|
compile 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
|
2016-10-22 22:01:24 +03:00
|
|
|
args ["--config",]
|
2016-08-29 16:38:11 +03:00
|
|
|
group "numass"
|
2015-12-18 16:20:47 +03:00
|
|
|
}
|