Browse Source

Fix for ant -keep-going a b

where target a fails
PR: ?
Obtained from: Darin Swanson


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275902 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 21 years ago
parent
commit
c9ee19786b
1 changed files with 12 additions and 1 deletions
  1. +12
    -1
      src/main/org/apache/tools/ant/Project.java

+ 12
- 1
src/main/org/apache/tools/ant/Project.java View File

@@ -1090,8 +1090,19 @@ public class Project {
*/
public void executeTargets(Vector targetNames) throws BuildException {

BuildException thrownException = null;
for (int i = 0; i < targetNames.size(); i++) {
executeTarget((String) targetNames.elementAt(i));
try {
executeTarget((String) targetNames.elementAt(i));
} catch (BuildException ex) {
if (!(keepGoingMode)) {
throw ex; // Throw further
}
thrownException = ex;
}
}
if (thrownException != null) {
throw thrownException;
}
}



Loading…
Cancel
Save