Bug 46121 - "resources" ant task clashes with ant 1.7 "resources" element
"resources" ant task clashes with ant 1.7 "resources" element
Product: Tomcat 6
Classification: Unclassified
Component: Manager application
PC Windows XP
: P2 minor (vote)
: default
Assigned To: Tomcat Developers Mailing List
Depends on:
  Show dependency tree
Reported: 2008-10-29 08:30 UTC by Matt Wildig
Modified: 2008-11-03 15:51 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Matt Wildig 2008-10-29 08:30:43 UTC
Not sure if this counts as a bug, but I thought it needs mentioning.

The "resources" task described in antlib.xml in catalina-ant.jar conflicts with the resources element introduced in ant 1.7.

This results in ant reporting the message "Trying to override old definition of datatype resources", which may be the only effect if you're not using the ant resources (http://ant.apache.org/manual/CoreTypes/resources.html#collection).

It does have the potential to cause existing builds using these resources collections to fail if you then add the tomcat tasks using the antlib.xml.
Comment 1 Matt Wildig 2008-10-29 12:59:07 UTC
A little bit of thought and research into this and I realise the solution is of course to use ants namespace support. Perhaps all that's needed is a note in the documentation so people don't get caught out by this.
Comment 2 Mark Thomas 2008-11-03 15:51:31 UTC
Thanks for the report. this has been fixed in trunk and 6.0.x and will be in 6.0.19 onwards.