I agree, however it may be good to update the 1.8.0 manual with a
warning that the behavior is currently not as intended and will change,
published as soon as the solution is changed.
br martijn
On 23/04/2010 2:29 AM, Stefan Bodewig wrote:
Hi all,
currently extension-point and import don't play together like they are
supposed to. You can't extend an imported extension point with a target
from the importing build file (which is the primary use-case, really).
Attached to this bug is a patch that fixes the problem (including an
AntUnit test that fails in 1.8.0).
The same patch breaks a different AntUnit test, namely
testExtensionPointMustBeKnown in extension-point-test.xml. This test
asserts that you can't extend an extension point from the same build
file before that extension point has been defined. I.e. you can't do
<target name="bar" extensionOf="foo"/>
<extension-point name="foo"/>
Personally I think the changed behavior isn't a bad thing, the old
behavior isn't documented and we shouldn't even try to keep it.
What do you think?
Stefan
PS: I'd love to see this fixed with Ant 1.8.1.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org