本文整理了Java中org.apache.tools.ant.taskdefs.Java.setFailonerror()
方法的一些代码示例,展示了Java.setFailonerror()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Java.setFailonerror()
方法的具体详情如下:
包路径:org.apache.tools.ant.taskdefs.Java
类名称:Java
方法名:setFailonerror
[英]If true, then fail if the command exits with a returncode other than zero.
[中]如果为true,则如果命令退出时返回的代码不是零,则失败。
代码示例来源:origin: org.apache.ant/ant
/**
* 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();
}
代码示例来源:origin: spotbugs/spotbugs
getFindbugsEngine().setFailonerror(false);
try {
getFindbugsEngine().execute();
代码示例来源:origin: org.apache.ant/ant
/**
* 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();
}
代码示例来源:origin: org.apache.ant/ant
java.createArg().setValue(arg);
java.setFailonerror(getJspc().getFailonerror());
代码示例来源:origin: hcoles/pitest
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();
}
代码示例来源:origin: org.fornax.toolsupport/fornax-oaw-m2-plugin
public JavaTaskBuilder failOnError(boolean failOnError) {
javaTask.setFailonerror(failOnError);
return this;
}
代码示例来源:origin: org.pitest/pitest-ant
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();
}
代码示例来源:origin: com.atlassian.maven.plugins/maven-amps-plugin
this.java.setFailonerror(true);
代码示例来源:origin: com.atlassian.maven.plugins/amps-maven-plugin
this.java.setFailonerror(true);
代码示例来源:origin: net.sourceforge.cobertura/cobertura
java.setClassname(getClassName());
java.setFork(true);
java.setFailonerror(failOnError);
java.setDir(getProject().getBaseDir());
if (maxMemory != null)
代码示例来源:origin: christ66/cobertura
java.setClassname(getClassName());
java.setFork(true);
java.setFailonerror(failOnError);
java.setDir(getProject().getBaseDir());
if (maxMemory != null)
代码示例来源:origin: codehaus-cargo/cargo
this.java.setFailonerror(true);
代码示例来源:origin: com.google.code.findbugs/findbugs
getFindbugsEngine().setFailonerror(false);
try {
getFindbugsEngine().execute();
代码示例来源:origin: com.github.spotbugs/spotbugs-ant
getFindbugsEngine().setFailonerror(false);
try {
getFindbugsEngine().execute();
代码示例来源:origin: org.codehaus.openxma/dsl-generator
super.setFailonerror(true);
super.setClassname(WorkflowRunner.class.getName());
try {
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.mwe.core
super.setFailonerror(true);
super.setClassname(WorkflowRunner.class.getName());
try {
代码示例来源:origin: wala/WALA
childJvm.setFailonerror(true);
childJvm.setFork(true);
代码示例来源:origin: axis/axis-ant
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);
}
}
代码示例来源:origin: wvengen/proguard-maven-plugin
java.setFailonerror(true);
代码示例来源:origin: openimaj/openimaj
java.setProject(project);
java.setFork(true);
java.setFailonerror(true);
内容来源于网络,如有侵权,请联系作者删除!