Bug 65315

Summary: Antlib does not use ant:current namespace for definition
Product: Ant Reporter: Jörn Guy Süß <jgsuess>
Component: AntUnitAssignee: Ant Notifications List <notifications>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 1.4   
Target Milestone: 1.4.1   
Hardware: PC   
OS: Linux   

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