Fixed plugin system

This commit is contained in:
Alexander Nozik 2017-03-31 08:40:25 +03:00
parent 8811901e67
commit 9825b657c2
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ println cli.usage
String cfgPath = cli.parse(args).c; String cfgPath = cli.parse(args).c;
println "Loading config file from $cfgPath" println "Loading config file from $cfgPath"
//println "Starting numass plugin in GLOBAL" //println "Starting numass plugin in GLOBAL"
//Global.instance().pluginManager().loadPlugin("inr.numass:numass") //Global.instance().pluginManager().load("inr.numass:numass")
println "Starting Grind shell" println "Starting Grind shell"
if (cfgPath) { if (cfgPath) {

View File

@ -32,7 +32,7 @@ public class Numass {
public static Context buildContext(Context parent, Meta meta) { public static Context buildContext(Context parent, Meta meta) {
Context numassContext = Global.getContext("numass").withParent(parent).withProperties(meta); Context numassContext = Global.getContext("numass").withParent(parent).withProperties(meta);
numassContext.pluginManager().loadPlugin("inr.numass:numass"); numassContext.pluginManager().load("inr.numass:numass");
return numassContext; return numassContext;
} }