org.freecompany.imp

Class Resolve

public class Resolve extends Task

Locally caches a remote resource and makes it available within the build system by an Ant property. The name of the property is either the provided name attribute, or else the name of the artifact the URI points to.
Field Summary
protected Filefile
protected Loggerlogger
protected Stringname
protected Stringpath
protected Stringuri
protected URLurl
Method Summary
voidexecute()
Resolves a given URI relative to the project module URL.
protected StringgetBinding()
Defines the name attribute as being requires for this class.
FilegetFile()
StringgetPath()
StringgetUri()
URLgetUrl()
protected Fileload(URL url)
voidsetName(String name)
voidsetUri(String uri)

Field Detail

file

protected File file

logger

protected final Logger logger

name

protected String name

path

protected String path

uri

protected String uri

url

protected URL url

Method Detail

execute

public void execute()
Resolves a given URI relative to the project module URL.

getBinding

protected String getBinding()
Defines the name attribute as being requires for this class. Subclasses which do not want to automatically bind to an Ant property can make this optional.

getFile

public File getFile()

getPath

public String getPath()

getUri

public String getUri()

getUrl

public URL getUrl()

load

protected File load(URL url)

setName

public void setName(String name)

setUri

public void setUri(String uri)