|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.figure8.join.services.scripting.ant.tasks.RemoteServiceTask
org.figure8.join.services.scripting.ant.tasks.LogStatusTask
public class LogStatusTask
This an Ant task to use for logging a status to a specified process.
As an example, use a logstatus that way to ensure logging of build
process status :
>logstatus process="build" ref="mybuild-r1.0-v01" statusKey="myStatus"
url="http://mydomain.org:8080/join"/<
That logger will then connect to Join system denoted by url to update the status
of build "mybuild-r1.0-v01" to status with identifier "myStatus".
The type attribute defines a specific type of process to update status.
There are today 3 different types :
| Field Summary |
|---|
| Fields inherited from class org.figure8.join.services.scripting.ant.tasks.RemoteServiceTask |
|---|
REMOTE_URL_SUBCONTEXT |
| 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 | |
|---|---|
LogStatusTask()
Creates a new instance of LogStatusTask. |
|
| Method Summary | |
|---|---|
void |
execute()
Execute the logging of status. |
java.lang.String |
getProcess()
|
java.lang.String |
getRef()
|
java.lang.String |
getStatusKey()
|
protected void |
logStatus()
Log the status using remote service |
void |
setProcess(java.lang.String process)
|
void |
setRef(java.lang.String ref)
|
void |
setStatusKey(java.lang.String statusKey)
|
protected void |
validateAttributes()
Validate this task attributes before execution |
| Methods inherited from class org.figure8.join.services.scripting.ant.tasks.RemoteServiceTask |
|---|
getPassword, getUrl, getUser, loginToRemoteService, releaseRemoteService, retrieveRemoteService, setPassword, setUrl, setUser |
| 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 |
|---|
public LogStatusTask()
| Method Detail |
|---|
public java.lang.String getRef()
public void setRef(java.lang.String ref)
ref - The reference of object to log status onpublic java.lang.String getProcess()
public void setProcess(java.lang.String process)
process - The process to set status forpublic java.lang.String getStatusKey()
public void setStatusKey(java.lang.String statusKey)
statusKey - The key of status to log
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException - if a mandatory attribute is not present
protected void validateAttributes()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException - if a mandatory attribute is not present
protected void logStatus()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException - if
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||