use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class NpmCliDetectable method extractable.
@Override
public DetectableResult extractable() throws DetectableException {
File nodeModules = fileFinder.findFile(environment.getDirectory(), NODE_MODULES);
if (nodeModules == null) {
return new NpmNodeModulesNotFoundDetectableResult(environment.getDirectory().getAbsolutePath());
}
Requirements requirements = new Requirements(fileFinder, environment);
requirements.explainDirectory(nodeModules);
npmExe = requirements.executable(() -> npmResolver.resolveNpm(environment), "npm");
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class GoVndrDetectable method applicable.
@Override
public DetectableResult applicable() {
Requirements requirements = new Requirements(fileFinder, environment);
vndrConfig = requirements.file(VNDR_CONF_FILENAME);
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class MavenPomDetectable method applicable.
@Override
public DetectableResult applicable() {
Requirements requirements = new Requirements(fileFinder, environment);
requirements.file(POM_FILENAME);
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class IvyParseDetectable method applicable.
@Override
public DetectableResult applicable() {
Requirements requirements = new Requirements(fileFinder, environment);
ivyXmlFile = requirements.file(IVY_XML_FILENAME);
// used just for project name information
buildXml = requirements.optionalFile(BUILD_XML_FILENAME).orElse(null);
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class GradleProjectInspectorDetectable method extractable.
@Override
public DetectableResult extractable() throws DetectableException {
Requirements requirements = new Requirements(fileFinder, environment);
inspector = requirements.executable(projectInspectorResolver::resolveProjectInspector, "Project Inspector");
return requirements.result();
}
Aggregations