org.codehaus.cargo.util
Class DefaultAntTaskFactory
java.lang.Object
org.codehaus.cargo.util.DefaultAntTaskFactory
- All Implemented Interfaces:
- AntTaskFactory
- public class DefaultAntTaskFactory
- extends java.lang.Object
- implements AntTaskFactory
Default AntTaskFactory
for creating Ant tasks.
- Version:
- $Id: DefaultAntTaskFactory.java 1273 2007-01-21 14:42:38Z vmassol $
Constructor Summary |
DefaultAntTaskFactory(org.apache.tools.ant.Project project)
Constructor using default values for the current task name, current location and current
target. |
DefaultAntTaskFactory(org.apache.tools.ant.Project project,
java.lang.String currentTaskName,
org.apache.tools.ant.Location currentLocation,
org.apache.tools.ant.Target currentTarget)
|
Method Summary |
org.apache.tools.ant.Task |
createTask(java.lang.String theName)
Returns the task that is mapped to the specified name.
Implementations of this interface should correctly initialize the task by
setting the name, the project and optionally the owning target. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAntTaskFactory
public DefaultAntTaskFactory(org.apache.tools.ant.Project project)
- Constructor using default values for the current task name, current location and current
target.
- Parameters:
project
- the Ant project used when creating Ant tasks
DefaultAntTaskFactory
public DefaultAntTaskFactory(org.apache.tools.ant.Project project,
java.lang.String currentTaskName,
org.apache.tools.ant.Location currentLocation,
org.apache.tools.ant.Target currentTarget)
- Parameters:
project
- the Ant project used when creating Ant taskscurrentTaskName
- the current Ant task being executedcurrentLocation
- the current Location
of the Task being
executed.currentTarget
- the current Target
being executed
createTask
public org.apache.tools.ant.Task createTask(java.lang.String theName)
- Returns the task that is mapped to the specified name.
Implementations of this interface should correctly initialize the task by
setting the name, the project and optionally the owning target.
- Specified by:
createTask
in interface AntTaskFactory
- Parameters:
theName
- The logical name of the task
- Returns:
- A new instance of the task mapped to the name, or
null
if a corresponding task could not be created - See Also:
AntTaskFactory.createTask(String)
Copyright © 2004-2007 Codehaus. All Rights Reserved.