ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <hind.lwahh...@accenture.com>
Subject [ant-contrib] AntPerformanceListener problem:NullPointerException
Date Wed, 06 Jul 2005 12:37:07 GMT

Hello guys,
I am experiecing the following problem:
i am runing my ant scripts with the following option:
 -listener net.sf.antcontrib.perf.AntPerformanceListener.
When running my script with the default target everything is fine.
When running my script with some targets passed on command line i get the following error
message:

BUILD SUCCESSFUL
Total time: 0 seconds
java.lang.NullPointerException
        at net.sf.antcontrib.perf.AntPerformanceListener.buildFinished(AntPerformanceListener.java:106)
        at org.apache.tools.ant.Project.fireBuildFinished(Project.java:1848)
        at org.apache.tools.ant.Main.runBuild(Main.java:688)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

The line incriminated in AntPerformanceListener.java is:
 if ( target.getProject().getName() != null )


Thanks for any help/clue!


This message is for the designated recipient only and may contain privileged, proprietary,
or otherwise private information.  If you have received it in error, please notify the sender
immediately and delete the original.  Any other use of the email by you is prohibited.


Mime
View raw message