return registry;\r
}\r
\r
- /** Execute only the active paths of teh Ant files. */\r
+ /** Execute only the active paths of the Ant file. */\r
public static void runActive(File antFile, List<StructurePath> activePaths) {\r
\r
Project p = new Project();\r
p.executeTarget(p.getDefaultTarget());\r
}\r
\r
+ /** Execute all paths of the default target of the Ant file. */\r
+ public static void runAll(File antFile) {\r
+ Project p = new Project();\r
+ p.setUserProperty("ant.file", antFile.getAbsolutePath());\r
+ p.setBaseDir(antFile.getParentFile());\r
+ p.init();\r
+ ProjectHelper helper = new SlcProjectHelper();\r
+ p.addReference("ant.projectHelper", helper);\r
+ helper.parse(p, antFile);\r
+ p.executeTarget(p.getDefaultTarget());\r
+ }\r
+\r
public static void main(String[] args) {\r
File antFile = new File(\r
"C:/dev/workspaces/default/org.argeo.slc/src/test/slc/root/Category1/SubCategory2/build.xml");\r