IncludePath
, SystemIncludePath
public 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, tooManyAttributes
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
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 propertyCopyright ? 2001-2017 Ant-Contrib project. All Rights Reserved.