org.apache.tools.ant.taskdefs.optional.dotnet
Class DotnetDefine
java.lang.Object
org.apache.tools.ant.taskdefs.optional.dotnet.DotnetDefine
public class DotnetDefine
extends java.lang.Object
definitions can be conditional. What .NET conditions can not be
is in any state other than defined and undefined; you cannot give
a definition a value.
String | getName()
|
String | getValue(Task owner) - This method gets the value of this definition.
|
boolean | isSet(Task owner) - logic taken from patternset
|
void | setIf(String condition) - the name of a property which must be defined for
the definition to be set.
|
void | setName(String name) - the name of the definition.
|
void | setUnless(String condition) - the name of a property which must be undefined for
the definition to be set.
|
getName
public String getName()
getValue
public String getValue(Task owner)
throws BuildException
This method gets the value of this definition. Will be null if a condition
was declared and not met
- The value of the definition.
isSet
public boolean isSet(Task owner)
logic taken from patternset
- true if the condition is valid
setIf
public void setIf(String condition)
the name of a property which must be defined for
the definition to be set. Optional.
condition
- the name of the property
setName
public void setName(String name)
the name of the definition. Required.
setUnless
public void setUnless(String condition)
the name of a property which must be undefined for
the definition to be set. Optional.
condition
- the name of the property
Copyright B) 2000-2008 Apache Software Foundation. All Rights Reserved.