numass-framework/numass-main/build.gradle

47 lines
1.3 KiB
Groovy
Raw Normal View History

2015-12-18 16:20:47 +03:00
apply plugin: 'application'
if (!hasProperty('mainClass')) {
ext.mainClass = 'inr.numass.Main'
}
mainClassName = mainClass
description = """The main head of all numass projects"""
ext{
defaultNumassPath = 'D:\\loss-2011\\'
}
dependencies {
compile group: 'commons-cli', name: 'commons-cli', version:'1.+'
compile group: 'commons-io', name: 'commons-io', version:'2.+'
compile project(':dataforge-fitting:dataforge-minuit')
compile project(':dataforge-fx')
compile project(':dataforge-plots')
2016-05-02 18:23:03 +03:00
compile project(':numass-storage')
2015-12-18 16:20:47 +03:00
}
task runNumass(dependsOn: classes, type : JavaExec){
main mainClass
classpath = sourceSets.main.runtimeClasspath
workingDir defaultNumassPath
description "run Main method in the current numass working directory"
group "numass"
}
task debugNumass(dependsOn: classes, type: JavaExec) {
main mainClass
classpath = sourceSets.main.runtimeClasspath
workingDir defaultNumassPath
ignoreExitValue = true
debug = true
description "debug Main method in the current numass working directory"
group "numass"
}
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"
group "numass"
}