Class DistributerDef
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
net.sf.antcontrib.cpptasks.DistributerDef
- All Implemented Interfaces:
Cloneable
public final class DistributerDef
extends org.apache.tools.ant.types.DataType
Distributed build information (Non-functional prototype).
-
Field Summary
Fields inherited from class org.apache.tools.ant.types.DataType
checked, refFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLocal to remote filename maps.voidexecute()Required by documentation generator.getHosts()Gets hosts.Gets protocol.intGets tcp cork.booleanisActive()Returns true if the if and unless conditions (if any) are satisfied.voidSets hosts.voidSets an id that can be used to reference this element.voidSets the property name for the 'if' condition.voidSets protocol.voidsetRefid(org.apache.tools.ant.types.Reference r) Specifies that this element should behave as if the content of the element with the matching id attribute was inserted at this location.voidsetTcpcork(int value) Sets TCP_CORK value.voidSet the property name for the 'unless' condition.voidSets remote user name.Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes, toStringMethods inherited from class org.apache.tools.ant.ProjectComponent
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
-
Constructor Details
-
DistributerDef
public DistributerDef()Constructor.
-
-
Method Details
-
execute
public void execute()Required by documentation generator. -
isActive
public boolean isActive()Returns true if the if and unless conditions (if any) are satisfied.- Returns:
- true if definition is active.
-
setId
Sets an id that can be used to reference this element.- Parameters:
id- id
-
setIf
Sets the property name for the 'if' condition. The define 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.- Parameters:
propName- property name
-
setRefid
public void setRefid(org.apache.tools.ant.types.Reference r) Specifies that this element should behave as if the content of the element with the matching id attribute was inserted at this location. If specified, no other attributes should be specified.- Overrides:
setRefidin classorg.apache.tools.ant.types.DataType- Parameters:
r- reference name
-
setUnless
Set the property name for the 'unless' condition. If named property is set, the define 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
-
getHosts
-
getTcpcork
public int getTcpcork()Gets tcp cork.- Returns:
- TCP_CORK value.
-
getProtocol
-
setHosts
-
setTcpcork
public void setTcpcork(int value) Sets TCP_CORK value.- Parameters:
value- new value
-
setProtocol
-
createMap
-
setUser
-