org.apache.tools.ant.taskdefs.optional.extension.resolvers

Class URLResolver

Implemented Interfaces:
ExtensionResolver

public class URLResolver
extends java.lang.Object
implements ExtensionResolver

Resolver that just returns s specified location.

Method Summary

File
resolve(Extension extension, Project project)
Returns the file resolved from URL and directory
void
setDestdir(File destdir)
Sets the destination directory
void
setDestfile(File destfile)
Sets the destination file
void
setUrl(URL url)
Sets the URL
String
toString()
Returns a string representation of the URL

Method Details

resolve

public File resolve(Extension extension,
                    Project project)
            throws BuildException
Returns the file resolved from URL and directory
Specified by:
resolve in interface ExtensionResolver

Parameters:
extension - the extention
project - the project

Returns:
file the file resolved

Throws:
BuildException - if the URL is invalid


setDestdir

public void setDestdir(File destdir)
Sets the destination directory

Parameters:
destdir - the destination directory


setDestfile

public void setDestfile(File destfile)
Sets the destination file

Parameters:
destfile - the destination file


setUrl

public void setUrl(URL url)
Sets the URL

Parameters:
url - the url


toString

public String toString()
Returns a string representation of the URL

Returns:
the string representation


Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.