numass-framework/numass-main/build.gradle

82 lines
2.6 KiB
Groovy

apply plugin: 'groovy'
apply plugin: 'application'
//if (!hasProperty('mainClass')) {
// ext.mainClass = 'inr.numass.LaunchGrindShell'
//}
mainClassName = 'inr.numass.LaunchGrindShell'
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-core')
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 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
}
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.Underflow'
classpath = sourceSets.main.runtimeClasspath
}
/*
<library>
<CLASSES>
<root url="file://$MODULE_DIR$/../../../../dataforge/dataforge-plots/plots-jfc/libs" />
</CLASSES>
<JAVADOC />
<SOURCES />
<jarDirectory url="file://$MODULE_DIR$/../../../../dataforge/dataforge-plots/plots-jfc/libs" recursive="false" />
</library>
*/
idea {
module {
iml {
withXml {
def node = it.asNode()
def libNode = node.appendNode("library")
libNode.appendNode("CLASSES").appendNode("root", url: "file://\$MODULE_DIR\$/../../../../dataforge/dataforge-plots/plots-jfc/libs")
libNode.appendNode("jarDirectory", url: "file://\$MODULE_DIR\$/../../../../dataforge/dataforge-plots/plots-jfc/libs", recursive: "false")
}
}
}
}