orca.nodeagent.client
Class AntBaseTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by orca.nodeagent.client.AntBaseTask
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
DriverBaseTask, FetchNfsImageDescriptorTask, InstallServiceKeyTask

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


Field Summary
protected  org.apache.tools.ant.types.Path classpath
          Classpath to use
protected  java.lang.String exitCodeMessageProperty
          Name of the property under which to store the exit message.
protected  java.lang.String exitCodeProperty
          Name of the property under which to store the exit code.
static int InternalTaskError
           
protected  java.lang.String loaderref
          Name of the loader to use
protected  LoggingTool logger
           
static java.lang.String PropertyRootPath
           
protected  int timeout
          Timeout for operations
 
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
AntBaseTask()
           
 
Method Summary
 org.apache.tools.ant.types.Path createClasspath()
          Adds a path to the classpath.
 void execute()
           
protected  void fixClassPath()
           
 org.apache.tools.ant.types.Path getClasspath()
          Gets the classpath to be used for this compilation.
protected  java.lang.String getErrorMessage(int code)
           
protected  java.util.Properties getProperties()
           
 void setClasspath(org.apache.tools.ant.types.Path classpath)
          Set the classpath to be used for this compilation.
 void setClasspathRef(org.apache.tools.ant.types.Reference r)
          Adds a reference to a classpath defined elsewhere.
protected  void setExitCode(int code)
           
 void setExitCodeProperty(java.lang.String exitCodeProperty)
           
 void setLoaderref(java.lang.String loaderref)
           
protected  void setResult(int code)
           
 void setTimeout(int timeout)
           
 
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

InternalTaskError

public static final int InternalTaskError
See Also:
Constant Field Values

PropertyRootPath

public static final java.lang.String PropertyRootPath
See Also:
Constant Field Values

exitCodeProperty

protected java.lang.String exitCodeProperty
Name of the property under which to store the exit code.


exitCodeMessageProperty

protected java.lang.String exitCodeMessageProperty
Name of the property under which to store the exit message.


classpath

protected org.apache.tools.ant.types.Path classpath
Classpath to use


timeout

protected int timeout
Timeout for operations


loaderref

protected java.lang.String loaderref
Name of the loader to use


logger

protected LoggingTool logger
Constructor Detail

AntBaseTask

public AntBaseTask()
Method Detail

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

createClasspath

public org.apache.tools.ant.types.Path createClasspath()
Adds a path to the classpath.

Returns:
a class path to be configured

fixClassPath

protected void fixClassPath()
                     throws java.lang.Exception
Throws:
java.lang.Exception

setResult

protected void setResult(int code)
                  throws java.lang.Exception
Throws:
java.lang.Exception

getErrorMessage

protected java.lang.String getErrorMessage(int code)

setExitCode

protected void setExitCode(int code)
                    throws java.lang.Exception
Throws:
java.lang.Exception

getProperties

protected java.util.Properties getProperties()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

setClasspathRef

public void setClasspathRef(org.apache.tools.ant.types.Reference r)
Adds a reference to a classpath defined elsewhere.

Parameters:
r - a reference to a classpath

getClasspath

public org.apache.tools.ant.types.Path getClasspath()
Gets the classpath to be used for this compilation.

Returns:
the class path

setExitCodeProperty

public void setExitCodeProperty(java.lang.String exitCodeProperty)
Parameters:
exitCodePropert - the exitCodePropert to set

setTimeout

public void setTimeout(int timeout)
Parameters:
timeout - the timeout to set

setLoaderref

public void setLoaderref(java.lang.String loaderref)
Parameters:
loaderref - the loaderref to set

setClasspath

public void setClasspath(org.apache.tools.ant.types.Path classpath)
Set the classpath to be used for this compilation.

Parameters:
classpath - an Ant Path object containing the compilation classpath.


Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.