fix(docker): fixed Docker tool
@@ -93,10 +93,12 @@ import com.synopsys.integration.detect.workflow.status.BlackDuckBomDetectResult;
import com.synopsys.integration.detect.workflow.status.DetectResult;
import com.synopsys.integration.detect.workflow.status.Status;
import com.synopsys.integration.detect.workflow.status.StatusType;
+import com.synopsys.integration.detectable.Detectable;
import com.synopsys.integration.detectable.detectable.executable.ExecutableRunner;
import com.synopsys.integration.detectable.detectable.executable.impl.SimpleExecutableRunner;
import com.synopsys.integration.detectable.detectable.file.impl.SimpleFileFinder;
import com.synopsys.integration.detectable.detectables.bazel.BazelDetectable;
+import com.synopsys.integration.detectable.detectables.docker.DockerDetectable;
import com.synopsys.integration.detector.evaluation.DetectorEvaluationOptions;
import com.synopsys.integration.detector.finder.DetectorFinder;
import com.synopsys.integration.detector.finder.DetectorFinderOptions;
@@ -177,8 +179,8 @@ public class RunManager {
logger.info(ReportConstants.RUN_SEPARATOR);
if (detectToolFilter.shouldInclude(DetectTool.DOCKER)) {
- logger.info("Will include the docker tool.");
- final DetectableTool detectableTool = new DetectableTool(environment -> detectableFactory.createDetectable(BazelDetectable.class, environment), extractionEnvironmentProvider, codeLocationConverter, "DOCKER", DetectTool.DOCKER, eventSystem);
+ logger.info("Will include the Docker tool.");
+ final DetectableTool detectableTool = new DetectableTool(environment -> detectableFactory.createDetectable(DockerDetectable.class, environment), extractionEnvironmentProvider, codeLocationConverter, "DOCKER", DetectTool.DOCKER, eventSystem);
final DetectableToolResult detectableToolResult = detectableTool.execute(directoryManager.getSourceDirectory());
runResult.addDetectableToolResult(detectableToolResult);
anythingFailed = anythingFailed || detectableToolResult.isFailure();
