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

public Class Local

extends Task
Class Inheritance
Imports
java.util.LinkedHashSet, .Set, java.util.function.Consumer, org.apache.tools.ant.BuildException, .Task, org.apache.tools.ant.property.LocalProperties

Task to create local properties in the current scope.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
Local.Name

Nested name element.

Field Summary

Modifier and TypeField and Description
private String
private final Set<Local.Name>
Inherited from org.apache.tools.ant.Task:
targettaskNametaskTypewrapper

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Local.Name

Returns:

Name
createName
()

Create a nested name element.

public void
execute()

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

Run the task.
public void
setName(String
the name of the local property.
name
)

Set the name attribute.

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

Field Detail

nameback to summary
private String name
nameElementsback to summary
private final Set<Local.Name> nameElements

Constructor Detail

Localback to summary
public Local()

Method Detail

createNameback to summary
public Local.Name createName()

Create a nested name element.

Returns:Local.Name

Name

Since
Ant 1.10.13
executeback to summary
public void execute()

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

Run the task.

setNameback to summary
public void setName(String name)

Set the name attribute.

Parameters
name:String

the name of the local property.

org.apache.tools.ant.taskdefs back to summary

public Class Local.Name

extends Object
implements Consumer<LocalProperties>
Class Inheritance
All Implemented Interfaces
java.util.function.Consumer

Nested name element.
Since
Ant 1.10.13

Field Summary

Modifier and TypeField and Description
private String

Constructor Summary

AccessConstructor and Description
public
Name()

Method Summary

Modifier and TypeMethod and Description
public void
accept(LocalProperties
the input argument
localProperties
)

Implements java.util.function.Consumer.accept.

Performs this operation on the given argument.
public void
addText(String text)

Set the property name.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

textback to summary
private String text

Constructor Detail

Nameback to summary
public Name()

Method Detail

acceptback to summary
public void accept(LocalProperties localProperties)

Implements java.util.function.Consumer.accept.

Doc from java.util.function.Consumer.accept.

Performs this operation on the given argument.

Parameters
localProperties:LocalProperties

the input argument

Annotations
@Override
addTextback to summary
public void addText(String text)

Set the property name.