public class NpmLsJsonDependencyCollector extends DependencyCollector
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ignoreNpmLsErrors |
protected boolean |
includeDevDependencies |
static String |
LS_COMMAND |
static String |
LS_PARAMETER_JSON |
protected boolean |
npmLsFailureStatus |
protected long |
npmTimeoutDependenciesCollector |
static String |
PEER_MISSING |
C_CHAR_WINDOWS| Constructor and Description |
|---|
NpmLsJsonDependencyCollector(boolean includeDevDependencies,
long npmTimeoutDependenciesCollector,
boolean ignoreNpmLsErrors,
boolean ignoreScripts) |
| Modifier and Type | Method and Description |
|---|---|
Collection<org.whitesource.agent.api.model.AgentProjectInfo> |
collectDependencies(String rootDirectory) |
boolean |
executePreparationStep(String folder) |
protected void |
getDependencies(org.json.JSONObject jsonObject,
String rootDirectory,
Collection<org.whitesource.agent.api.model.DependencyInfo> dependencies) |
protected org.whitesource.agent.api.model.DependencyInfo |
getDependency(String dependencyAlias,
org.json.JSONObject jsonObject) |
protected String[] |
getInstallParams() |
protected String[] |
getLsCommandParams() |
protected String[] |
getLsCommandParamsJson() |
boolean |
getNpmLsFailureStatus() |
getSingleProjectList, isWindowspublic static final String LS_COMMAND
public static final String LS_PARAMETER_JSON
public static final String PEER_MISSING
protected final boolean includeDevDependencies
protected final boolean ignoreNpmLsErrors
protected boolean npmLsFailureStatus
protected final long npmTimeoutDependenciesCollector
public NpmLsJsonDependencyCollector(boolean includeDevDependencies,
long npmTimeoutDependenciesCollector,
boolean ignoreNpmLsErrors,
boolean ignoreScripts)
public Collection<org.whitesource.agent.api.model.AgentProjectInfo> collectDependencies(String rootDirectory)
collectDependencies in class DependencyCollectorpublic boolean executePreparationStep(String folder)
protected void getDependencies(org.json.JSONObject jsonObject,
String rootDirectory,
Collection<org.whitesource.agent.api.model.DependencyInfo> dependencies)
protected String[] getInstallParams()
protected String[] getLsCommandParams()
protected String[] getLsCommandParamsJson()
protected org.whitesource.agent.api.model.DependencyInfo getDependency(String dependencyAlias, org.json.JSONObject jsonObject)
public boolean getNpmLsFailureStatus()
Copyright © 2014–2020 Checkmarx. All rights reserved.