org.apache.tools.ant.taskdefs.condition

Class IsSet

Implemented Interfaces:
Condition

public class IsSet
extends ProjectComponent
implements Condition

Condition that tests whether a given property has been set.

Since:
Ant 1.5

Field Summary

Fields inherited from class org.apache.tools.ant.ProjectComponent

project

Method Summary

boolean
eval()
void
setProperty(String p)
Set the property attribute

Methods inherited from class org.apache.tools.ant.ProjectComponent

getProject, log, log, setProject

Method Details

eval

public boolean eval()
            throws BuildException
Specified by:
eval in interface Condition

Returns:
true if the property exists

Throws:
BuildException - if the property attribute is not set


setProperty

public void setProperty(String p)
Set the property attribute

Parameters:
p - the property name


Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.