org.mycore.buildtools.anttasks
Class MCRExecuteCommandTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.mycore.buildtools.anttasks.MCRExecuteCommandTask
All Implemented Interfaces:
Cloneable

public class MCRExecuteCommandTask
extends org.apache.tools.ant.Task

This class is an ant tasks to call the MyCoRe CLI in build process

Version:
$Revision: 13085 $ $Date: 2008-02-06 18:27:24 +0100 (Mi, 06 Feb 2008) $
Author:
Robert Stephan

Field Summary
(package private)  String basedir
           
(package private)  String commands
           
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
MCRExecuteCommandTask()
           
 
Method Summary
 void addText(String commands)
          method used, to read the body of an ant task xml element
 void execute()
           
 void setBasedir(String basedir)
          set the base directory, that should be used while executing the commands
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commands

String commands

basedir

String basedir
Constructor Detail

MCRExecuteCommandTask

public MCRExecuteCommandTask()
Method Detail

addText

public void addText(String commands)
method used, to read the body of an ant task xml element

Parameters:
commands -

setBasedir

public void setBasedir(String basedir)
set the base directory, that should be used while executing the commands

Parameters:
basedir - - the directory

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException