DefineArgument
public class UndefineArgument
extends java.lang.Object
Modifier | Constructor | Description |
---|---|---|
|
UndefineArgument() |
|
protected |
UndefineArgument(boolean isDefine) |
Modifier and Type | Method | Description |
---|---|---|
void |
execute() |
|
java.lang.String |
getName() |
Returns the name of the define
|
java.lang.String |
getValue() |
Returns the value of the define
|
boolean |
isActive(org.apache.tools.ant.Project p) |
Returns true if the define's if and unless conditions (if any) are
satisfied.
|
boolean |
isDefine() |
Returns true if this is a define, false if an undefine.
|
static UndefineArgument[] |
merge(UndefineArgument[] base,
UndefineArgument[] override) |
This method returns an array of UndefineArgument and DefineArgument's by
merging a base list with an override list.
|
void |
setIf(java.lang.String propName) |
Sets the property name for the 'if' condition.
|
void |
setName(java.lang.String name) |
Set the name attribute
|
void |
setUnless(java.lang.String propName) |
Set the property name for the 'unless' condition.
|
public UndefineArgument()
protected UndefineArgument(boolean isDefine)
public static UndefineArgument[] merge(UndefineArgument[] base, UndefineArgument[] override)
public void execute() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public final java.lang.String getName()
public java.lang.String getValue()
public final boolean isActive(org.apache.tools.ant.Project p) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- throws build exception if name is not setpublic final boolean isDefine()
public final void setIf(java.lang.String propName)
propName
- property namepublic final void setName(java.lang.String name)
public final void setUnless(java.lang.String propName)
propName
- name of propertyCopyright ? 2001-2017 Ant-Contrib project. All Rights Reserved.