br.com.oncast.dev.lobo.task
Class ProfilerMergeTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by br.com.oncast.dev.lobo.task.ProfilerMergeTask
All Implemented Interfaces:
java.lang.Cloneable

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

Ant task to merge profile results.
The profiler merger is design to create a new merge result xml based on an (optional) merge result xml and a profiler result xml. Basically it creates a new merge result xml appending the source merge xml with the profiler result xml.


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
ProfilerMergeTask()
           
 
Method Summary
 void execute()
           
 void setBuildMetrics(java.lang.String buildMetrics)
          The mandatory profiler source file.
This is the profiler results that must be merged with the merger source to generate the output file.
 void setBuildName(java.lang.String buildName)
          The optional build name.
If the build name is not set the merger will try to infer the next build name from the merge source.
 void setMerge(java.lang.String mergeFile)
          The merge file.
This merge file stores performance information of all the builds it merged.
 
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
 

Constructor Detail

ProfilerMergeTask

public ProfilerMergeTask()
Method Detail

setBuildName

public void setBuildName(java.lang.String buildName)
The optional build name.
If the build name is not set the merger will try to infer the next build name from the merge source.

Parameters:
buildName - the name of the build.

setMerge

public void setMerge(java.lang.String mergeFile)
The merge file.
This merge file stores performance information of all the builds it merged. It will be incremented if the information from the profile report.

Parameters:
mergeFile - the merge source file path as a String.

setBuildMetrics

public void setBuildMetrics(java.lang.String buildMetrics)
The mandatory profiler source file.
This is the profiler results that must be merged with the merger source to generate the output file.

Parameters:
buildMetrics - the profiler source file path as a String.

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
See Also:
Task.execute()