Package org.apache.ivy.core.resolve
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 TypeFieldDescriptionA filter to use to avoid downloading all artifacts.private boolean
True if the resolve should compare the new resolution against the previous reportprivate String[]
an array of configuration names to resolve - must not be null nor emptyprivate Date
the date for which the dependencies should be resolved.private boolean
True if the resolve should also download artifacts, false if only dependency resolution with module descriptors should be doneprivate boolean
True if a report of the resolve process should be output at the end of the process, false otherwiseprivate boolean
private String
The id used to store the resolve information.private String
The resolve mode to use.static final String
Default resolve mode, using default revision constraints in dependency descriptors.static final String
Dynamic resolve mode, using dynamic revision constraints in dependency descriptors.static final String[]
Array of all available resolve modes.private String
the revision of the module for which dependencies should be resolved.private boolean
True if the dependencies should be resolved transitively, false if only direct dependencies should be resolvedprivate boolean
True if only the cache should be used for resolve, false if a real resolve with dependency resolvers should be doneprivate boolean
True if validation of module descriptors should done, false otherwiseFields inherited from class org.apache.ivy.core.LogOptions
LOG_DEFAULT, LOG_DOWNLOAD_ONLY, LOG_QUIET
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
String[]
getConfs()
String[]
Get the asked confs.getDate()
static String
static String
getDefaultResolveId
(ModuleId moduleId) Returns the resolve mode to use, ornull
to use settings configured resolve mode.boolean
boolean
boolean
boolean
boolean
boolean
setArtifactFilter
(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) boolean
Indicates if the configurations use a special configuration * , *(private) or *(public).Methods inherited from class org.apache.ivy.core.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. -
confs
an array of configuration names to resolve - must not be null nor empty -
revision
the revision of the module for which dependencies should be resolved. This revision is considered as the resolved revision of the module, unless it is null. If it is null, then a default revision is given if necessary (no revision found in ivy file) -
date
the date for which the dependencies should be resolved. All obtained artifacts should have a publication date which is before or equal to the given date. The date can be null, in which case all artifacts will be considered -
validate
private boolean validateTrue if validation of module descriptors should done, false otherwise -
useCacheOnly
private boolean useCacheOnlyTrue if only the cache should be used for resolve, false if a real resolve with dependency resolvers should be done -
transitive
private boolean transitiveTrue if the dependencies should be resolved transitively, false if only direct dependencies should be resolved -
download
private boolean downloadTrue if the resolve should also download artifacts, false if only dependency resolution with module descriptors should be done -
outputReport
private boolean outputReportTrue if a report of the resolve process should be output at the end of the process, false otherwise -
artifactFilter
A filter to use to avoid downloading all artifacts. -
resolveMode
The resolve mode to use. Should be one ofRESOLVEMODES
, ornull
to use settings configured resolve mode. -
resolveId
The id used to store the resolve information. -
refresh
private boolean refresh -
checkIfChanged
private boolean checkIfChangedTrue if the resolve should compare the new resolution against the previous report
-
-
Constructor Details
-
ResolveOptions
public ResolveOptions() -
ResolveOptions
-
-
Method Details
-
getArtifactFilter
-
setArtifactFilter
-
getResolveMode
Returns the resolve mode to use, ornull
to 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:
-
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
-