Java Code Examples for org.gradle.process.JavaExecSpec#setIgnoreExitValue()

The following examples show how to use org.gradle.process.JavaExecSpec#setIgnoreExitValue() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GradleJavaProcessExecutor.java    From javaide with GNU General Public License v3.0 5 votes vote down vote up
@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 want the caller to be able to do its own thing.
    javaExecSpec.setIgnoreExitValue(true);
}
 
Example 2
Source File: JjtreeExecutorAction.java    From javaccPlugin with MIT License 5 votes vote down vote up
@Override
public void execute(JavaExecSpec executor) {
    executor.classpath(classpath);
    executor.setMain("org.javacc.jjtree.Main");
    executor.args((Object[]) arguments.toArray());
    executor.setIgnoreExitValue(true);
}
 
Example 3
Source File: JjdocExecutorAction.java    From javaccPlugin with MIT License 5 votes vote down vote up
@Override
public void execute(JavaExecSpec executor) {
    executor.classpath(classpath);
    executor.setMain("org.javacc.jjdoc.JJDocMain");
    executor.args((Object[]) arguments.toArray());
    executor.setIgnoreExitValue(true);
}
 
Example 4
Source File: JavaccExecutorAction.java    From javaccPlugin with MIT License 5 votes vote down vote up
@Override
public void execute(JavaExecSpec executor) {
    executor.classpath(classpath);
    executor.setMain("org.javacc.parser.Main");
    executor.args((Object[]) arguments.toArray());
    executor.setIgnoreExitValue(true);
}