org.rhq.bundle.ant.task
Class AuditTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.rhq.bundle.ant.task.AbstractBundleTask
              extended by org.rhq.bundle.ant.task.AuditTask
All Implemented Interfaces:
Cloneable

public class AuditTask
extends AbstractBundleTask

The rhq:audit task is a way recipe authors can add their own audit messages to the stream of audit messages that the server gets to see how the progress went with the provisioning of a bundle. <rhq:audit status='SUCCESS|INFO|WARN|FAILURE' action="My Step" info="summary info" message="intermediate details"> long details here </rhq:audit>

Author:
John Mazzitelli

Field Summary
 
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
AuditTask()
           
 
Method Summary
 void addText(String msg)
          Set a multiline message.
 void execute()
           
 String getAction()
           
 String getInfo()
           
 String getMessage()
           
 BundleAntProject.AuditStatus getStatus()
           
 void maybeConfigure()
           
 void setAction(String action)
           
 void setInfo(String info)
           
 void setMessage(String message)
           
 void setStatus(String status)
           
 
Methods inherited from class org.rhq.bundle.ant.task.AbstractBundleTask
getProject
 
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, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditTask

public AuditTask()
Method Detail

maybeConfigure

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

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

getStatus

public BundleAntProject.AuditStatus getStatus()

setStatus

public void setStatus(String status)

getAction

public String getAction()

setAction

public void setAction(String action)

getInfo

public String getInfo()

setInfo

public void setInfo(String info)

getMessage

public String getMessage()

setMessage

public void setMessage(String message)

addText

public void addText(String msg)
Set a multiline message.

Parameters:
msg - the CDATA text to append to the message text


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.