http://nagoya.apache.org/bugzilla/show_bug.cgi?id=984
*** shadow/984 Thu Mar 15 06:31:18 2001 --- shadow/984.tmp.17474 Thu Mar 15 06:31:18 2001 *************** *** 0 **** --- 1,60 ---- + +============================================================================+ + | Invalid DTD for tasks | + +----------------------------------------------------------------------------+ + | Bug #: 984 Product: Ant | + | Status: NEW Version: 1.3 | + | Resolution: Platform: PC | + | Severity: Normal OS/Version: | + | Priority: Low Component: Optional Tasks | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + Me again, + + The generated DTD file (via the antstructure task) defines the property and + test (nested element of Junit) elements as: + + <!ATTLIST property + id ID #IMPLIED + refid IDREF #IMPLIED + name CDATA #IMPLIED + classpath CDATA #IMPLIED + file CDATA #IMPLIED + userproperty %boolean; #IMPLIED + resource CDATA #IMPLIED + environment CDATA #IMPLIED + classpathref IDREF #IMPLIED + taskname CDATA #IMPLIED + value CDATA #IMPLIED + location CDATA #IMPLIED + description CDATA #IMPLIED + > + + <!ATTLIST test + id ID #IMPLIED + showsuccess %boolean; #IMPLIED + output CDATA #IMPLIED + fork %boolean; #IMPLIED + classpath CDATA #IMPLIED + jvm CDATA #IMPLIED + dir CDATA #IMPLIED + classname CDATA #IMPLIED + showtrace %boolean; #IMPLIED + forceshowtrace %boolean; #IMPLIED + maxmemory CDATA #IMPLIED + showbanner CDATA #IMPLIED + args CDATA #IMPLIED + classpathref IDREF #IMPLIED + taskname CDATA #IMPLIED + failonerror %boolean; #IMPLIED + description CDATA #IMPLIED + jvmargs CDATA #IMPLIED + > + + but the docs do not specify these attributes. The test element requires a name + attribute to run. Therefore I'd say the DTD is incorrect.
