Exploit databaseDownload repository ZIP
GH-eb65c0ec62d48a663c1d9d818fe14a4c
21874-discovery/21-22_freight_frenzy
Sources for CVE-2019-11358
1,181 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files13
21874-discovery/21-22_freight_frenzyRevision 763b09f76422
- ↑..Parent directory
- BuildActionExecuter.java
- BuildActionParameters.java
- BuildActionResult.java
- BuildCompletionNotifyingBuildActionRunner.java
- BuildExecuter.java
- BuildOutcomeReportingBuildActionRunner.java
- BuildTreeBuildActionExecutor.java
- BuildTreeScopeLifecycleBuildActionExecuter.java
- ChainingBuildActionRunner.java
- DefaultBuildActionParameters.java
- InProcessBuildActionExecuter.java
- RunAsBuildOperationBuildActionRunner.java
- RunBuildBuildOperationType.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
wrapper/dists/gradle-7.0.2-all/7era6s5ay7zsbhuvl0oc9g94s/gradle-7.0.2/src/launcher/org/gradle/launcher/exec/BuildActionResult.java
Java · 3,310 bytes/*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.gradle.launcher.exec;
import org.gradle.tooling.internal.provider.serialization.SerializedPayload;
import javax.annotation.Nullable;
/**
* Encapsulates either a result object, or a failure as an exception or a serialized exception.
*
* <p>Exceptions should always be serialized, but currently are not when the failure happens outside the context of a build invocation because the serialization infrastructure is currently tied to some build scoped services.</p>
*/
public class BuildActionResult {
private final SerializedPayload result;
private final SerializedPayload serializedFailure;
private final RuntimeException failure;
private final boolean wasCancelled;
private BuildActionResult(SerializedPayload result, SerializedPayload serializedFailure, RuntimeException failure, boolean wasCancelled) {
this.result = result;
this.serializedFailure = serializedFailure;
this.failure = failure;
this.wasCancelled = wasCancelled;
}
public static BuildActionResult of(@Nullable SerializedPayload result) {
return new BuildActionResult(result, null, null, false);
}
public static BuildActionResult failed(SerializedPayload failure) {
return new BuildActionResult(null, failure, null, false);
}
public static BuildActionResult failed(RuntimeException failure) {
return new BuildActionResult(null, null, failure, false);
}
public static BuildActionResult cancelled(SerializedPayload failure) {
return new BuildActionResult(null, failure, null, true);
}
public static BuildActionResult cancelled(RuntimeException failure) {
return new BuildActionResult(null, null, failure, true);
}
public static BuildActionResult failed(boolean wasCancelled, @Nullable SerializedPayload failure, @Nullable RuntimeException exception) {
return new BuildActionResult(null, failure, exception, wasCancelled);
}
/**
* True when the build failed <em>and</em> was cancelled.
*/
public boolean wasCancelled() {
return wasCancelled;
}
@Nullable
public SerializedPayload getResult() {
return result;
}
@Nullable
public SerializedPayload getFailure() {
return serializedFailure;
}
@Nullable
public RuntimeException getException() {
return failure;
}
public boolean hasFailure() {
return failure != null || serializedFailure != null;
}
public void rethrow() {
if (failure != null) {
throw failure;
}
}
}