|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xmlcalabash.drivers.CalabashTask.Port
public static class CalabashTask.Port
The Port inner class used to represent input and output ports.
Constructor Summary | |
---|---|
CalabashTask.Port()
|
Method Summary | |
---|---|
void |
add(org.apache.tools.ant.util.FileNameMapper fileNameMapper)
Adds a nested filenamemapper. |
void |
add(org.apache.tools.ant.types.ResourceCollection rc)
Adds a collection of resources to process in addition to the given file or the implicit fileset. |
void |
addMapper(org.apache.tools.ant.types.Mapper mapper)
Defines the mapper to map source to destination files. |
org.apache.tools.ant.util.FileNameMapper |
getMapper()
Get the port's Mapper element, if any |
java.lang.String |
getPort()
Get the port name |
org.apache.tools.ant.types.resources.Union |
getResources()
Get the port's resources |
void |
setIf(java.lang.Object ifCond)
Set whether this input should be used. |
void |
setIf(java.lang.String ifProperty)
Set whether this input should be used. |
void |
setPort(java.lang.String port)
Set the input port. |
void |
setProject(org.apache.tools.ant.Project project)
Set the current project |
void |
setUnless(java.lang.Object unlessCond)
Set whether this input should NOT be used. |
void |
setUnless(java.lang.String unlessProperty)
Set whether this input should NOT be used. |
boolean |
shouldUse()
Ensures that the input passes the conditions placed on it with if and unless properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CalabashTask.Port()
Method Detail |
---|
public void setProject(org.apache.tools.ant.Project project)
project
- the current projectpublic void setPort(java.lang.String port)
port
- the name of the port.public void add(org.apache.tools.ant.types.ResourceCollection rc)
rc
- the collection of resources to usepublic void addMapper(org.apache.tools.ant.types.Mapper mapper) throws org.apache.tools.ant.BuildException
mapper
- the mapper to use
org.apache.tools.ant.BuildException
- if more than one mapper is definedpublic void add(org.apache.tools.ant.util.FileNameMapper fileNameMapper) throws org.apache.tools.ant.BuildException
fileNameMapper
- the mapper to add
org.apache.tools.ant.BuildException
- if more than one mapper is definedpublic java.lang.String getPort()
public org.apache.tools.ant.types.resources.Union getResources()
public org.apache.tools.ant.util.FileNameMapper getMapper()
public void setIf(java.lang.Object ifCond)
ifCond
- evaluated expressionpublic void setIf(java.lang.String ifProperty)
ifProperty
- evaluated expressionpublic void setUnless(java.lang.Object unlessCond)
unlessCond
- evaluated expressionpublic void setUnless(java.lang.String unlessProperty)
unlessProperty
- evaluated expressionpublic boolean shouldUse()
if
and unless
properties.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |