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

public Class JarLibDisplayTask

extends Task
Class Inheritance
Imports
java.io.File, java.util.List, .Vector, org.apache.tools.ant.BuildException, .DirectoryScanner, .Task, org.apache.tools.ant.types.FileSet

Displays the "Optional Package" and "Package Specification" information contained within the specified JARs.

Prior to JDK1.3, an "Optional Package" was known as an Extension. The specification for this mechanism is available in the JDK1.3 documentation in the directory $JDK_HOME/docs/guide/extensions/versioning.html. Alternatively it is available online at https://docs.oracle.com/javase/8/docs/technotes/guides/extensions/versioning.html.

Field Summary

Modifier and TypeField and Description
private File
libraryFile

The library to display information about.

private final List<FileSet>
libraryFileSets

Filesets specifying all the libraries to display information about.

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addFileset(final FileSet
a set of files about which library data will be displayed.
fileSet
)

Adds a set of files about which library data will be displayed.

public void
execute()

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

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

The JAR library to display information for.

private void
validate()

Validate the tasks parameters.

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

Field Detail

libraryFileback to summary
private File libraryFile

The library to display information about.

libraryFileSetsback to summary
private final List<FileSet> libraryFileSets

Filesets specifying all the libraries to display information about.

Constructor Detail

JarLibDisplayTaskback to summary
public JarLibDisplayTask()

Method Detail

addFilesetback to summary
public void addFileset(final FileSet fileSet)

Adds a set of files about which library data will be displayed.

Parameters
fileSet:FileSet

a set of files about which library data will be displayed.

executeback to summary
public void execute() throws BuildException

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

Execute the task.

Annotations
@Override
Exceptions
BuildException:
if the task fails.
setFileback to summary
public void setFile(final File file)

The JAR library to display information for.

Parameters
file:File

The jar library to display information for.

validateback to summary
private void validate() throws BuildException

Validate the tasks parameters.

Exceptions
BuildException:
if invalid parameters found