Class URLResolver
java.lang.Object
org.apache.tools.ant.taskdefs.optional.extension.resolvers.URLResolver
- All Implemented Interfaces:
- ExtensionResolver
Resolver that just returns s specified location.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the file resolved from URL and directoryvoidsetDestdir(File destdir) Sets the destination directoryvoidsetDestfile(File destfile) Sets the destination filevoidSets the URLtoString()Returns a string representation of the URL
- 
Constructor Details- 
URLResolverpublic URLResolver()
 
- 
- 
Method Details- 
setUrlSets the URL- Parameters:
- url- the url
 
- 
setDestfileSets the destination file- Parameters:
- destfile- the destination file
 
- 
setDestdirSets the destination directory- Parameters:
- destdir- the destination directory
 
- 
resolveReturns 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
 
- 
toStringReturns a string representation of the URL
 
-