/**
* Copies the properties into the Ant task.
*/
public void configure(Object antObject) {
IntrospectionHelper ih = IntrospectionHelper.getHelper(antObject.getClass());
// set attributes first
for (Iterator itr = attributes.entrySet().iterator(); itr.hasNext();) {
Entry att = (Entry)itr.next();
ih.setAttribute(getProject(), antObject, (String)att.getKey(), (String)att.getValue());
}
// then nested elements
for (Iterator itr = elements.iterator(); itr.hasNext();) {
AntElement e = (AntElement) itr.next();
Object child = ih.createElement(getProject(), antObject, e.name);
e.configure(child);
ih.storeElement(getProject(), antObject, child, e.name);
}
}