Summary: | Ant 1.7.0: a patternset reference cannot be redefined through itself | ||
---|---|---|---|
Product: | Ant | Reporter: | ivanveselovsky <ivan.veselovsky> |
Component: | Core | Assignee: | Ant Notifications List <notifications> |
Status: | REOPENED --- | ||
Severity: | regression | ||
Priority: | P2 | ||
Version: | 1.7.0 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux |
Description
ivanveselovsky
2008-06-05 03:39:58 UTC
that is simply the way Ant references work. You could use a scriptdef to programmatically retrieve the original reference, then assign a new object which refers to the original object back to the same reference name. Another option would be to use the Ant 1.8 properties API to add a PropertySetter capable of setting a reference (so you use a different mechanism to set and get the reference). I will add this to the list of things to do for the props antlib as well. (In reply to comment #1) > that is simply the way Ant references work. You could use a scriptdef to > programmatically retrieve the original reference, then assign a new object > which refers to the original object back to the same reference name. Another > option would be to use the Ant 1.8 properties API to add a PropertySetter > capable of setting a reference (so you use a different mechanism to set and get > the reference). I will add this to the list of things to do for the props > antlib as well. > Hi, Matt, sure, this may be easily worked around using another reference, for example. But the point of this bug request is just *compatibility* with 1.6.5 release. Do you know, why that worked in 1.6.5 in a different way than in 1.7.0? Ah... you should then have marked that as a regression. That would require a little more research as I wouldn't have expected this ever to have worked. |