org.apache.tools.ant.taskdefs.optional.extension.resolversClass URLResolver
- java.lang.Object
- org.apache.tools.ant.taskdefs.optional.extension.resolvers.URLResolver
- All Implemented Interfaces:
- ExtensionResolver
public class URLResolver extends java.lang.Object implements ExtensionResolverResolver that just returns s specified location.
Constructor Summary
Constructors Constructor and Description URLResolver()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.io.File
resolve(Extension extension, Project project)
Returns the file resolved from URL and directoryvoid
setDestdir(java.io.File destdir)
Sets the destination directoryvoid
setDestfile(java.io.File destfile)
Sets the destination filevoid
setUrl(java.net.URL url)
Sets the URLjava.lang.String
toString()
Returns a string representation of the URL
Method Detail
setUrl
public void setUrl(java.net.URL url)Sets the URL
- Parameters:
url
- the url
setDestfile
public void setDestfile(java.io.File destfile)Sets the destination file
- Parameters:
destfile
- the destination file
setDestdir
public void setDestdir(java.io.File destdir)Sets the destination directory
- Parameters:
destdir
- the destination directory
resolve
public java.io.File resolve(Extension extension, Project project) throws BuildExceptionReturns the file resolved from URL and directory
- Specified by:
resolve
in interfaceExtensionResolver
- Parameters:
extension
- the extensionproject
- the project- Returns:
- file the file resolved
- Throws:
BuildException
- if the URL is invalid
toString
public java.lang.String toString()Returns a string representation of the URL
- Overrides:
toString
in classjava.lang.Object
- Returns:
- the string representation