public class ConditionalArgument
extends org.apache.tools.ant.types.DataType
Constructor and Description |
---|
ConditionalArgument() |
Modifier and Type | Method and Description |
---|---|
String |
getIf()
Get the "if" condition flag.
|
String[] |
getParts()
Get a single command line argument.
|
String |
getUnless()
Get the "unless" condition flag.
|
void |
setFile(File file)
Set a single command line argument to the absolute
filename of the specified file.
|
void |
setIf(String property)
Set the "if" condition.
|
void |
setLine(String line)
Set a line to split into several command line arguments.
|
void |
setPath(org.apache.tools.ant.types.Path path)
Set a single command line argument and treat it like a path.
|
void |
setUnless(String property)
Set the "unless" condition.
|
void |
setValue(String value)
Set a single command line argument.
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
public String getIf()
public String[] getParts()
public String getUnless()
public void setFile(File file)
file
- a single command line argumentpublic 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 setLine(String line)
line
- line to split into several commandline argumentspublic void setPath(org.apache.tools.ant.types.Path path)
path
- a single command line argumentpublic void setUnless(String property)
Task.execute()
method. If the
following conditions are true, the task should ignore this element:
property
- a property name or macropublic void setValue(String value)
value
- a single command line argumentCopyright © 2002–2016 The Apache Software Foundation. All rights reserved.