Package org.apache.ivy.core.retrieve
Class RetrieveOptions
- java.lang.Object
-
- org.apache.ivy.core.LogOptions
-
- org.apache.ivy.core.retrieve.RetrieveOptions
-
public class RetrieveOptions extends LogOptions
A set of options used during retrieve related tasks- See Also:
RetrieveEngine
-
-
Field Summary
Fields Modifier and Type Field Description private Filter<Artifact>artifactFilterThe filter to apply before retrieving artifacts.private java.lang.String[]confsThe names of configurations to retrieve.private java.lang.StringdestArtifactPatternThe pattern to which artifacts should be retrieved.private java.lang.StringdestIvyPatternThe pattern to which ivy files should be retrieved.private booleanmakeSymlinksTrue if symbolic links should be created instead of plain copy.private booleanmakeSymlinksInMassDeprecated.private FileNameMappermapperprivate java.lang.StringoverwriteModestatic java.lang.StringOVERWRITEMODE_ALWAYSstatic java.lang.StringOVERWRITEMODE_DIFFERENTstatic java.lang.StringOVERWRITEMODE_NEVERstatic java.lang.StringOVERWRITEMODE_NEWERprivate java.lang.StringresolveIdThe id used to store the resolve information.private booleansyncTrue if a synchronisation of the destination directory should be done, false if a simple copy is enough.private booleanuseOriginTrue if the original files should be used instead of their cache copy.-
Fields inherited from class org.apache.ivy.core.LogOptions
LOG_DEFAULT, LOG_DOWNLOAD_ONLY, LOG_QUIET
-
-
Constructor Summary
Constructors Constructor Description RetrieveOptions()RetrieveOptions(RetrieveOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Filter<Artifact>getArtifactFilter()java.lang.String[]getConfs()java.lang.StringgetDestArtifactPattern()java.lang.StringgetDestIvyPattern()FileNameMappergetMapper()java.lang.StringgetOverwriteMode()java.lang.StringgetResolveId()booleanisMakeSymlinks()booleanisMakeSymlinksInMass()Deprecated.Starting 2.5, creating symlinks in mass is no longer supported and this method will always return falsebooleanisSync()booleanisUseOrigin()RetrieveOptionssetArtifactFilter(Filter<Artifact> artifactFilter)RetrieveOptionssetConfs(java.lang.String[] confs)RetrieveOptionssetDestArtifactPattern(java.lang.String destArtifactPattern)RetrieveOptionssetDestIvyPattern(java.lang.String destIvyPattern)RetrieveOptionssetMakeSymlinks(boolean makeSymlinks)RetrieveOptionssetMakeSymlinksInMass(boolean makeSymlinksInMass)Deprecated.Starting 2.5, creating symlinks in mass is no longer supported and this method plays no role in creation of symlinks.RetrieveOptionssetMapper(FileNameMapper mapper)RetrieveOptionssetOverwriteMode(java.lang.String overwriteMode)RetrieveOptionssetResolveId(java.lang.String resolveId)RetrieveOptionssetSync(boolean sync)RetrieveOptionssetUseOrigin(boolean useOrigin)-
Methods inherited from class org.apache.ivy.core.LogOptions
getLog, setLog
-
-
-
-
Field Detail
-
OVERWRITEMODE_NEVER
public static final java.lang.String OVERWRITEMODE_NEVER
- See Also:
- Constant Field Values
-
OVERWRITEMODE_ALWAYS
public static final java.lang.String OVERWRITEMODE_ALWAYS
- See Also:
- Constant Field Values
-
OVERWRITEMODE_NEWER
public static final java.lang.String OVERWRITEMODE_NEWER
- See Also:
- Constant Field Values
-
OVERWRITEMODE_DIFFERENT
public static final java.lang.String OVERWRITEMODE_DIFFERENT
- See Also:
- Constant Field Values
-
confs
private java.lang.String[] confs
The names of configurations to retrieve. If the array consists only of '*', then all configurations of the module will be retrieved.
-
destIvyPattern
private java.lang.String destIvyPattern
The pattern to which ivy files should be retrieved. If destIvyPattern is null no ivy files will be copied.
-
destArtifactPattern
private java.lang.String destArtifactPattern
The pattern to which artifacts should be retrieved.
-
artifactFilter
private Filter<Artifact> artifactFilter
The filter to apply before retrieving artifacts.
-
sync
private boolean sync
True if a synchronisation of the destination directory should be done, false if a simple copy is enough. Synchronisation means that after the retrieve only files which have been retrieved will be present in the destination directory, which means that some files may be deleted.
-
overwriteMode
private java.lang.String overwriteMode
-
useOrigin
private boolean useOrigin
True if the original files should be used instead of their cache copy.
-
makeSymlinks
private boolean makeSymlinks
True if symbolic links should be created instead of plain copy. Works only on OS supporting symbolic links.
-
makeSymlinksInMass
@Deprecated private boolean makeSymlinksInMass
Deprecated.
-
resolveId
private java.lang.String resolveId
The id used to store the resolve information.
-
mapper
private FileNameMapper mapper
-
-
Constructor Detail
-
RetrieveOptions
public RetrieveOptions()
-
RetrieveOptions
public RetrieveOptions(RetrieveOptions options)
-
-
Method Detail
-
getDestArtifactPattern
public java.lang.String getDestArtifactPattern()
-
setDestArtifactPattern
public RetrieveOptions setDestArtifactPattern(java.lang.String destArtifactPattern)
-
setArtifactFilter
public RetrieveOptions setArtifactFilter(Filter<Artifact> artifactFilter)
-
getConfs
public java.lang.String[] getConfs()
-
setConfs
public RetrieveOptions setConfs(java.lang.String[] confs)
-
getOverwriteMode
public java.lang.String getOverwriteMode()
-
setOverwriteMode
public RetrieveOptions setOverwriteMode(java.lang.String overwriteMode)
-
getDestIvyPattern
public java.lang.String getDestIvyPattern()
-
setDestIvyPattern
public RetrieveOptions setDestIvyPattern(java.lang.String destIvyPattern)
-
isMakeSymlinks
public boolean isMakeSymlinks()
-
isMakeSymlinksInMass
@Deprecated public boolean isMakeSymlinksInMass()
Deprecated.Starting 2.5, creating symlinks in mass is no longer supported and this method will always return false- Returns:
- false
-
setMakeSymlinks
public RetrieveOptions setMakeSymlinks(boolean makeSymlinks)
-
setMakeSymlinksInMass
@Deprecated public RetrieveOptions setMakeSymlinksInMass(boolean makeSymlinksInMass)
Deprecated.Starting 2.5, creating symlinks in mass is no longer supported and this method plays no role in creation of symlinks. UsesetMakeSymlinks(boolean)instead- Parameters:
makeSymlinksInMass- ditto- Returns:
- RetrieveOptions
-
isSync
public boolean isSync()
-
setSync
public RetrieveOptions setSync(boolean sync)
-
isUseOrigin
public boolean isUseOrigin()
-
setUseOrigin
public RetrieveOptions setUseOrigin(boolean useOrigin)
-
getResolveId
public java.lang.String getResolveId()
-
setResolveId
public RetrieveOptions setResolveId(java.lang.String resolveId)
-
getMapper
public FileNameMapper getMapper()
-
setMapper
public RetrieveOptions setMapper(FileNameMapper mapper)
-
-