}\r
\r
/** Executes only the active paths of the Ant file. */\r
- public static void runActive(File antFile, List<StructurePath> activePaths) {\r
+ public static Project runActive(File antFile,\r
+ List<StructurePath> activePaths) {\r
if (log.isDebugEnabled())\r
log.debug("Runs the " + activePaths.size()\r
+ " provided active paths of Ant file " + antFile);\r
registry.setMode(StructureRegistry.ACTIVE);\r
registry.setActivePaths(activePaths);\r
p.executeTarget(p.getDefaultTarget());\r
+ return p;\r
}\r
\r
/** Executes all paths of the default target of the Ant file. */\r
- public static void runAll(File antFile) {\r
+ public static Project runAll(File antFile) {\r
if (log.isDebugEnabled())\r
log.debug("Runs all paths of Ant file " + antFile);\r
Project p = new Project();\r
p.addReference("ant.projectHelper", helper);\r
helper.parse(p, antFile);\r
p.executeTarget(p.getDefaultTarget());\r
+ return p;\r
}\r
}\r