net.dpml.transit.tools
Class ImportArtifactTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.ImportTask
              extended by 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.3
Author:
Digital Product Meta Library

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
ImportArtifactTask()
           
 
Method Summary
 void execute()
          Execute the import.
 void init()
          Task initialization.
 void setFile(String file)
          Set the file to import.
 void setProject(Project project)
          Set the project.
 void setUri(URI uri)
          Set the artifact to import.
 
Methods inherited from class org.apache.tools.ant.taskdefs.ImportTask
setOptional
 
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 org.apache.tools.ant.ProjectComponent
getProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportArtifactTask

public ImportArtifactTask()
Method Detail

setProject

public void setProject(Project project)
Set the project.

Overrides:
setProject in class ProjectComponent
Parameters:
project - the current project

init

public void init()
Task initialization.

Overrides:
init in class Task

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.

Overrides:
setFile in class ImportTask
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.

Overrides:
execute in class ImportTask