org.freecompany.imp
Class Resolve

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.freecompany.imp.Resolve
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
Dependency, Load

public class Resolve
extends org.apache.tools.ant.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  java.io.File file
           
protected  java.util.logging.Logger logger
           
protected  java.lang.String name
           
protected  java.lang.String path
           
protected  java.lang.String uri
           
protected  java.net.URL url
           
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
Resolve()
           
 
Method Summary
 void execute()
          Resolves a given URI relative to the project module URL.
protected  java.lang.String getBinding()
          Defines the name attribute as being requires for this class.
 java.io.File getFile()
           
 java.lang.String getPath()
           
 java.lang.String getUri()
           
 java.net.URL getUrl()
           
protected  java.io.File load(java.net.URL url)
           
 void setName(java.lang.String name)
           
 void setUri(java.lang.String uri)
           
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final java.util.logging.Logger logger

name

protected java.lang.String name

uri

protected java.lang.String uri

path

protected java.lang.String path

file

protected java.io.File file

url

protected java.net.URL url
Constructor Detail

Resolve

public Resolve()
Method Detail

load

protected java.io.File load(java.net.URL url)
                     throws java.net.MalformedURLException,
                            java.net.URISyntaxException,
                            java.io.IOException
Throws:
java.net.MalformedURLException
java.net.URISyntaxException
java.io.IOException

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Resolves a given URI relative to the project module URL.

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

setName

public void setName(java.lang.String name)

setUri

public void setUri(java.lang.String uri)

getUri

public java.lang.String getUri()

getUrl

public java.net.URL getUrl()

getFile

public java.io.File getFile()

getPath

public java.lang.String getPath()

getBinding

protected java.lang.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.