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

public Class CloseResources

extends Task
Class Inheritance
Imports
java.io.IOException, java.net.URL, org.apache.tools.ant.Task, org.apache.tools.ant.types.Resource, .ResourceCollection, org.apache.tools.ant.types.resources.URLProvider, .Union, org.apache.tools.ant.util.FileUtils

Not a real task but used during tests. Closes the resources associated with an URL. In particular this is going to close the jars associated with a jar:file: URL - and it does so in a way that the Java VM still thinks it is open, so use it at your own risk.

Field Summary

Modifier and TypeField and Description
private Union
Inherited from org.apache.tools.ant.Task:
targettaskNametaskTypewrapper

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
execute()

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

Called by the project to let the task do its work.
Inherited from org.apache.tools.ant.Task:
bindToOwnergetOwningTargetgetRuntimeConfigurableWrappergetTaskNamegetTaskTypegetWrapperhandleErrorFlushhandleErrorOutputhandleFlushhandleInputhandleOutputinitisInvalidloglogloglogmaybeConfigureperformreconfiguresetOwningTargetsetRuntimeConfigurableWrappersetTaskNamesetTaskType

Field Detail

resourcesback to summary
private Union resources

Constructor Detail

CloseResourcesback to summary
public CloseResources()

Method Detail

addback to summary
public void add(ResourceCollection rc)
executeback to summary
public void execute()

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

Doc from org.apache.tools.ant.Task.execute.

Called by the project to let the task do its work. This method may be called more than once, if the task is invoked more than once. For example, if target1 and target2 both depend on target3, then running "ant target1 target2" will run all tasks in target3 twice.