diff --git a/src/main/java/org/codehaus/gmavenplus/mojo/ConsoleMojo.java b/src/main/java/org/codehaus/gmavenplus/mojo/ConsoleMojo.java index 843045ee2..018a77842 100644 --- a/src/main/java/org/codehaus/gmavenplus/mojo/ConsoleMojo.java +++ b/src/main/java/org/codehaus/gmavenplus/mojo/ConsoleMojo.java @@ -140,7 +140,7 @@ protected void loadScript(Class consoleClass, Object console) throws Invocati } else if (project.getProperties().containsKey(consoleScript)) { consoleScriptFile = new File(project.getProperties().getProperty(consoleScript)); if (consoleScriptFile.isFile()) { - invokeMethod(loadScriptFile, consoleScriptFile); + invokeMethod(loadScriptFile, console, consoleScriptFile); } else { getLog().warn("consoleScript ('" + consoleScript + "') doesn't exist in project properties or as a file."); }