public class PackagerResolver extends URLResolver
The resolver is configured with a base URL, from which the "ivy.xml" and "packager.xml" files are resolved. The latter file contains instructions describing how to build the actual artifacts.
DATE_FORMAT, DESCRIPTOR_OPTIONAL, DESCRIPTOR_REQUIRED| Constructor and Description |
|---|
PackagerResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearCache() |
ResolvedResource |
findArtifactRef(Artifact artifact,
java.util.Date date) |
java.io.File |
getBuildRoot()
Returns root directory under which builds take place.
|
java.io.File |
getResourceCache()
Get resource cache directory.
|
java.lang.String |
getTypeName() |
void |
setAllownomd(boolean b) |
void |
setBuildRoot(java.io.File buildRoot)
Set root directory under which builds take place.
|
void |
setDescriptor(java.lang.String rule)
Sets the module descriptor presence rule.
|
void |
setPackagerPattern(java.lang.String pattern)
Set pattern for locating "packager.xml" files.
|
void |
setPreserveBuildDirectories(boolean preserve)
Set whether to preserve build directories.
|
void |
setProperty(java.lang.String propertyKey,
java.lang.String propertyValue)
Sets a property to be passed to the child Ant build responsible for packaging the dependency.
|
void |
setQuiet(boolean quiet)
Set whether to run ant with the -quiet flag.
|
void |
setResourceCache(java.io.File resourceCache)
Set resource cache directory.
|
void |
setResourceURL(java.lang.String resourceURL)
Set base resource override URL pattern.
|
void |
setRestricted(boolean restricted)
Set whether to enable restricted mode.
|
void |
setValidate(boolean validate)
Set whether to validate downloaded packager.xml files.
|
void |
setVerbose(boolean verbose)
Set whether to run ant with the -verbose flag.
|
void |
validate()
Validates the Validatable, throwing an
IllegalStateException if the current state is
not valid. |
download, dumpSettings, exist, findResourceUsingPattern, findTokenValues, get, getDestination, getRepository, getResource, isAlwaysCheckExactRevision, listResources, listTokenValues, publish, put, putChecksum, putSignature, setAlwaysCheckExactRevision, setName, setRepository, setSettings, setSigneraddArtifactPattern, addConfiguredArtifact, addConfiguredIvy, addIvyPattern, convertM2IdForResourceSearch, convertM2OrganizationForResourceSearch, convertM2ResourceSearchIdToNormal, convertM2TokenValuesForResourceSearch, findArtifactNames, findIvyFileRef, findIvyNames, findNames, findResource, findResourceUsingPatterns, getArtifactPatterns, getIvyPatterns, getModuleDescriptorExtension, isM2compatible, listTokenValues, setArtifactPatterns, setIvyPatterns, setM2compatibleacceptLatest, checkModuleDescriptorRevision, clearArtifactAttempts, clearIvyAttempts, doFindArtifactRef, download, exists, filterNames, findFirstArtifactRef, getAndCheck, getArtifactRef, getChecksumAlgorithms, getDefaultRMDParser, getDependency, getPublicationDate, getRMDParser, getWorkspaceName, isAllownomd, isCheckconsistency, isEnvDependent, isForce, listModules, listOrganisations, listRevisions, listTokenValues, locate, logArtifactAttempt, logAttempt, logIvyAttempt, parse, reportFailure, reportFailure, setCheckconsistency, setChecksums, setEnvDependent, setForce, setWorkspaceName, shouldReturnResolvedModule, toStringabortPublishTransaction, beginPublishTransaction, checkInterrupted, checkLatest, commitPublishTransaction, doValidate, findModuleInCache, findModuleInCache, fromSystem, fromSystem, getCacheDownloadOptions, getCacheOptions, getChangingMatcherName, getChangingPattern, getDownloadOptions, getEventManager, getLatest, getLatestStrategy, getName, getNamespace, getParserSettings, getRepositoryCacheManager, getSettings, getSystemNode, hidePassword, isAfter, isValidate, saveModuleRevisionIfNeeded, setCache, setChangingMatcher, setChangingPattern, setCheckmodified, setEventManager, setLatest, setLatestStrategy, setNamespace, setRepositoryCacheManager, toSystem, toSystem, toSystem, toSystem, toSystem, toSystemprotected void clearCache()
public void setBuildRoot(java.io.File buildRoot)
public java.io.File getBuildRoot()
public void setResourceCache(java.io.File resourceCache)
public java.io.File getResourceCache()
public void setResourceURL(java.lang.String resourceURL)
public void setPackagerPattern(java.lang.String pattern)
public void setPreserveBuildDirectories(boolean preserve)
public void setRestricted(boolean restricted)
public void setVerbose(boolean verbose)
public void setQuiet(boolean quiet)
public void setValidate(boolean validate)
setValidate in class AbstractResolverpublic void setAllownomd(boolean b)
setAllownomd in class BasicResolverpublic void setDescriptor(java.lang.String rule)
BasicResolverBasicResolver.DESCRIPTOR_REQUIRED or
BasicResolver.DESCRIPTOR_OPTIONAL.setDescriptor in class BasicResolverrule - the descriptor rule to use with this resolver.public void setProperty(java.lang.String propertyKey,
java.lang.String propertyValue)
propertyKey - the property to passpropertyValue - the value of the property to passpublic void validate()
ValidatableIllegalStateException if the current state is
not valid.validate in interface Validatablevalidate in class AbstractResolverpublic ResolvedResource findArtifactRef(Artifact artifact, java.util.Date date)
findArtifactRef in class AbstractPatternsBasedResolverpublic java.lang.String getTypeName()
getTypeName in class URLResolver