org.xins.common.ant
Class CallTargetsTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.xins.common.ant.CallTargetsTask

public class CallTargetsTask
extends Task

Apache Ant task that calls one or more targets in a separate build file.

Since:
XINS 1.1.0
Version:
$Revision: 1.11 $ $Date: 2006/08/28 09:12:35 $
Author:
Ernst de Haan

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
CallTargetsTask()
          Constructs a new CallTargetsTask instance.
 
Method Summary
 void execute()
          Called by the project to let the task do its work.
 void setAntFile(String antFile)
          Sets the name of the build file to execute.
 void setDir(String dir)
          Sets the working directory during the execution of the Ant build file.
 void setTargets(String targets)
          Sets the targets to execute within the build file.
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallTargetsTask

public CallTargetsTask()
Constructs a new CallTargetsTask instance.

Method Detail

setAntFile

public void setAntFile(String antFile)
Sets the name of the build file to execute. If null or "" is passed as the argument, then build.xml is assumed.

Parameters:
antFile - the name of the Apache Ant build file to execute, can be null.

setTargets

public void setTargets(String targets)
Sets the targets to execute within the build file.

Parameters:
targets - the targets to execute, space-separated.

setDir

public void setDir(String dir)
Sets the working directory during the execution of the Ant build file.

Parameters:
dir - the directory for the Ant build file.

execute

public void execute()
             throws BuildException
Called by the project to let the task do its work.

Throws:
BuildException - if something goes wrong with the build.


See http://www.xins.org/.