http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1722
*** shadow/1722 Fri May 11 10:47:27 2001 --- shadow/1722.tmp.27014 Fri May 11 10:47:27 2001 *************** *** 0 **** --- 1,62 ---- + +============================================================================+ + | confusing "doesn't support nested text elements" wording | + +----------------------------------------------------------------------------+ + | Bug #: 1722 Product: Ant | + | Status: NEW Version: 1.3 | + | Resolution: Platform: All | + | Severity: Normal OS/Version: All | + | Priority: Component: Core tasks | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + The wording of the message used to report the bad argument syntax in: + + <exec executable="xxx" dir="somedir" > + <arg>bad</arg> + </exec> + + is misleading. The message says: + + Class org.apache.tools.ant.types.Commandline$Argument doesn't support + nested text elements + + That makes you think you erroneously included an element of type "text". + (Is it very similar to this message: + + Class org.apache.tools.ant.taskdefs.ExecTask doesn't support the + nested "bad" element + + for this kind of error: + + <exec executable="xxx" dir="somedir" > + <bad>bad</bad> + </exec> + + .) + + + The message shouldn't say "text elements," because the extraneous text + is not an XML element. I believe it should say "character data content." + + + (Also, the message would be clearer if it were in terms of what the user + deals with (parent XML elements in the build file) instead of internal + class names. That is, something like: + + exec.arg doesn't support the nested "bad" element + + or: + + <exec...><arg...> doesn't support the nested "bad" element + + would probably be better than: + + Class org.apache.tools.ant.taskdefs.ExecTask doesn't support the + nested "bad" element + + )
