Fixed plugin loading bug

This commit is contained in:
darksnake 2017-04-18 11:28:25 +03:00
parent 5e4ddcdfd5
commit 18cc9112b5
2 changed files with 32 additions and 0 deletions

View File

@ -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) {
group "numass"
main 'inr.numass.scripts.Simulate'

View 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"