Bug 65315 - Antlib does not use ant:current namespace for definition
Summary: Antlib does not use ant:current namespace for definition
Status: RESOLVED FIXED
Alias: None
Product: Ant
Classification: Unclassified
Component: AntUnit (show other bugs)
Version: 1.4
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: 1.4.1
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-19 05:08 UTC by Jörn Guy Süß
Modified: 2021-07-07 16:44 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jörn Guy Süß 2021-05-19 05:08:08 UTC
The antlib of antunit defines xmlns:au="antlib:org.apache.ant.antunit
and uses it to define several elements in a sequence. It should use the ant:current namespace instead.

But the ant manual does not allow such pegging, but asks for use of the ant:current namespace.

https://ant.apache.org/manual/Types/antlib.html#currentnamespace

Quote:

"Definitions defined in antlibs may be used in antlibs. However, the namespace that definitions are placed in are dependent on the <typedef> that uses the antlib. To deal with this problem, the definitions are placed in the namespace URI ant:current for the duration of the antlib execution."
Comment 1 Stefan Bodewig 2021-05-23 09:00:24 UTC
You are completely correct. Fixed in master now.

Thanks!
Comment 2 Stefan Bodewig 2021-07-07 16:44:53 UTC
we've just released AntUnit 1.4.1 fixing this