Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.optional.extension

public Class JarLibAvailableTask

extends Task
Class Inheritance
Imports
java.io.File, java.util.List, .Vector, java.util.stream.Stream, org.apache.tools.ant.BuildException, .Project, .Task

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

Field Summary

Modifier and TypeField and Description
private final List<ExtensionSet>
extensionFileSets

Filesets specifying all the libraries to display information about.

private File
libraryFile

The library to display information about.

private String
propertyName

The name of the property to set if extension is available.

private ExtensionAdapter
requiredExtension

The extension that is required.

Inherited from org.apache.tools.ant.Task:
targettaskNametaskTypewrapper

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addConfiguredExtension(final ExtensionAdapter
Set the Extension looking for.
extension
)

Set the Extension looking for.

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

Adds a set of extensions to search in.

public void
execute()

Overrides org.apache.tools.ant.Task.execute.

Execute the task.
public void
setFile(final File
The jar library to check.
file
)

The JAR library to check.

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

The name of property to set if extensions are available.

private void
validate()

Validate the tasks parameters.

Inherited from org.apache.tools.ant.Task:
bindToOwnergetOwningTargetgetRuntimeConfigurableWrappergetTaskNamegetTaskTypegetWrapperhandleErrorFlushhandleErrorOutputhandleFlushhandleInputhandleOutputinitisInvalidloglogloglogmaybeConfigureperformreconfiguresetOwningTargetsetRuntimeConfigurableWrappersetTaskNamesetTaskType

Field Detail

extensionFileSetsback to summary
private final List<ExtensionSet> extensionFileSets

Filesets specifying all the libraries to display information about.

libraryFileback to summary
private File libraryFile

The library to display information about.

propertyNameback to summary
private String propertyName

The name of the property to set if extension is available.

requiredExtensionback to summary
private ExtensionAdapter requiredExtension

The extension that is required.

Constructor Detail

JarLibAvailableTaskback to summary
public JarLibAvailableTask()

Method Detail

addConfiguredExtensionback to summary
public void addConfiguredExtension(final ExtensionAdapter extension)

Set the Extension looking for.

Parameters
extension:ExtensionAdapter

Set the Extension looking for.

addConfiguredExtensionSetback to summary
public void addConfiguredExtensionSet(final ExtensionSet extensionSet)

Adds a set of extensions to search in.

Parameters
extensionSet:ExtensionSet

a set of extensions to search in.

executeback to summary
public void execute() throws BuildException

Overrides org.apache.tools.ant.Task.execute.

Execute the task.

Annotations
@Override
Exceptions
BuildException:
if something goes wrong.
setFileback to summary
public void setFile(final File file)

The JAR library to check.

Parameters
file:File

The jar library to check.

setPropertyback to summary
public void setProperty(final String property)

The name of property to set if extensions are available.

Parameters
property:String

The name of property to set if extensions is available.

validateback to summary
private void validate() throws BuildException

Validate the tasks parameters.

Exceptions
BuildException:
if invalid parameters found