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

Class JarLibAvailableTask

public class JarLibAvailableTask extends Task

Checks whether an extension is present in a fileset or an extensionSet.

UNKNOWN: name="jarlib-available"

Method Summary
voidaddConfiguredExtension(ExtensionAdapter extension)
Set the Extension looking for.
voidaddConfiguredExtensionSet(ExtensionSet extensionSet)
Adds a set of extensions to search in.
voidexecute()
Execute the task.
voidsetFile(File file)
The JAR library to check.
voidsetProperty(String property)
The name of property to set if extensions are available.

Method Detail

addConfiguredExtension

public void addConfiguredExtension(ExtensionAdapter extension)
Set the Extension looking for.

Parameters: extension Set the Extension looking for.

addConfiguredExtensionSet

public void addConfiguredExtensionSet(ExtensionSet extensionSet)
Adds a set of extensions to search in.

Parameters: extensionSet a set of extensions to search in.

execute

public void execute()
Execute the task.

Throws: BuildException if somethign goes wrong.

setFile

public void setFile(File file)
The JAR library to check.

Parameters: file The jar library to check.

setProperty

public void setProperty(String property)
The name of property to set if extensions are available.

Parameters: property The name of property to set if extensions is available.