org.codehaus.cargo.util
Interface AntTaskFactory
- All Known Implementing Classes:
- DefaultAntTaskFactory
- public interface AntTaskFactory
Interface that allows random classes to use Ant tasks without needing an
explicit reference to a project, target or task.
- Version:
- $Id: AntTaskFactory.java 1029 2006-05-21 20:21:47Z vmassol $
Method Summary |
org.apache.tools.ant.Task |
createTask(java.lang.String taskName)
Returns the task that is mapped to the specified name. |
createTask
public org.apache.tools.ant.Task createTask(java.lang.String taskName)
- 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.
- Parameters:
taskName
- 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
Copyright © 2004-2007 Codehaus. All Rights Reserved.