net.sf.antcontrib.cpptasks.types

Class ConditionalFileSet

public class ConditionalFileSet extends FileSet

An Ant FileSet object augmented with if and unless conditions.

Author: Curt Arnold

Constructor Summary
ConditionalFileSet()
Method Summary
voidexecute()
protected AbstractFileSetgetRef(Project p)
overrides FileSet's implementation which would throw an exception since the referenced object isn't this type.
booleanisActive()
Returns true if the Path's if and unless conditions (if any) are satisfied.
voidsetIf(String propName)
Sets the property name for the 'if' condition.
voidsetUnless(String propName)
Set the property name for the 'unless' condition.

Constructor Detail

ConditionalFileSet

public ConditionalFileSet()

Method Detail

execute

public void execute()

getRef

protected AbstractFileSet getRef(Project p)
overrides FileSet's implementation which would throw an exception since the referenced object isn't this type.

isActive

public boolean isActive()
Returns true if the Path's if and unless conditions (if any) are satisfied.

setIf

public void setIf(String propName)
Sets the property name for the 'if' condition. The fileset will be ignored unless the property is defined. The value of the property is insignificant, but values that would imply misinterpretation ("false", "no") will throw an exception when evaluated.

setUnless

public void setUnless(String propName)
Set the property name for the 'unless' condition. If named property is set, the fileset will be ignored. The value of the property is insignificant, but values that would imply misinterpretation ("false", "no") of the behavior will throw an exception when evaluated.

Parameters: propName name of property

Copyright ? 2001-2011 Ant-Contrib project. All Rights Reserved.