Methods Summary |
---|
protected com.vladium.emma.ant.NestedTask | addTask(com.vladium.emma.ant.NestedTask task, java.lang.String pseudoName)
initTask (task, pseudoName);
m_tasks.add (task);
return task;
|
public com.vladium.emma.ant.NestedTask | createInstr()
return addTask (new instrTask (this), getNestedTaskName ("instr"));
|
public com.vladium.emma.ant.NestedTask | createMerge()
return addTask (new mergeTask (this), getNestedTaskName ("merge"));
|
public com.vladium.emma.ant.NestedTask | createReport()
return addTask (new reportTask (this), getNestedTaskName ("report"));
|
public synchronized void | execute()
log (IAppConstants.APP_VERBOSE_BUILD_ID, Project.MSG_VERBOSE);
if (isEnabled ())
{
while (! m_tasks.isEmpty ())
{
final NestedTask task = (NestedTask) m_tasks.remove (0);
final String name = getTaskName ();
try
{
setTaskName (task.getTaskName ());
task.execute ();
}
finally
{
setTaskName (name);
}
}
}
|
protected java.lang.String | getNestedTaskName(java.lang.String subname)
return getTaskName ().concat (".").concat (subname);
|
protected void | initTask(com.vladium.emma.ant.NestedTask task, java.lang.String pseudoName)
task.setTaskName (pseudoName);
task.setProject (getProject ());
task.setLocation (getLocation ());
task.setOwningTarget (getOwningTarget ());
task.init ();
|