[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [platform-ant-dev] FW: InvocationTargetException using logger s
|
Hi!
>If I start the script using "-logger org.apache.tools.ant.XmlLogger" the
>following output is generated. It seems the logger is working but I'm
>wondering about the exception. It seems that the Eclipse AntRunner is
>invoking something when the build is finished ?!?
I found the bug!!!!
http://dev.eclipse.org/bugs/show_bug.cgi?id=30083
The problem is InternalAntRunner around line 564. In the current code (build
20030115) the build is finished and then a message is loged. But if you
finish a build, the XmlLogger throws away some vars (buildElement). I don't
know Ant but I think this is the root element.
------------
fireBuildFinished(getCurrentProject(), error);
if (error == null && scriptExecuted) {
logMessage(getCurrentProject(), getTimeString(System.currentTimeMillis() -
startTime), Project.MSG_INFO);
}
------------
A possible solution might be to fire the "build finished" event after doing
the last log entry!!!
------------
if (error == null && scriptExecuted) {
logMessage(getCurrentProject(), getTimeString(System.currentTimeMillis() -
startTime), Project.MSG_INFO);
}
fireBuildFinished(getCurrentProject(), error);
------------
Cu, Gunnar
Attachment:
30083.url
Description: Binary data