From 2cfe2e45e3f63455583f2f1fe8b4a1177a64367a Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Sat, 3 Sep 2016 22:26:18 +0300 Subject: [PATCH] Grind shell refactoring --- .../src/main/groovy/inr/numass/LaunchGrindShell.groovy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/numass-main/src/main/groovy/inr/numass/LaunchGrindShell.groovy b/numass-main/src/main/groovy/inr/numass/LaunchGrindShell.groovy index d82ae2c1..43a983f7 100644 --- a/numass-main/src/main/groovy/inr/numass/LaunchGrindShell.groovy +++ b/numass-main/src/main/groovy/inr/numass/LaunchGrindShell.groovy @@ -1,12 +1,14 @@ package inr.numass +import hep.dataforge.grind.GrindLauncher import hep.dataforge.grind.GrindShell +import hep.dataforge.workspace.Workspace /** * Created by darksnake on 29-Aug-16. */ GrindShell shell = new GrindShell() -shell.launcher.withSpec(NumassWorkspaceSpec) -shell.launcher.from(new File("D:\\Work\\Numass\\sterile2016\\workspace.groovy")) +Workspace numass = new GrindLauncher().withSpec(NumassWorkspaceSpec).from(new File("D:\\Work\\Numass\\sterile2016\\workspace.groovy")).buildWorkspace() +shell.bind("numass", numass) shell.start()