java - Programmatically interrogate Ant build.xml -
i wish write java program interrogate specified ant build.xml file, listing out every detail in build file, such high level details build file description (which have managed achieve) down low level detail such each , every path/pathelement location, property names , values set in entire build script etc.
i have been using code such this:-
file buildfile = new file("build.xml"); project p = new project(); p.setuserproperty("ant.file", buildfile.getabsolutepath()); p.init(); p.initproperties(); projecthelper helper = projecthelper.getprojecthelper(); p.addreference("ant.projecthelper", helper); helper.parse(p, buildfile);
i unable @ lowest level details, possible?
Comments
Post a Comment