Class Yarn2
-
- All Implemented Interfaces:
-
org.ossreviewtoolkit.utils.common.CommandLineTool
public final class Yarn2 extends PackageManager implements CommandLineToolThe Yarn 2+ package manager for JavaScript.
This package manager supports the following options:
disableRegistryCertificateVerification: If true, the
yarn npm infocommands called by this package manager will not verify the server certificate of the HTTPS connection to the NPM registry. This allows to replace the latter by a local one, e.g. for intercepting the requests or replaying them.corepackOverride: Per default, this class determines via auto-detection whether Yarn has been installed via Corepack, which impacts the name of the executable to use. With this option, auto-detection can be disabled, and the enabled status of Corepack can be explicitly specified. This is useful to force a specific behavior in some environments.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classYarn2.Factory
-
Field Summary
Fields Modifier and Type Field Description public final static StringOPTION_DISABLE_REGISTRY_CERTIFICATE_VERIFICATIONpublic final static StringOPTION_COREPACK_OVERRIDEpublic final static StringYARN2_RESOURCE_FILEpublic final static StringYARN_PATH_PROPERTY_NAMEprivate final FileanalysisRootprivate final AnalyzerConfigurationanalyzerConfigprivate final Excludesexcludesprivate final StringmanagerNameprivate final RepositoryConfigurationrepoConfig
-
Method Summary
Modifier and Type Method Description Stringcommand(File workingDir)StringgetVersion(File workingDir)RangesListgetVersionRequirement()List<File>mapDefinitionFiles(List<File> definitionFiles)List<ProjectAnalyzerResult>resolveDependencies(File definitionFile, Map<String, String> labels)-
Methods inherited from class org.ossreviewtoolkit.analyzer.PackageManager
findPackageManagerDependencies, getAnalysisRoot, getAnalyzerConfig, getExcludes, getManagerName, getRepoConfig, resolveDependencies -
Methods inherited from class org.ossreviewtoolkit.utils.common.CommandLineTool
checkVersion, displayName, getVersionArguments, isInPath, run, run, transformVersion -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getVersion
String getVersion(File workingDir)
-
getVersionRequirement
RangesList getVersionRequirement()
-
mapDefinitionFiles
List<File> mapDefinitionFiles(List<File> definitionFiles)
-
-
-
-