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

public Class IsSet

extends ProjectComponent
implements Condition
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.taskdefs.condition.Condition
Imports
org.apache.tools.ant.BuildException, .ProjectComponent

Condition that tests whether a given property has been set.
Since
Ant 1.5

Field Summary

Modifier and TypeField and Description
private String
Inherited from org.apache.tools.ant.ProjectComponent:
descriptionlocationproject

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the property exists
eval
()

Implements org.apache.tools.ant.taskdefs.condition.Condition.eval.

Is this condition true?
public void
setProperty(String
the property name
p
)

Set the property attribute

Inherited from org.apache.tools.ant.ProjectComponent:
clonegetDescriptiongetLocationgetProjectloglogsetDescriptionsetLocationsetProject

Field Detail

propertyback to summary
private String property

Constructor Detail

IsSetback to summary
public IsSet()

Method Detail

evalback to summary
public boolean eval() throws BuildException

Implements org.apache.tools.ant.taskdefs.condition.Condition.eval.

Doc from org.apache.tools.ant.taskdefs.condition.Condition.eval.

Is this condition true?

Returns:boolean

true if the property exists

Annotations
@Override
Exceptions
BuildException:
if the property attribute is not set
setPropertyback to summary
public void setProperty(String p)

Set the property attribute

Parameters
p:String

the property name