return p;\r
}\r
\r
- /** Executes all paths of the default target of the Ant file. */\r
- public static Project runAll(File antFile) {\r
+ /** Executes all paths of the provided target of the Ant file. */\r
+ public static Project runAll(File antFile, String target) {\r
if (log.isDebugEnabled())\r
log.debug("Runs all paths of Ant file " + antFile);\r
Project p = new Project();\r
ProjectHelper helper = new SlcProjectHelper();\r
p.addReference(ProjectHelper.PROJECTHELPER_REFERENCE, helper);\r
helper.parse(p, antFile);\r
- p.executeTarget(p.getDefaultTarget());\r
+ p.executeTarget(target != null ? target : p.getDefaultTarget());\r
return p;\r
}\r
+\r
+ /** Executes all paths of the default target of the Ant file. */\r
+ public static Project runAll(File antFile) {\r
+ return runAll(antFile, null);\r
+ }\r
}\r