com.gigaspaces.ant
Class TaskDescriptor

java.lang.Object
  extended by com.gigaspaces.ant.TaskDescriptor
All Implemented Interfaces:
java.io.Serializable

public class TaskDescriptor
extends java.lang.Object
implements java.io.Serializable

Contains the description of an Ant task to process.

See Also:
Serialized Form

Constructor Summary
TaskDescriptor(java.lang.String buildFile)
          Create a TaskDescriptor with a buildFile, using the build file's default target, with no properties and processing asynchronously
TaskDescriptor(java.lang.String buildFile, boolean async)
          Create a TaskDescriptor
TaskDescriptor(java.lang.String buildFile, java.lang.String target)
          Create a TaskDescriptor with a buildFile and target(s)
TaskDescriptor(java.lang.String buildFile, java.lang.String target, boolean async)
          Create a TaskDescriptor
TaskDescriptor(java.lang.String buildFile, java.lang.String target, java.util.Properties properties)
          Create a TaskDescriptor
TaskDescriptor(java.lang.String buildFile, java.lang.String target, java.util.Properties properties, boolean async)
          Create a TaskDescriptor
 
Method Summary
 boolean equals(java.lang.Object obj)
          Override equals
 java.lang.String getBuildFile()
          Get the build file that was processed
 long getCompleted()
          Get the time the Ant task was completed
 java.util.Properties getProperties()
          Get the Properties used to run the Ant task
 long getSubmitted()
          Get the time the Ant task was submitted
 java.lang.String getTarget()
          Get the target(s) used to run the Ant build file
 int hashCode()
          Override hashCode
 boolean isAsync()
          Get whether the Ant task was run asynchronously or synchronously
 void setCompleted(long completed)
          Set the time the Ant task was completed
 void setSubmitted(long submitted)
          Set the time the Ant task was submitted
 java.lang.String toString()
          A String representation of the TaskDescriptor
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskDescriptor

public TaskDescriptor(java.lang.String buildFile)
Create a TaskDescriptor with a buildFile, using the build file's default target, with no properties and processing asynchronously

Parameters:
buildFile - The Ant build file, must not be null

TaskDescriptor

public TaskDescriptor(java.lang.String buildFile,
                      boolean async)
Create a TaskDescriptor

Parameters:
buildFile - The Ant build file, must not be null
async - If true, a thread will be created to run the build file. If false, the build file will be processed within the scope of the calling method's invocation

TaskDescriptor

public TaskDescriptor(java.lang.String buildFile,
                      java.lang.String target)
Create a TaskDescriptor with a buildFile and target(s)

Parameters:
buildFile - The Ant build file, must not be null
target - Space delimited String listing the target(s) to invoke.

TaskDescriptor

public TaskDescriptor(java.lang.String buildFile,
                      java.lang.String target,
                      java.util.Properties properties)
Create a TaskDescriptor

Parameters:
buildFile - The Ant build file, must not be null
target - Space delimited String listing the target(s) to invoke.
properties - Properties to set for the Ant task

TaskDescriptor

public TaskDescriptor(java.lang.String buildFile,
                      java.lang.String target,
                      boolean async)
Create a TaskDescriptor

Parameters:
buildFile - The Ant build file, must not be null
target - Space delimited String listing the target(s) to invoke.
async - If true, a thread will be created to run the build file. If false, the build file will be processed within the scope of the calling method's invocation

TaskDescriptor

public TaskDescriptor(java.lang.String buildFile,
                      java.lang.String target,
                      java.util.Properties properties,
                      boolean async)
Create a TaskDescriptor

Parameters:
buildFile - The Ant build file, must not be null
target - Space delimited String listing the target(s) to invoke.
properties - Properties to set for the Ant task
async - If true, a thread will be created to run the build file. If false, the build file will be processed within the scope of the calling method's invocation
Method Detail

getSubmitted

public long getSubmitted()
Get the time the Ant task was submitted


setSubmitted

public void setSubmitted(long submitted)
Set the time the Ant task was submitted


getCompleted

public long getCompleted()
Get the time the Ant task was completed


setCompleted

public void setCompleted(long completed)
Set the time the Ant task was completed


getBuildFile

public java.lang.String getBuildFile()
Get the build file that was processed


getTarget

public java.lang.String getTarget()
Get the target(s) used to run the Ant build file

Returns:
A space delimited String listing the target(s) that were invoked. If this value is null, the Ant build file was invoked with no targets, using the default target configured in the Ant build file

getProperties

public java.util.Properties getProperties()
Get the Properties used to run the Ant task


isAsync

public boolean isAsync()
Get whether the Ant task was run asynchronously or synchronously


hashCode

public int hashCode()
Override hashCode

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Override equals

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
A String representation of the TaskDescriptor

Overrides:
toString in class java.lang.Object


Copyright (c) 2007 GigaSpaces Technologies, Inc.
All Rights Reserved.