public boolean supportsTask(final String taskname) {
return taskname.equals(supportedTaskName);
}
public void enhanceTask(final Task task) {
final RuntimeConfigurable configurableWrapper = task
.getRuntimeConfigurableWrapper();
final String forkValue = getProject().replaceProperties(
(String) configurableWrapper.getAttributeMap().get("fork"));
if (!Project.toBoolean(forkValue)) {
throw new BuildException(
"Coverage can only be applied on a forked VM",
getLocation());