Browse Source

Antlib: set location before maybeConfigure as maybeConfigure could

throw an exception (invalid element/attribute for example)


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

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/Antlib.java View File

@@ -177,8 +177,8 @@ public class Antlib extends Task implements TaskContainer {
public void execute() {
for (Iterator i = tasks.iterator(); i.hasNext();) {
UnknownElement ue = (UnknownElement) i.next();
ue.maybeConfigure();
setLocation(ue.getLocation());
ue.maybeConfigure();
Task t = ue.getTask();
if (t == null) {
continue;


Loading…
Cancel
Save