| Modifier and Type | Class | Description |
|---|---|---|
static class |
Available.FileDir |
EnumeratedAttribute covering the file types to be checked for, either
file or dir.
|
description, location, project| Constructor | Description |
|---|---|
Available() |
| Modifier and Type | Method | Description |
|---|---|---|
Path |
createClasspath() |
Classpath to be used when searching for classes and resources.
|
Path |
createFilepath() |
Path to search for file resources.
|
boolean |
eval() |
Evaluate the availability of a resource.
|
void |
execute() |
Entry point when operating as a task.
|
void |
setClassname(java.lang.String classname) |
Set a classname of a class which must be available to set the given
property.
|
void |
setClasspath(Path classpath) |
Set the classpath to be used when searching for classes and resources.
|
void |
setClasspathRef(Reference r) |
Set the classpath by reference.
|
void |
setFile(java.io.File file) |
Set the file which must be present in the file system to set the given
property.
|
void |
setFilepath(Path filepath) |
Set the path to use when looking for a file.
|
void |
setIgnoresystemclasses(boolean ignore) |
Set whether the search for classes should ignore the runtime classes and
just use the given classpath.
|
void |
setProperty(java.lang.String property) |
Set the name of the property which will be set if the particular resource
is available.
|
void |
setResource(java.lang.String resource) |
Set the name of a Java resource which is required to set the property.
|
void |
setSearchParents(boolean searchParents) |
Set the searchParents attribute.
|
void |
setType(java.lang.String type) |
Deprecated.
since 1.5.x.
|
void |
setType(Available.FileDir type) |
Set what type of file is required - either directory or file.
|
void |
setValue(java.lang.Object value) |
Set the value to be given to the property if the desired resource is
available.
|
void |
setValue(java.lang.String value) |
Set the value to be given to the property if the desired resource is
available.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setSearchParents(boolean searchParents)
searchParents - the value to set.public void setClasspath(Path classpath)
classpath - an Ant Path object containing the search path.public Path createClasspath()
public void setClasspathRef(Reference r)
r - a Reference to a Path instance to be used as the classpath
value.public void setFilepath(Path filepath)
filepath - a Path instance containing the search path for files.public Path createFilepath()
public void setProperty(java.lang.String property)
property - the name of the property to set.public void setValue(java.lang.Object value)
value - the value to be given.public void setValue(java.lang.String value)
value - the value to be given.public void setClassname(java.lang.String classname)
classname - the name of the class required.public void setFile(java.io.File file)
file - the name of the file which is required.public void setResource(java.lang.String resource)
resource - the name of a resource which is required to be available.@Deprecated public void setType(java.lang.String type)
type - the type of resourcepublic void setType(Available.FileDir type)
type - an instance of the FileDir enumeratedAttribute indicating
whether the file required is to be a directory or a plain
file.public void setIgnoresystemclasses(boolean ignore)
ignore - true if system classes are to be ignored.public void execute()
throws BuildException
execute in class TaskBuildException - if the task is not configured correctly.public boolean eval()
throws BuildException
eval in interface ConditionBuildException - if the condition is not configured correctly