Class YarnDependencyCollector
- java.lang.Object
-
- org.whitesource.agent.dependency.resolver.DependencyCollector
-
- org.whitesource.agent.dependency.resolver.npm.NpmLsJsonDependencyCollector
-
- org.whitesource.agent.dependency.resolver.npm.YarnDependencyCollector
-
public class YarnDependencyCollector extends NpmLsJsonDependencyCollector
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringATprotected static java.lang.StringDEV_DEPENDENCIESprotected static java.lang.StringNODE_MODULESprotected static java.lang.StringOPTIONAL_DEPENDENCIESprotected static java.lang.StringPACKAGE_JSONprotected static java.lang.StringRESOLVEDprotected static java.lang.StringSUCCESSprotected static java.lang.StringTGZ-
Fields inherited from class org.whitesource.agent.dependency.resolver.npm.NpmLsJsonDependencyCollector
ignoreNpmLsErrors, includeDevDependencies, LS_COMMAND, LS_PARAMETER_JSON, npmLsFailureStatus, npmTimeoutDependenciesCollector, PEER_MISSING
-
Fields inherited from class org.whitesource.agent.dependency.resolver.DependencyCollector
C_CHAR_WINDOWS
-
-
Constructor Summary
Constructors Constructor Description YarnDependencyCollector(boolean includeDevDependencies, long npmTimeoutDependenciesCollector, boolean ignoreNpmLsErrors, boolean ignoreScripts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<org.whitesource.agent.api.model.AgentProjectInfo>collectDependencies(java.lang.String folder)booleanexecutePreparationStep(java.lang.String folder)protected java.lang.String[]getInstallParams()-
Methods inherited from class org.whitesource.agent.dependency.resolver.npm.NpmLsJsonDependencyCollector
getDependencies, getDependency, getLsCommandParams, getLsCommandParamsJson, getNpmLsFailureStatus
-
Methods inherited from class org.whitesource.agent.dependency.resolver.DependencyCollector
getSingleProjectList, isWindows
-
-
-
-
Field Detail
-
SUCCESS
protected static final java.lang.String SUCCESS
- See Also:
- Constant Field Values
-
RESOLVED
protected static final java.lang.String RESOLVED
- See Also:
- Constant Field Values
-
TGZ
protected static final java.lang.String TGZ
- See Also:
- Constant Field Values
-
OPTIONAL_DEPENDENCIES
protected static final java.lang.String OPTIONAL_DEPENDENCIES
- See Also:
- Constant Field Values
-
AT
protected static final java.lang.String AT
- See Also:
- Constant Field Values
-
NODE_MODULES
protected static final java.lang.String NODE_MODULES
- See Also:
- Constant Field Values
-
PACKAGE_JSON
protected static final java.lang.String PACKAGE_JSON
- See Also:
- Constant Field Values
-
DEV_DEPENDENCIES
protected static final java.lang.String DEV_DEPENDENCIES
- See Also:
- Constant Field Values
-
-
Method Detail
-
collectDependencies
public java.util.Collection<org.whitesource.agent.api.model.AgentProjectInfo> collectDependencies(java.lang.String folder)
- Overrides:
collectDependenciesin classNpmLsJsonDependencyCollector
-
getInstallParams
protected java.lang.String[] getInstallParams()
- Overrides:
getInstallParamsin classNpmLsJsonDependencyCollector
-
executePreparationStep
public boolean executePreparationStep(java.lang.String folder)
- Overrides:
executePreparationStepin classNpmLsJsonDependencyCollector
-
-