Class ResolveOptions
java.lang.Object
org.apache.ivy.core.LogOptions
org.apache.ivy.core.resolve.ResolveOptions
A set of options used during resolve related tasks
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault resolve mode, using default revision constraints in dependency descriptors.static final StringDynamic resolve mode, using dynamic revision constraints in dependency descriptors.static final String[]Array of all available resolve modes.Fields inherited from class LogOptions
LOG_DEFAULT, LOG_DOWNLOAD_ONLY, LOG_QUIET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanString[]getConfs()String[]Get the asked confs.getDate()static Stringstatic StringgetDefaultResolveId(ModuleId moduleId) Returns the resolve mode to use, ornullto use settings configured resolve mode.booleanbooleanbooleanbooleanbooleanbooleansetArtifactFilter(Filter<Artifact> artifactFilter) setCheckIfChanged(boolean checkIfChanged) setDownload(boolean download) setOutputReport(boolean outputReport) setRefresh(boolean refresh) setResolveId(String resolveId) setResolveMode(String resolveMode) setRevision(String revision) setTransitive(boolean transitive) setUseCacheOnly(boolean useCacheOnly) setValidate(boolean validate) booleanIndicates if the configurations use a special configuration * , *(private) or *(public).Methods inherited from class LogOptions
getLog, setLog
-
Field Details
-
RESOLVEMODE_DEFAULT
Default resolve mode, using default revision constraints in dependency descriptors.- See Also:
-
RESOLVEMODE_DYNAMIC
Dynamic resolve mode, using dynamic revision constraints in dependency descriptors.- See Also:
-
RESOLVEMODES
Array of all available resolve modes.
-
-
Constructor Details
-
ResolveOptions
public ResolveOptions() -
ResolveOptions
-
-
Method Details
-
getArtifactFilter
-
setArtifactFilter
-
getResolveMode
Returns the resolve mode to use, ornullto use settings configured resolve mode.- Returns:
- the resolve mode to use.
-
setResolveMode
-
useSpecialConfs
public boolean useSpecialConfs()Indicates if the configurations use a special configuration * , *(private) or *(public). When special configurations are used, you must have the module descriptor in order to get the list of configurations.- Returns:
- boolean
- See Also:
-
getConfs
- Returns:
- String[]
- See Also:
- Precondition:
- can only be called if useSpecialConfs()==false. When it is true, you have to provide a module descriptor so that configurations can be resolved.
-
getConfs
Get the asked confs. Special confs (like *) use the moduleDescriptor to find the values- Parameters:
md- Used to get the exact values for special confs.- Returns:
- String[]
-
setConfs
-
getDate
-
setDate
-
isDownload
public boolean isDownload() -
setDownload
-
isOutputReport
public boolean isOutputReport() -
setOutputReport
-
isTransitive
public boolean isTransitive() -
setTransitive
-
isUseCacheOnly
public boolean isUseCacheOnly() -
setUseCacheOnly
-
isValidate
public boolean isValidate() -
setValidate
-
getRevision
-
setRevision
-
getResolveId
-
setResolveId
-
setRefresh
-
isRefresh
public boolean isRefresh() -
setCheckIfChanged
-
getCheckIfChanged
public boolean getCheckIfChanged() -
getDefaultResolveId
-
getDefaultResolveId
-