public class ConditionalVariable extends org.apache.tools.ant.types.DataType
Constructor and Description |
---|
ConditionalVariable() |
Modifier and Type | Method and Description |
---|---|
String |
getIf()
Get the "if" condition flag.
|
String |
getKey()
Get the key.
|
String |
getUnless()
Get the "unless" condition flag.
|
String |
getValue()
Get the value.
|
void |
setFile(File file)
Set the value to a
File . |
void |
setFile(org.apache.tools.ant.types.Path path)
Set the value to a
Path . |
void |
setIf(String property)
Set the "if" condition.
|
void |
setKey(String key)
Set the key.
|
void |
setPath(org.apache.tools.ant.types.Path path)
Set the value to a
Path . |
void |
setUnless(String property)
Set the "unless" condition.
|
void |
setValue(String value)
Set the value.
|
public ConditionalVariable()
public String getUnless()
public void setFile(File file)
File
.file
- the File
for this variablepublic void setPath(org.apache.tools.ant.types.Path path)
Path
.path
- the Path
for this variablepublic void setIf(String property)
Task.execute()
method. If the
following conditions are true, the task should process this element:
property
- a property name or macropublic void setFile(org.apache.tools.ant.types.Path path)
Path
.path
- the Path
for this variablepublic void setUnless(String property)
Task.execute()
method. If the
following conditions are true, the task should ignore this element:
property
- a property name or macroCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.