org.jcoderz.commons.taskdefs
Class LuntBuildTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.jcoderz.commons.taskdefs.LuntBuildTask
All Implemented Interfaces:
Cloneable

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

Ant task to trigger a build on the Luntbuild system and download results afterwards.

Author:
Albrecht Messner

Nested Class Summary
static class LuntBuildTask.Artifact
          Represents an artifact to retrieve.
 
Field Summary
static String FAIL_IF_RUNNING
          Schedule start policy: fails this task if schedule is currently running.
static String SKIP_IF_RUNNING
          Schedule start policy: skips execution if schedule is currently running.
static String START_MULTIPLE
          Schedule start policy: allows multiple schedules to be running simultaneously.
 
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
LuntBuildTask()
           
 
Method Summary
 void addArtifact(LuntBuildTask.Artifact artifact)
          Adds an artifact for retrieval.
 void execute()
          Execute this ant task.
 void setLuntUrl(String luntUrl)
           
 void setPassword(String password)
           
 void setProjectName(String projectName)
           
 void setScheduleName(String scheduleName)
           
 void setStartPolicy(String startPolicy)
           
 void setToDir(String toDir)
           
 void setUserName(String userName)
           
 void setWaitForSchedule(boolean waitForSchedule)
           
 
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

START_MULTIPLE

public static final String START_MULTIPLE
Schedule start policy: allows multiple schedules to be running simultaneously.

See Also:
Constant Field Values

SKIP_IF_RUNNING

public static final String SKIP_IF_RUNNING
Schedule start policy: skips execution if schedule is currently running.

See Also:
Constant Field Values

FAIL_IF_RUNNING

public static final String FAIL_IF_RUNNING
Schedule start policy: fails this task if schedule is currently running.

See Also:
Constant Field Values
Constructor Detail

LuntBuildTask

public LuntBuildTask()
Method Detail

setLuntUrl

public void setLuntUrl(String luntUrl)
Parameters:
luntUrl - The luntUrl to set.

setUserName

public void setUserName(String userName)
Parameters:
userName - The userName to set.

setPassword

public void setPassword(String password)
Parameters:
password - The password to set.

setProjectName

public void setProjectName(String projectName)
Parameters:
projectName - The projectName to set.

setScheduleName

public void setScheduleName(String scheduleName)
Parameters:
scheduleName - The scheduleName to set.

setStartPolicy

public void setStartPolicy(String startPolicy)
Parameters:
startPolicy - The startPolicy to set.

setWaitForSchedule

public void setWaitForSchedule(boolean waitForSchedule)
Parameters:
waitForSchedule - The waitForSchedule to set.

setToDir

public void setToDir(String toDir)
Parameters:
toDir - The toDir to set.

addArtifact

public void addArtifact(LuntBuildTask.Artifact artifact)
Adds an artifact for retrieval.

Parameters:
artifact - the artifact to add

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Execute this ant task.

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException - if a build error occurs


Copyright 2007 The jCoderZ Project.