@Override public void execute(JavaExecSpec executor) { executor.classpath(classpath); executor.setMain("org.javacc.jjdoc.JJDocMain"); executor.args((Object[]) arguments.toArray()); executor.setIgnoreExitValue(true); } }
@Override public void execute(JavaExecSpec executor) { executor.classpath(classpath); executor.setMain("org.javacc.jjtree.Main"); executor.args((Object[]) arguments.toArray()); executor.setIgnoreExitValue(true); } }
@Override public void execute(JavaExecSpec executor) { executor.classpath(classpath); executor.setMain("org.javacc.parser.Main"); executor.args((Object[]) arguments.toArray()); executor.setIgnoreExitValue(true); } }
javaExecSpec.setIgnoreExitValue(true); //otherwise fails immediately before displaying output });
javaExecSpec.setIgnoreExitValue(true); //otherwise fails immediately before displaying output });
@Override public void execute(JavaExecSpec spec) { getLogger().lifecycle(CONFIG_MESSAGE, getFormat(), formatPath(getBaseDir()), formatPath(getDestDir())); getLogger().info("Using main class {}", getMainClass()); Configuration configuration = getProject().getConfigurations().getAt(CONFIGURATION_NAME); String toolPath = configuration.getAsPath(); spec.setIgnoreExitValue(true); spec.setClasspath(createToolClasspath(configuration)); spec.setMain(getMainClass()); spec.args(getFormat(), getBaseDir().getAbsolutePath(), getDestDir().getAbsolutePath(), toolPath); }
@Override public void execute(JavaExecSpec javaExecSpec) { javaExecSpec.classpath(new File(javaProcessInfo.getClasspath())); javaExecSpec.setMain(javaProcessInfo.getMainClass()); javaExecSpec.args(javaProcessInfo.getArgs()); javaExecSpec.jvmArgs(javaProcessInfo.getJvmArgs()); javaExecSpec.environment(javaProcessInfo.getEnvironment()); javaExecSpec.setStandardOutput(processOutput.getStandardOutput()); javaExecSpec.setErrorOutput(processOutput.getErrorOutput()); // we run by default in headless mode, so the forked JVM doesn't steal focus. javaExecSpec.systemProperty("java.awt.headless", "true"); // we want the caller to be able to do its own thing. javaExecSpec.setIgnoreExitValue(true); } }