java.lang.Cloneable, java.lang.Iterable<org.apache.tools.ant.types.Resource>, org.apache.tools.ant.types.ResourceCollectionIncludePath, SystemIncludePathpublic class ConditionalPath
extends org.apache.tools.ant.types.Path
| Constructor | Description |
|---|---|
ConditionalPath(org.apache.tools.ant.Project project) |
|
ConditionalPath(org.apache.tools.ant.Project p,
java.lang.String path) |
| Modifier and Type | Method | 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.
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, 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, translatePathpublic 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.BuildExceptionpublic void setIf(java.lang.String propName)
propName - property namepublic void setUnless(java.lang.String propName)
propName - name of propertyCopyright ? 2001-2018 Ant-Contrib project. All Rights Reserved.