X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fant%2FAntRegistryUtil.java;fp=org.argeo.slc%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fant%2FAntRegistryUtil.java;h=c73b59015303edc6b11383463891e0c341d4401c;hb=c228c125b7f40d1716911dd66971c720dc9478b5;hp=872dd9cc1bd17432ff2b1ae076817810ce63e1d0;hpb=6eb8dbec55c0cb31407907860ba6de627243b8af;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc/src/main/java/org/argeo/slc/ant/AntRegistryUtil.java b/org.argeo.slc/src/main/java/org/argeo/slc/ant/AntRegistryUtil.java index 872dd9cc1..c73b59015 100644 --- a/org.argeo.slc/src/main/java/org/argeo/slc/ant/AntRegistryUtil.java +++ b/org.argeo.slc/src/main/java/org/argeo/slc/ant/AntRegistryUtil.java @@ -36,7 +36,8 @@ public class AntRegistryUtil { } /** Executes only the active paths of the Ant file. */ - public static void runActive(File antFile, List activePaths) { + public static Project runActive(File antFile, + List activePaths) { if (log.isDebugEnabled()) log.debug("Runs the " + activePaths.size() + " provided active paths of Ant file " + antFile); @@ -53,10 +54,11 @@ public class AntRegistryUtil { registry.setMode(StructureRegistry.ACTIVE); registry.setActivePaths(activePaths); p.executeTarget(p.getDefaultTarget()); + return p; } /** Executes all paths of the default target of the Ant file. */ - public static void runAll(File antFile) { + public static Project runAll(File antFile) { if (log.isDebugEnabled()) log.debug("Runs all paths of Ant file " + antFile); Project p = new Project(); @@ -67,5 +69,6 @@ public class AntRegistryUtil { p.addReference("ant.projectHelper", helper); helper.parse(p, antFile); p.executeTarget(p.getDefaultTarget()); + return p; } }