org.apache.ivy.plugins.resolver.packager

Class PackagerResolver

public class PackagerResolver extends URLResolver

Resolver that performs a "build" operation to resolve artifacts.

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.

Constructor Summary
PackagerResolver()
Method Summary
protected voidclearCache()
protected ResolvedResourcefindArtifactRef(Artifact artifact, Date date)
FilegetBuildRoot()
Returns root directory under which builds take place.
FilegetResourceCache()
Get resource cache directory.
StringgetTypeName()
voidsetAllownomd(boolean b)
voidsetBuildRoot(File buildRoot)
Set root directory under which builds take place.
voidsetDescriptor(String rule)
voidsetPackagerPattern(String pattern)
Set pattern for locating "packager.xml" files.
voidsetPreserveBuildDirectories(boolean preserve)
Set whether to preserve build directories.
voidsetProperty(String propertyKey, String propertyValue)
Sets a property to be passed to the child Ant build responsible for packaging the dependency.
voidsetQuiet(boolean quiet)
Set whether to run ant with the -quiet flag.
voidsetResourceCache(File resourceCache)
Set resource cache directory.
voidsetResourceURL(String resourceURL)
Set base resource override URL pattern.
voidsetRestricted(boolean restricted)
Set whether to enable restricted mode.
voidsetValidate(boolean validate)
Set whether to validate downloaded packager.xml files.
voidsetVerbose(boolean verbose)
Set whether to run ant with the -verbose flag.
voidvalidate()

Constructor Detail

PackagerResolver

public PackagerResolver()

Method Detail

clearCache

protected void clearCache()

findArtifactRef

protected ResolvedResource findArtifactRef(Artifact artifact, Date date)

getBuildRoot

public File getBuildRoot()
Returns root directory under which builds take place.

getResourceCache

public File getResourceCache()
Get resource cache directory.

getTypeName

public String getTypeName()

setAllownomd

public void setAllownomd(boolean b)

setBuildRoot

public void setBuildRoot(File buildRoot)
Set root directory under which builds take place.

setDescriptor

public void setDescriptor(String rule)

setPackagerPattern

public void setPackagerPattern(String pattern)
Set pattern for locating "packager.xml" files.

setPreserveBuildDirectories

public void setPreserveBuildDirectories(boolean preserve)
Set whether to preserve build directories. Default is false.

setProperty

public void setProperty(String propertyKey, String propertyValue)
Sets a property to be passed to the child Ant build responsible for packaging the dependency.

Parameters: propertyKey the property to pass propertyValue the value of the property to pass

setQuiet

public void setQuiet(boolean quiet)
Set whether to run ant with the -quiet flag. Default is false.

setResourceCache

public void setResourceCache(File resourceCache)
Set resource cache directory.

setResourceURL

public void setResourceURL(String resourceURL)
Set base resource override URL pattern.

setRestricted

public void setRestricted(boolean restricted)
Set whether to enable restricted mode. Default is true.

setValidate

public void setValidate(boolean validate)
Set whether to validate downloaded packager.xml files. Default is true.

setVerbose

public void setVerbose(boolean verbose)
Set whether to run ant with the -verbose flag. Default is false.

validate

public void validate()