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, setSigner
addArtifactPattern, addConfiguredArtifact, addConfiguredIvy, addIvyPattern, convertM2CriteriaForResourceSearch, convertM2IdForResourceSearch, convertM2OrganizationForResourceSearch, convertM2ResourceSearchIdToNormal, convertM2TokenValuesForResourceSearch, findArtifactNames, findIvyFileRef, findIvyNames, findNames, findResource, findResourceUsingPatterns, getArtifactPatterns, getIvyPatterns, getModuleDescriptorExtension, isM2compatible, listTokenValues, setArtifactPatterns, setIvyPatterns, setM2compatible
acceptLatest, 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, toString
abortPublishTransaction, beginPublishTransaction, checkInterrupted, checkLatest, commitPublishTransaction, doValidate, findModuleInCache, findModuleInCache, fromSystem, fromSystem, getCacheDownloadOptions, getCacheOptions, getChangingMatcherName, getChangingPattern, getDownloadOptions, getEventManager, getLatest, getLatestStrategy, getName, getNamespace, getParserSettings, getRepositoryCacheManager, getSettings, getSystemNode, getTimeoutConstraint, hidePassword, isAfter, isValidate, saveModuleRevisionIfNeeded, setCache, setChangingMatcher, setChangingPattern, setCheckmodified, setEventManager, setLatest, setLatestStrategy, setNamespace, setRepositoryCacheManager, setTimeoutConstraint, toSystem, toSystem, toSystem, toSystem, toSystem, toSystem
protected void clearCache()
public void setBuildRoot(java.io.File buildRoot)
buildRoot
- Filepublic java.io.File getBuildRoot()
public void setResourceCache(java.io.File resourceCache)
resourceCache
- Filepublic java.io.File getResourceCache()
public void setResourceURL(java.lang.String resourceURL)
resourceURL
- Stringpublic void setPackagerPattern(java.lang.String pattern)
pattern
- Stringpublic void setPreserveBuildDirectories(boolean preserve)
preserve
- booleanpublic void setRestricted(boolean restricted)
restricted
- booleanpublic void setVerbose(boolean verbose)
verbose
- booleanpublic void setQuiet(boolean quiet)
quiet
- booleanpublic void setValidate(boolean validate)
setValidate
in class AbstractResolver
validate
- booleanpublic void setAllownomd(boolean b)
setAllownomd
in class BasicResolver
public void setDescriptor(java.lang.String rule)
BasicResolver
BasicResolver.DESCRIPTOR_REQUIRED
or
BasicResolver.DESCRIPTOR_OPTIONAL
.setDescriptor
in class BasicResolver
rule
- 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()
Validatable
IllegalStateException
if the current state is
not valid.validate
in interface Validatable
validate
in class AbstractResolver
public ResolvedResource findArtifactRef(Artifact artifact, java.util.Date date)
findArtifactRef
in class AbstractPatternsBasedResolver
public java.lang.String getTypeName()
getTypeName
in class URLResolver
Copyright ©2007-2020 The Apache Software Foundation, Licensed under Apache License, Version 2.0.