net.dpml.transit.tools
Class ImportArtifactTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.ImportTask
net.dpml.transit.tools.ImportArtifactTask
- public class ImportArtifactTask
- extends ImportTask
Ant task that provides support for the import of build file templates
via an artifact url.
- Version:
- 1.0.2
- Author:
- Digital Product Meta Library
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImportArtifactTask
public ImportArtifactTask()
setProject
public void setProject(Project project)
- Set the project.
- Parameters:
project
- the current project
init
public void init()
- Task initialization.
setFile
public void setFile(String file)
- Set the file to import. Any symbolic references in the supplied
file argument will be resolved prior to invoking the standard setFile
operation.
- Parameters:
file
- the template filename
setUri
public void setUri(URI uri)
throws BuildException
- Set the artifact to import.
- Parameters:
uri
- the artifact to import into the build file
- Throws:
BuildException
- if an error occurs while attempting to
resolve the artifact uri
execute
public void execute()
- Execute the import.