Fixed plugin loading bug
This commit is contained in:
parent
5e4ddcdfd5
commit
18cc9112b5
@ -36,6 +36,15 @@ task repl(dependsOn: classes, type: JavaExec) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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) {
|
task simulate(dependsOn: classes, type: JavaExec) {
|
||||||
group "numass"
|
group "numass"
|
||||||
main 'inr.numass.scripts.Simulate'
|
main 'inr.numass.scripts.Simulate'
|
||||||
|
23
numass-main/src/main/groovy/inr/numass/RunTask.groovy
Normal file
23
numass-main/src/main/groovy/inr/numass/RunTask.groovy
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
package inr.numass
|
||||||
|
|
||||||
|
import hep.dataforge.grind.GrindWorkspaceBuilder
|
||||||
|
import inr.numass.tasks.*
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by darksnake on 18-Apr-17.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
cfgPath = "D:\\Work\\Numass\\sterile2016_10\\workspace.groovy"
|
||||||
|
|
||||||
|
GrindWorkspaceBuilder numass = new GrindWorkspaceBuilder().read(new File(cfgPath)).startup {
|
||||||
|
it.loadTask(NumassPrepareTask)
|
||||||
|
it.loadTask(NumassTableFilterTask)
|
||||||
|
it.loadTask(NumassFitScanTask)
|
||||||
|
it.loadTask(NumassSubstractEmptySourceTask)
|
||||||
|
it.loadTask(NumassFitScanSummaryTask)
|
||||||
|
it.loadTask(NumassFitTask)
|
||||||
|
it.loadTask(NumassFitSummaryTask)
|
||||||
|
}
|
||||||
|
|
||||||
|
numass.scansum "fill_1"
|
Loading…
Reference in New Issue
Block a user