public final class DistributerMap
extends org.apache.tools.ant.types.DataType
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
canonicalPath
Canonical local file name.
|
private java.lang.String |
hosts
hosts that for which this map is valid.
|
private java.lang.String |
ifCond
if property.
|
private java.io.File |
localName
local directory name.
|
private java.lang.String |
remoteName
remote name.
|
private char |
remoteSeparator
Separator (/ or \) character on remote system.
|
private java.lang.String |
unlessCond
unless property.
|
Constructor and Description |
---|
DistributerMap()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Required by documentation generator.
|
java.io.File |
getLocal()
Gets local directory.
|
java.lang.String |
getRemote()
Gets remote name for directory.
|
boolean |
isActive()
Returns true if the if and unless conditions (if any) are
satisfied.
|
void |
setHosts(java.lang.String value)
Sets hosts for which this mapping is valid.
|
void |
setIf(java.lang.String propName)
Sets the property name for the 'if' condition.
|
void |
setLocal(java.io.File value)
Sets local directory for base of mapping.
|
void |
setRemote(java.lang.String value)
Sets remote name for directory.
|
void |
setRemoteSeparator(java.lang.String value)
Sets the separator character (/ or \) for the remote system.
|
void |
setUnless(java.lang.String propName)
Set the property name for the 'unless' condition.
|
java.lang.String |
toRemote(java.lang.String host,
java.io.File localFile)
Converts the local file name to the remote name for the same file.
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
private java.lang.String ifCond
private java.lang.String unlessCond
private java.io.File localName
private java.lang.String canonicalPath
private java.lang.String remoteName
private char remoteSeparator
private java.lang.String hosts
public void execute()
public boolean isActive()
public void setIf(java.lang.String propName)
propName
- property namepublic void setUnless(java.lang.String propName)
propName
- name of propertypublic java.io.File getLocal()
public java.lang.String getRemote()
public java.lang.String toRemote(java.lang.String host, java.io.File localFile)
host
- hostlocalFile
- local filepublic void setLocal(java.io.File value)
value
- valuepublic void setRemote(java.lang.String value)
value
- remote name for directorypublic void setRemoteSeparator(java.lang.String value)
value
- separator characterpublic void setHosts(java.lang.String value)
value
- hosts