- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for setIgnoreExitValue (0.29 sec)
-
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/sources/process/DelegatingBaseExecSpec.java
/** * Just the wrapper that delegates all calls to what {@link #getDelegate()} returns. */ interface DelegatingBaseExecSpec extends BaseExecSpec { @Override default BaseExecSpec setIgnoreExitValue(boolean ignoreExitValue) { getDelegate().setIgnoreExitValue(ignoreExitValue); return this; } @Override default boolean isIgnoreExitValue() { return getDelegate().isIgnoreExitValue(); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 3.9K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/process/internal/DefaultExecHandleBuilder.java
@Override public List<String> getAllArguments() { return argumentsSpec.getAllArguments(); } @Override public DefaultExecHandleBuilder setIgnoreExitValue(boolean ignoreExitValue) { super.setIgnoreExitValue(ignoreExitValue); return this; } @Override public DefaultExecHandleBuilder workingDir(Object dir) { super.workingDir(dir); return this;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 06 16:16:31 UTC 2020 - 4.8K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/process/internal/DefaultExecSpec.java
targetSpec.setArgs(getArgs()); targetSpec.getArgumentProviders().addAll(getArgumentProviders()); } static void copyBaseExecSpecTo(BaseExecSpec source, BaseExecSpec target) { target.setIgnoreExitValue(source.isIgnoreExitValue()); if (source.getStandardInput() != null) { target.setStandardInput(source.getStandardInput()); } if (source.getStandardOutput() != null) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 06 16:16:31 UTC 2020 - 4.6K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/tasks/AbstractExecTask.java
public OutputStream getErrorOutput() { return execSpec.getErrorOutput(); } /** * {@inheritDoc} */ @Override public T setIgnoreExitValue(boolean ignoreExitValue) { execSpec.setIgnoreExitValue(ignoreExitValue); return taskType.cast(this); } /** * {@inheritDoc} */ @Input @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 08 18:31:36 UTC 2022 - 8.3K bytes - Viewed (0) -
platforms/jvm/language-java/src/main/java/org/gradle/api/tasks/javadoc/internal/JavadocGenerator.java
ExecAction execAction = javadocExecHandleBuilder.getExecHandle(); if (spec.isIgnoreFailures()) { execAction.setIgnoreExitValue(true); } try { execAction.execute(); } catch (ExecException e) { LOG.info("Problems generating Javadoc."
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 2.5K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/sources/process/ProcessOutputValueSource.java
/** * Whether the exception should be thrown if the process has non-successful exit code. * * @return the property to ignore exit value * @see org.gradle.process.BaseExecSpec#setIgnoreExitValue(boolean) */ Property<Boolean> getIgnoreExitValue(); static String getExecutable(Parameters p) { List<String> command = p.getCommandLine().get();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 7.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/sources/process/ProviderCompatibleBaseExecSpecTestBase.groovy
} def "spec sets ignoreExitValue on parameters"(boolean ignoreExitValue) { given: def parameters = newParameters() when: specUnderTest.setIgnoreExitValue(ignoreExitValue) specUnderTest.copyToParameters(parameters) then: parameters.ignoreExitValue.get() == ignoreExitValue where: ignoreExitValue << [true, false]
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 5.9K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/tasks/incrementalBuild-incrementalBuildAdvanced/kotlin/buildSrc/src/main/java/org/example/GitClone.java
ByteArrayOutputStream output = new ByteArrayOutputStream(); ExecResult result = getExecOperations().exec(spec -> { spec.commandLine("git", "remote", "get-url", "origin"); spec.setIgnoreExitValue(true); spec.setStandardOutput(output); spec.setWorkingDir(directory); }); String outputString = output.toString().trim();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 3.6K bytes - Viewed (0) -
platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/CommandLineJavaCompiler.java
builder.setWorkingDir(spec.getWorkingDir()); builder.setExecutable(executable); argumentsGenerator.collectArguments(spec, new ExecSpecBackedArgCollector(builder)); builder.setIgnoreExitValue(true); return builder.build(); } private void executeCompiler(ExecHandle handle) { handle.start(); ExecResult result = handle.waitForFinish();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 2.9K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/flow/FlowAction.java
* "ffplay", "-nodisp", "-autoexit", "-hide_banner", "-loglevel", "quiet", * parameters.getMediaFile().get().getAbsolutePath() * ); * spec.setIgnoreExitValue(true); * }); * } * } * </pre> * * @param <P> Parameter type for the dataflow action. Should be {@link FlowParameters.None} if the action does not have parameters. * @see FlowScope
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 16 20:51:35 UTC 2023 - 2.8K bytes - Viewed (0)