Class 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 ExtensionResolver Resolver that just returns s specified location.
- 
- 
Constructor SummaryConstructors Constructor Description URLResolver()
 - 
Method SummaryModifier and Type Method Description java.io.Fileresolve(Extension extension, Project project)Returns the file resolved from URL and directoryvoidsetDestdir(java.io.File destdir)Sets the destination directoryvoidsetDestfile(java.io.File destfile)Sets the destination filevoidsetUrl(java.net.URL url)Sets the URLjava.lang.StringtoString()Returns a string representation of the URL
 
- 
- 
- 
Method Detail- 
setUrlpublic void setUrl(java.net.URL url) Sets the URL- Parameters:
- url- the url
 
 - 
setDestfilepublic void setDestfile(java.io.File destfile) Sets the destination file- Parameters:
- destfile- the destination file
 
 - 
setDestdirpublic void setDestdir(java.io.File destdir) Sets the destination directory- Parameters:
- destdir- the destination directory
 
 - 
resolvepublic java.io.File resolve(Extension extension, Project project) throws BuildException Returns the file resolved from URL and directory- Specified by:
- resolvein interface- ExtensionResolver
- Parameters:
- extension- the extension
- project- the project
- Returns:
- file the file resolved
- Throws:
- BuildException- if the URL is invalid
 
 - 
toStringpublic java.lang.String toString() Returns a string representation of the URL- Overrides:
- toStringin class- java.lang.Object
- Returns:
- the string representation
 
 
- 
 
-