| Modifier and Type | Field and Description |
|---|---|
| private boolean | checkExtension
Flag to indicate that you should check that the libraries resolved actually contain extension and if they don't then raise an exception. |
| private boolean | failOnError
Flag indicating whether or not you should throw a BuildException if you cannot resolve library. |
| private String | propertyName
The name of the property in which the location of library is stored. |
| private Extension | requiredExtension
The extension that is required. |
| private final List | resolvers
The set of resolvers to use to attempt to locate library. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addConfiguredAnt(final AntResolver
the AntResolver to generate the library. ant)Adds Ant resolver to run an Ant build file to generate a library. |
| public void | addConfiguredExtension(final ExtensionAdapter
Set the Extension looking for. extension)Set the Extension looking for. |
| public void | addConfiguredLocation(final LocationResolver
the resolver location to search. loc)Adds location resolver to look for a library in a location relative to project directory. |
| public void | addConfiguredUrl(final URLResolver
the URL resolver from which to download the library url)Adds a URL resolver to download a library from a URL to a local file. |
| private void | |
| public void | |
| private void | missingExtension()
Utility method that will throw a |
| public void | setCheckExtension(final boolean
if true, libraries returned by nested
resolvers should be checked to see if they supply extension. checkExtension)Check nested libraries for extensions |
| public void | setFailOnError(final boolean
if true, failure to locate library should fail build. failOnError)Set whether to fail if error. |
| private void | setLibraryProperty(final File
the library file)Utility method to set the appropriate property to indicate that specified file satisfies library requirements. |
| public void | setProperty(final String
The name of the property in which the location of
library is stored. property)The name of the property in which the location of library is stored. |
| private void |
| checkExtension | back to summary |
|---|---|
| private boolean checkExtension Flag to indicate that you should check that the libraries resolved actually contain extension and if they don't then raise an exception. | |
| failOnError | back to summary |
|---|---|
| private boolean failOnError Flag indicating whether or not you should throw a BuildException if you cannot resolve library. | |
| propertyName | back to summary |
|---|---|
| private String propertyName The name of the property in which the location of library is stored. | |
| requiredExtension | back to summary |
|---|---|
| private Extension requiredExtension The extension that is required. | |
| resolvers | back to summary |
|---|---|
| private final List<ExtensionResolver> resolvers The set of resolvers to use to attempt to locate library. | |
| JarLibResolveTask | back to summary |
|---|---|
| public JarLibResolveTask() | |
| addConfiguredAnt | back to summary |
|---|---|
| public void addConfiguredAnt(final AntResolver ant) Adds Ant resolver to run an Ant build file to generate a library.
| |
| addConfiguredExtension | back to summary |
|---|---|
| public void addConfiguredExtension(final ExtensionAdapter extension) Set the Extension looking for.
| |
| addConfiguredLocation | back to summary |
|---|---|
| public void addConfiguredLocation(final LocationResolver loc) Adds location resolver to look for a library in a location relative to project directory.
| |
| addConfiguredUrl | back to summary |
|---|---|
| public void addConfiguredUrl(final URLResolver url) Adds a URL resolver to download a library from a URL to a local file.
| |
| checkExtension | back to summary |
|---|---|
| private void checkExtension(final File file) Check if specified file satisfies extension. If it does then set the relevant property else throw a BuildException.
| |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. Execute the task.
| |
| missingExtension | back to summary |
|---|---|
| private void missingExtension() Utility method that will throw a | |
| setCheckExtension | back to summary |
|---|---|
| public void setCheckExtension(final boolean checkExtension) Check nested libraries for extensions
| |
| setFailOnError | back to summary |
|---|---|
| public void setFailOnError(final boolean failOnError) Set whether to fail if error.
| |
| setLibraryProperty | back to summary |
|---|---|
| private void setLibraryProperty(final File file) Utility method to set the appropriate property to indicate that specified file satisfies library requirements.
| |
| setProperty | back to summary |
|---|---|
| public void setProperty(final String property) The name of the property in which the location of library is stored.
| |
| validate | back to summary |
|---|---|
| private void validate() throws BuildException Validate the tasks parameters.
| |