Share

JWare/AntXtras

Tracker: Bugs

9 <doMatch> <equals> task set does not work in Ant 1.7 - ID: 1664674
Last Update: Comment added ( idm_jware )

<doMatch> <equals> taskSet does not work properly under Ant 1.7. ('Tasks
of type "equals" requires a single value or property attribute.')

I believe this could be due to a change in ant execution order. 1.6 used
to pre-process the entire build file before executing. 1.7 does not. It
seems that <doMatch> finalises the values of the <equals> when it executes
(now before the equals processes).

Unfortunately, the CVS seems to be empty, so I cannot confirm this, but it
would be in line with the way all <step> tasks within a target now need to
be defined before any of them are called.


Stephen Kestle ( stephenk ) - 2007-02-20 21:24

9

Closed

Fixed

Wascally Wabbit

Flow-Control Components

v0.5

Public


Comments ( 2 )

Date: 2007-03-25 20:30
Sender: idm_jwareProject Admin


Addressed in the AntX 0.5.1 release which is compatible with Ant 1.7
distribution.


Date: 2007-03-16 23:44
Sender: idm_jwareProject Admin


Ant 1.7 changed fundamentally the way the "UnknownElement"'s configure
method works. This change has big implications for AntXtras-- it is now
impossible for a single AntXtras distribution to work with both a 1.6.x and
a 1.7.x release of Ant.

Having determined this...releasing a '0.5.1' version of AntXtras that does
*not* work with 1.6.x Ant would be confusing as the numbering indicates a
backward compatible bugfix revision change.

The best solution might be to speed up the next release of AntXtras
(1.0b1) that would formally require Ant release 1.7 or newer.
(Unfortunately this release is still weeks away...).

==================== 1.6.5 =======================

public void configure(Object realObject) {
realThing = realObject;
getWrapper().setProxy(realThing);
Task task = null;
if (realThing instanceof Task) {
task = (Task) realThing;
task.setRuntimeConfigurableWrapper(getWrapper());
this.getOwningTarget().replaceChild(this, (Task) realThing);
}
handleChildren(realThing, getWrapper()); /// <<<<<<---- NOTE
if (task != null) {
task.maybeConfigure();
} else {
getWrapper().maybeConfigure(getProject());
}
}

==================== 1.7 =======================

public void configure(Object realObject) {
realThing = realObject;
getWrapper().setProxy(realThing);
Task task = null;
if (realThing instanceof Task) {
task = (Task) realThing;
task.setRuntimeConfigurableWrapper(getWrapper());
if (getWrapper().getId() != null) {
this.getOwningTarget().replaceChild(this, (Task) realThing);
}
}
if (task != null) {
task.maybeConfigure();
} else {
getWrapper().maybeConfigure(getProject());
}
handleChildren(realThing, getWrapper()); /// <<<<<<---- NOTE SHIFT
}





Attached File

No Files Currently Attached

Changes ( 8 )

Field Old Value Date By
close_date - 2007-03-25 20:30 idm_jware
status_id Open 2007-03-25 20:30 idm_jware
resolution_id Accepted 2007-03-25 20:30 idm_jware
priority 7 2007-03-16 23:44 idm_jware
resolution_id None 2007-03-16 23:44 idm_jware
artifact_group_id None 2007-02-24 13:27 idm_jware
assigned_to nobody 2007-02-24 13:27 idm_jware
priority 5 2007-02-24 13:27 idm_jware