final cpan changes
@@ -33,7 +33,6 @@ import com.blackducksoftware.integration.hub.detect.bomtool.cpan.CpanPackager
import com.blackducksoftware.integration.hub.detect.bomtool.output.DetectCodeLocation
import com.blackducksoftware.integration.hub.detect.type.BomToolType
import com.blackducksoftware.integration.hub.detect.type.ExecutableType
-import com.blackducksoftware.integration.hub.detect.util.executable.Executable
import com.blackducksoftware.integration.hub.detect.util.executable.ExecutableOutput
@Component
@@ -63,12 +62,10 @@ class CpanBomTool extends BomTool {
@Override
public List<DetectCodeLocation> extractDetectCodeLocations() {
- def cpanListExecutable = new Executable(sourceDirectory, cpanExecutablePath, ['-l'])
- ExecutableOutput cpanListOutput = executableRunner.execute(cpanListExecutable)
+ ExecutableOutput cpanListOutput = executableRunner.runExe(cpanExecutablePath, ['-l'])
String listText = cpanListOutput.getStandardOutput()
- def cpanmShowdepsExecutable = new Executable(sourceDirectory, cpanmExecutablePath, ['--showdeps', '.'])
- ExecutableOutput showdepsOutput = executableRunner.execute(cpanmShowdepsExecutable)
+ ExecutableOutput showdepsOutput = executableRunner.runExe(cpanmExecutablePath, ['--showdeps', '.'])
String showdeps = showdepsOutput.getStandardOutput()
Set<DependencyNode> dependenciesSet = cpanPackager.makeDependencyNodes(detectConfiguration.sourceDirectory, listText, showdeps)
