You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/01/22 05:41:17 UTC
DO NOT REPLY [Bug 26332] New: -
[PATCH] Robustness of checkTaskClass against linkage errors
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26332>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26332
[PATCH] Robustness of checkTaskClass against linkage errors
Summary: [PATCH] Robustness of checkTaskClass against linkage
errors
Product: Ant
Version: 1.6.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Minor
Priority: Other
Component: Core
AssignedTo: dev@ant.apache.org
ReportedBy: jglick@netbeans.org
I can't remember now exactly how it came up, but I tried to run a script with
some task that could be loaded but not fully linked (some missing dependency,
etc.), and Ant behaved in a way that was difficult to debug - throwing an error
from checkTaskClass without giving a clue as to which task was in error. The
attached patch just checks for this condition, including enough information to
help you resolve the problem, before rethrowing the error as a BuildException.
(BTW: I am copying the call to Project.log(..., MSG_ERR) before throwing the
exception, for consistency w/ the catch of NoSuchMethodException, though I don't
really follow what the purpose is of logging an error message you are about to
throw as a BuildException.)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org