You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by pe...@apache.org on 2003/09/10 12:55:58 UTC
cvs commit: ant/src/main/org/apache/tools/ant/taskdefs Antlib.java
peterreilly 2003/09/10 03:55:58
Modified: src/main/org/apache/tools/ant/taskdefs Antlib.java
Log:
Antlib: set location before maybeConfigure as maybeConfigure could
throw an exception (invalid element/attribute for example)
Revision Changes Path
1.9 +1 -1 ant/src/main/org/apache/tools/ant/taskdefs/Antlib.java
Index: Antlib.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Antlib.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- Antlib.java 10 Sep 2003 10:37:14 -0000 1.8
+++ Antlib.java 10 Sep 2003 10:55:58 -0000 1.9
@@ -177,8 +177,8 @@
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;
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org