|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.commons.launcher.types.ConditionalArgument
public class ConditionalArgument
A class that represents nested <arg> or <jvmarg> elements. This class provides the same functionality as the class that represents these same elements in a "java" task. In addition, this class supports conditional "if" and "unless" attributes.
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.types.DataType |
---|
checked, ref |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
ConditionalArgument()
|
Method Summary | |
---|---|
java.lang.String |
getIf()
Get the "if" condition flag. |
java.lang.String[] |
getParts()
Get a single command line argument. |
java.lang.String |
getUnless()
Get the "unless" condition flag. |
void |
setFile(java.io.File file)
Set a single command line argument to the absolute filename of the specified file. |
void |
setIf(java.lang.String property)
Set the "if" condition. |
void |
setLine(java.lang.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(java.lang.String property)
Set the "unless" condition. |
void |
setValue(java.lang.String value)
Set a single command line argument. |
Methods inherited from class org.apache.tools.ant.types.DataType |
---|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConditionalArgument()
Method Detail |
---|
public java.lang.String getIf()
public java.lang.String[] getParts()
public java.lang.String getUnless()
public void setFile(java.io.File file)
file
- a single command line argumentpublic void setIf(java.lang.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(java.lang.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(java.lang.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(java.lang.String value)
value
- a single command line argument
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |