+\r
+ runProject(p, target);\r
+ return p;\r
+ }\r
+\r
+ /** Executes all paths of the provided target of the Ant URL. */\r
+ public static Project runAll(URL url, String target, Properties properties) {\r
+ if (log.isDebugEnabled())\r
+ log.debug("Runs all paths of Ant URL " + url);\r
+ Project p = new Project();\r
+ p.setUserProperty("ant.file", url.toString());\r
+ // p.setBaseDir(url.toString());\r
+ p.init();\r
+ ProjectHelper helper = new SlcProjectHelper();\r
+ p.addReference(ProjectHelper.PROJECTHELPER_REFERENCE, helper);\r
+ helper.parse(p, url);\r
+\r
+ if (properties != null) {\r
+ for (Map.Entry<Object, Object> entry : properties.entrySet()) {\r
+ p.setUserProperty(entry.getKey().toString(), entry.getValue()\r
+ .toString());\r
+ }\r
+ }\r
+\r
+ runProject(p, target);\r