public class ConditionalPath
extends org.apache.tools.ant.types.Path
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
ifCond |
private java.lang.String |
unlessCond |
Constructor and Description |
---|
ConditionalPath(org.apache.tools.ant.Project project) |
ConditionalPath(org.apache.tools.ant.Project p,
java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
boolean |
isActive(org.apache.tools.ant.Project p)
Returns true if the Path's if and unless conditions (if any) are
satisfied.
|
void |
setIf(java.lang.String propName)
Sets the property name for the 'if' condition.
|
void |
setUnless(java.lang.String propName)
Set the property name for the 'unless' condition.
|
add, add, addDirset, addExisting, addExisting, addExtdirs, addFilelist, addFileset, addJavaRuntime, append, assertFilesystemOnly, clone, concatSystemBootClasspath, concatSystemClasspath, concatSystemClasspath, createPath, createPathElement, delegateIteratorToList, dieOnCircularReference, isFilesystemOnly, iterator, list, setCache, setLocation, setPath, setRefid, size, toString, translateFile, translateFileSep, translatePath
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public ConditionalPath(org.apache.tools.ant.Project project)
public ConditionalPath(org.apache.tools.ant.Project p, java.lang.String path)
public boolean isActive(org.apache.tools.ant.Project p) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public void setIf(java.lang.String propName)
propName
- property namepublic void setUnless(java.lang.String propName)
propName
- name of property