Class Scanner
java.lang.Object
org.sonatype.gradle.plugins.scan.nexus.iq.client.scan.Scanner
- Since:
- 1.0.1
-
Constructor Summary
ConstructorsConstructorDescriptionScanner(com.sonatype.insight.scan.config.ScanPropertiesLoader scanPropertiesLoader, com.sonatype.insight.scan.client.ClientScanner clientScanner, com.sonatype.insight.scan.file.FileScanner fileScanner, com.sonatype.insight.scan.model.io.ScanWriterFactory scanWriterFactory) Constructs a new Scanner without a logger.Scanner(com.sonatype.insight.scan.config.ScanPropertiesLoader scanPropertiesLoader, com.sonatype.insight.scan.client.ClientScanner clientScanner, com.sonatype.insight.scan.file.FileScanner fileScanner, com.sonatype.insight.scan.model.io.ScanWriterFactory scanWriterFactory, org.slf4j.Logger log) Constructs a new Scanner with an optional logger. -
Method Summary
Modifier and TypeMethodDescriptionprotected FilecreateScanFileInATempFolder(Map<String, String> envVars) Creates a temporary file for storing the scan results.scan(Properties config, List<File> targets, Optional<File> baseDirectory, Optional<String> instanceId, Map<String, String> envVars, List<com.sonatype.insight.scan.module.model.Module> modules) Scans the given targets and modules without licensed features.scan(Properties config, List<File> targets, Optional<File> baseDirectory, Optional<String> instanceId, Map<String, String> envVars, List<com.sonatype.insight.scan.module.model.Module> modules, Set<String> licensedFeatures) Scans the given targets and modules with optional licensed features.
-
Constructor Details
-
Scanner
public Scanner(com.sonatype.insight.scan.config.ScanPropertiesLoader scanPropertiesLoader, com.sonatype.insight.scan.client.ClientScanner clientScanner, com.sonatype.insight.scan.file.FileScanner fileScanner, com.sonatype.insight.scan.model.io.ScanWriterFactory scanWriterFactory) Constructs a new Scanner without a logger. -
Scanner
public Scanner(com.sonatype.insight.scan.config.ScanPropertiesLoader scanPropertiesLoader, com.sonatype.insight.scan.client.ClientScanner clientScanner, com.sonatype.insight.scan.file.FileScanner fileScanner, com.sonatype.insight.scan.model.io.ScanWriterFactory scanWriterFactory, org.slf4j.Logger log) Constructs a new Scanner with an optional logger.
-
-
Method Details
-
scan
public ScanResult scan(Properties config, List<File> targets, Optional<File> baseDirectory, Optional<String> instanceId, Map<String, String> envVars, List<com.sonatype.insight.scan.module.model.Module> modules) throws IOExceptionScans the given targets and modules without licensed features.- Throws:
IOException
-
scan
public ScanResult scan(Properties config, List<File> targets, Optional<File> baseDirectory, Optional<String> instanceId, Map<String, String> envVars, List<com.sonatype.insight.scan.module.model.Module> modules, Set<String> licensedFeatures) throws IOExceptionScans the given targets and modules with optional licensed features.- Throws:
IOException
-
createScanFileInATempFolder
Creates a temporary file for storing the scan results. If the environment variable "WORKSPACE_TMP" is set, the file will be created in the specified directory. Otherwise, the file will be created in the default JVM temporary directory.- Throws:
IOException
-