/** * Perform the actual deployment. * For this generic implementation, a JVM is spawned using the * supplied classpath, classname, JVM args, and command line arguments. * @exception BuildException if the attributes are invalid or incomplete. */ @Override public void deploy() throws BuildException { java.setClassname(className); java.setClasspath(getClasspath()); java.setFork(true); java.setFailonerror(true); java.execute(); }
getFindbugsEngine().setFailonerror(false); try { getFindbugsEngine().execute();
/** * Perform the actual deployment. * For this implementation, a JVM is spawned and the weblogic.deploy * tools is executed. * @exception BuildException if the attributes are invalid or incomplete. */ @Override public void deploy() { Java java = new Java(getTask()); java.setFork(true); java.setFailonerror(true); java.setClasspath(getClasspath()); java.setClassname(WEBLOGIC_DEPLOY_CLASS_NAME); java.createArg().setLine(getArguments()); java.execute(); }
java.createArg().setValue(arg); java.setFailonerror(getJspc().getFailonerror());
void execute(final Java java) { this.setOption(ConfigOption.INCLUDE_LAUNCH_CLASSPATH, "false"); this.setOption(ConfigOption.CLASSPATH, generateAnalysisClasspath()); java.setClasspath(generateLaunchClasspath()); java.setClassname(MutationCoverageReport.class.getCanonicalName()); java.setFailonerror(true); java.setFork(true); checkRequiredOptions(); for (final Map.Entry<String, String> option : this.options.entrySet()) { java.createArg().setValue( "--" + option.getKey() + "=" + option.getValue()); } java.execute(); }
public JavaTaskBuilder failOnError(boolean failOnError) { javaTask.setFailonerror(failOnError); return this; }
void execute(final Java java) { this.setOption(ConfigOption.INCLUDE_LAUNCH_CLASSPATH, "false"); this.setOption(ConfigOption.CLASSPATH, generateAnalysisClasspath()); java.setClasspath(generateLaunchClasspath()); java.setClassname(MutationCoverageReport.class.getCanonicalName()); java.setFailonerror(true); java.setFork(true); checkRequiredOptions(); for (final Map.Entry<String, String> option : this.options.entrySet()) { java.createArg().setValue( "--" + option.getKey() + "=" + option.getValue()); } java.execute(); }
this.java.setFailonerror(true);
this.java.setFailonerror(true);
java.setClassname(getClassName()); java.setFork(true); java.setFailonerror(failOnError); java.setDir(getProject().getBaseDir()); if (maxMemory != null)
java.setClassname(getClassName()); java.setFork(true); java.setFailonerror(failOnError); java.setDir(getProject().getBaseDir()); if (maxMemory != null)
this.java.setFailonerror(true);
getFindbugsEngine().setFailonerror(false); try { getFindbugsEngine().execute();
getFindbugsEngine().setFailonerror(false); try { getFindbugsEngine().execute();
super.setFailonerror(true); super.setClassname(WorkflowRunner.class.getName()); try {
super.setFailonerror(true); super.setClassname(WorkflowRunner.class.getName()); try {
childJvm.setFailonerror(true); childJvm.setFork(true);
private void executeInForkedVM(String[] args) { try { // Create an instance of the compiler, redirecting output to // the project log Java java = (Java) (getProject().createTask("java")); getProject().log("using classpath: " + classpath, Project.MSG_DEBUG); java.setClasspath(classpath); java.setClassname("org.apache.axis.client.AdminClient"); for (int i = 0; i < args.length; i++) { java.createArg().setValue(args[i]); } java.setFailonerror(failOnError); //we are forking here to be sure that if AdminClient calls //System.exit() it doesn't halt the build java.setFork(true); java.setTaskName("AdminClient"); java.execute(); } catch (BuildException e) { //rethrow these throw e; } catch (Exception e) { throw new BuildException("Exception in " + getTaskName(), e); } }
java.setProject(project); java.setFork(true); java.setFailonerror(true);