/** * Enable compiler to report stack trace information if a problem occurs * during compilation. * * @param stacktrace set to true to enable stacktrace reporting */ public void setStacktrace(boolean stacktrace) { configuration.setDebug(stacktrace); }
protected void setUp() throws Exception { File dir = new File("target/test-generated-classes"); dir.mkdirs(); CompilerConfiguration config = new CompilerConfiguration(); config.setTargetDirectory(dir); config.setDebug(dumpClass); compiler = new Compiler(config); }
if (text != null && text.equalsIgnoreCase("true")) setDebug(true);
main.conf.setDebug(main.debug); main.conf.setParameters(parameterMetadata); main.processFiles = lineByLine || lineByLinePrint;
conf.setDebug(true); shell = new GroovyShell(conf); if (addClasspath != null && addClasspath.length() > 0) {
setClasspath(""); setVerbose(false); setDebug(false); setParameters(getSystemPropertySafe("groovy.parameters") != null); setTolerance(10);
setClasspathList(new LinkedList<String>(configuration.getClasspath())); setVerbose(configuration.getVerbose()); setDebug(configuration.getDebug()); setParameters(configuration.getParameters()); setTolerance(configuration.getTolerance());
init.setDebug(true); init.setVerbose(false); init.setTolerance(720);
init.setDebug(false); init.setVerbose(true); init.setTolerance(55);
/** * Enable compiler to report stack trace information if a problem occurs * during compilation. * * @param stacktrace set to true to enable stacktrace reporting */ public void setStacktrace(boolean stacktrace) { configuration.setDebug(stacktrace); }
/** * Enable compiler to report stack trace information if a problem occurs * during compilation. * * @param stacktrace set to true to enable stacktrace reporting */ public void setStacktrace(boolean stacktrace) { configuration.setDebug(stacktrace); }
/** * Enable compiler to report stack trace information if a problem occurs * during compilation. * * @param stacktrace set to true to enable stacktrace reporting */ public void setStacktrace(boolean stacktrace) { configuration.setDebug(stacktrace); }
/** * Enable compiler to report stack trace information if a problem occurs * during compilation. */ public void setStacktrace(boolean stacktrace) { configuration.setDebug(stacktrace); }
/** * Enable compiler to report stack trace information if a problem occurs * during compilation. * @param stacktrace set to true to enable stacktrace reporting */ public void setStacktrace(boolean stacktrace) { configuration.setDebug(stacktrace); }
/** * Enable compiler to report stack trace information if a problem occurs * during compilation. * * @param stacktrace set to true to enable stacktrace reporting */ public void setStacktrace(boolean stacktrace) { configuration.setDebug(stacktrace); }
public GroovyScripting(ClassLoader parent, boolean debug) { CompilerConfiguration cfg = new CompilerConfiguration(); cfg.setDebug(debug); if (debug) { cfg.setRecompileGroovySource(true); } loader = new GroovyClassLoader(parent, cfg); cache = new ConcurrentHashMap<File, Entry>(); }
@Override public void start(ILifecycleProgressMonitor monitor) throws SiteWhereException { try { groovyScriptEngine = new GroovyScriptEngine( new URL[] { getScriptSynchronizer().getFileSystemRoot().toURI().toURL() }); groovyScriptEngine.getConfig().setVerbose(isVerbose()); groovyScriptEngine.getConfig().setDebug(isDebug()); } catch (MalformedURLException e) { throw new SiteWhereException("Unable to create Groovy script engine.", e); } }
@Override public void start(ILifecycleProgressMonitor monitor) throws SiteWhereException { resourceConnector = new GlobalResourceConnector(); groovyScriptEngine = new GroovyScriptEngine(resourceConnector); groovyScriptEngine.getConfig().setVerbose(isVerbose()); groovyScriptEngine.getConfig().setDebug(isDebug()); LOGGER.info( "Global Groovy script engine configured with (verbose:" + isVerbose() + ") (debug:" + isDebug() + ")."); }
@Override public void start(ILifecycleProgressMonitor monitor) throws SiteWhereException { resourceConnector = new TenantResourceConnector(getTenant().getId()); groovyScriptEngine = new GroovyScriptEngine(resourceConnector); groovyScriptEngine.getConfig().setVerbose(isVerbose()); groovyScriptEngine.getConfig().setDebug(isDebug()); LOGGER.info( "Tenant Groovy script engine configured with (verbose:" + isVerbose() + ") (debug:" + isDebug() + ")."); }
private ClassCompilerImpl() throws Exception { super(ClassCompilerFeature.this); cc.setVerbose(config.get(VERBOSE, false)); cc.setDebug(config.get(DEBUG, false)); if (config.contains(TOLERANCE)) { cc.setTolerance(config.get(TOLERANCE, 0)); } if (config.contains(SCRIPT_BASE_CLASSNAME)) { cc.setScriptBaseClass(config.get(SCRIPT_BASE_CLASSNAME, (String)null)); } if (config.contains(DEFAULT_SCRIPT_EXTENSION)) { cc.setDefaultScriptExtension(config.get(DEFAULT_SCRIPT_EXTENSION, (String)null)); } }