ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 14806] - Wrong errormessage when executing task "taskdef"
Date Sat, 21 Dec 2002 14:50:32 GMT
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=14806>.
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=14806

Wrong errormessage when executing task "taskdef"





------- Additional Comments From davidjencks@directvinternet.com  2002-12-21 14:50 -------
I've now spent at least a day cursing the "incompetent" ant class loader because of this.
Changing org.apache.tools.ant.taskdefs.Definer.addDefinition so the catch for 
NoClassDefFoundError (starting line 237) reads:

        } catch (NoClassDefFoundError ncdfe) {
            String msg = getTaskName() + "A class needed on loading by class " + value 
                + " cannot be found: " + ncdfe.getMessage();
            throw new BuildException(msg, ncdfe, location);
        }

results in a default message that clearly identifies the nature of the problem and the 
missing class.

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message