// Add a reference to this task/type
antProject.addReference( antId, this );
// Register the property intercepter or delegate
PropertyHelper phelper = PropertyHelper.getPropertyHelper( antProject );
try
{
// Ant 1.8.0 delegate
POMPropertyEvaluator.register( this, phelper );
}
catch ( LinkageError e )
{
// fallback to 1.6 - 1.7.1 intercepter chaining
helper.setNext( phelper.getNext() );
helper.setProject( antProject );
phelper.setNext( helper );
}
}