Class Configurator

java.lang.Object
org.apache.ivy.util.Configurator

public class Configurator extends Object
Ant 1.6.1 like Configurator

This configurator is used to configure elements (initialised with setRoot) using the behaviour defined by ant for its tasks.

Example (based on Ant Example):

 Configurator conf = new Configurator();
 conf.typeDef("buildpath", "Sample$BuildPath");
 conf.typeDef("xinterface", "Sample$XInterface");
 Sample.MyFileSelector mfs = new Sample.MyFileSelector();
 conf.setRoot(mfs);
 conf.startCreateChild("buildpath");
 conf.setAttribute("path", ".");
 conf.setAttribute("url", "abc");
 conf.startCreateChild("xinterface");
 conf.setAttribute("count", "4");
 conf.endCreateChild(); // xinterface
 conf.endCreateChild(); // buildpath