https://issues.apache.org/bugzilla/show_bug.cgi?id=43398


Jesse Glick <[email protected]> changed:

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


--- Comment #13 from Jesse Glick <[email protected]> 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.

Reply via email to