ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43398] Ant discards stack traces for random exceptions terminating a build
Date Wed, 12 Aug 2009 20:30:12 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=43398


Jesse Glick <jglick@netbeans.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


--- Comment #13 from Jesse Glick <jglick@netbeans.org> 2009-08-12 13:30:07 PDT ---
Unfortunately it is not fixed when the exception is thrown from a task inside
<ant> or <antcall>, which is the normal case in a large project:

<project default="run">
    <target name="run">
        <antcall target="dorun1"/>
    </target>
    <target name="dorun1">
        <antcall target="dorun2"/>
    </target>
    <target name="dorun2">
        <echo file="X.java">
public class X extends org.apache.tools.ant.Task {
    public void execute() {
        NullPointerException e = new NullPointerException();
        e.initCause(new ClassNotFoundException("root cause"));
        throw e;
    }
}
        </echo>
        <javac srcdir="." destdir="." source="1.5" includes="X.java"/>
        <taskdef name="x" classname="X" classpath="."/>
        <x/>
    </target>
</project>

I am playing with possible fixes, but without success so far (starting in trunk
803701).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Mime
View raw message