Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Does eclipse save project errors in any log files???
Does eclipse save project errors in any log files??? [message #1230308] Sat, 11 January 2014 11:20 Go to next message
Eclipse UserFriend
Hi,
Can someone please tell me if eclipse writes to any log files when there are errors within a project? That is if any get written too...

I would like to write a unit test to ensure there are no errors in the project before people commit code to our configuration control.

Thanks,
Paul
Re: Does eclipse save project errors in any log files??? [message #1230347 is a reply to message #1230308] Sat, 11 January 2014 13:48 Go to previous messageGo to next message
Eclipse UserFriend
Eclipse internally persists errors and warnings using "Markers".
If you're implementing a plugin, you can query these markers using API from JDT and core.resources.

I don't think the binary format how these markers are stored on disk is documented (I might be wrong here).


I wonder how a unit test can prevent committing code with compile errors?

BTW, the CVS plugin has configuration options for "commit resources with warnings/errors". If the plugin for your VCS does not support this, that sounds like a very valid feature request Smile

Stephan
Re: Does eclipse save project errors in any log files??? [message #1230563 is a reply to message #1230347] Sun, 12 January 2014 06:29 Go to previous message
Eclipse UserFriend
Hi Stephan,
Thanks for your response. A bit suprised eclipse doesnt write these errors and other things like this to files... I guess I was expecting it to do so, because was wondering how it would capture errors when you say restart eclipse for example. Interesting what you say though. We use svn and are moving towards mercurial. Maybe theres something in the preferences for when you commit or push code. To ensure dont break the projects.
Previous Topic:Tips to explore the java project which contains more than 3000 java files
Next Topic:Looking for Java code for work around.
Goto Forum:
  


Current Time: Tue Apr 22 11:19:36 EDT 2025

Powered by FUDForum. Page generated in 0.04500 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top