You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by re...@yahoo.com on 2010/09/30 20:53:42 UTC

why is call stack not logged

In Main.java they have

        try {
            try {
                runBuild(coreLoader);
                exitCode = 0;
            } catch (ExitStatusException ese) {
                exitCode = ese.getStatus();
                if (exitCode != 0) {
                    throw ese;
                }
            }
        } catch (BuildException be) {
            if (err != System.err) {
                printMessage(be);
            }
        } catch (Throwable exc) {
            exc.printStackTrace();
            printMessage(exc);
        } finally {
            handleLogfile();
        }
        exit(exitCode);

It looks like when you catch a Throwable, then the call stack should be logged to stderr.  But it is not logged normally, except if you use -verbose (maybe other flags too will cause it to be logged).

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org