|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.taskdefs.optional.dotnet.DotnetDefine
public class DotnetDefine
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.
Constructor Summary | |
---|---|
DotnetDefine()
|
Method Summary | |
---|---|
java.lang.String |
getName()
Get the name of the definition. |
java.lang.String |
getValue(Task owner)
This method gets the value of this definition. |
boolean |
isSet(Task owner)
logic taken from patternset |
void |
setIf(java.lang.String condition)
the name of a property which must be defined for the definition to be set. |
void |
setName(java.lang.String name)
the name of the definition. |
void |
setUnless(java.lang.String condition)
the name of a property which must be undefined for the definition to be set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DotnetDefine()
Method Detail |
---|
public void setIf(java.lang.String condition)
condition
- the name of the propertypublic void setUnless(java.lang.String condition)
condition
- the name of the propertypublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the name value.public java.lang.String getValue(Task owner) throws BuildException
owner
- owning task
BuildException
- if there is an error.public boolean isSet(Task owner)
owner
- the owning task.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |