Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Java incremental build unexpected behaviour(Java incremental build turns into systematic full re-build after a while.)
icon9.gif  Java incremental build unexpected behaviour [message #910835] Mon, 10 September 2012 13:23 Go to next message
Anselme LEBRUN is currently offline Anselme LEBRUNFriend
Messages: 3
Registered: September 2012
Junior Member
Hi,

I'm coming to this forum because I've been having this problem since several months
now, and after hours of search on internet, I didn't find any solution. Although, it seams that many others peoples have similar problems.

My problem is the following :

I using Eclipse Helios (build 201000917-0705)

I'm developping a quite complex application that consists of several plugins.

The source code of my plugins are stored outside my workspace, And I'm using the
'Import Existing Project into Workspace' feature to create the plugin projects in
my workspace.

After this import action, everything goes well. The incremental compile works as expected.

But after several hours, the incremental compile turns into a systematic full build which takes a lot of time.
It would re-build all Java source each time I change a single file.
Also, this re-build occurs even if I modify some files that have nothing to do with
java source code (XML resource files and GIF icons)

At this point I must completely delete my workspace directory
and do the project import again.

All this lead to a huge loss of time in my application development.


Could anyone give me some help on this ?

Thanks,
Re: Java incremental build unexpected behaviour [message #910854 is a reply to message #910835] Mon, 10 September 2012 13:57 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3801
Registered: July 2009
Senior Member
On 10.09.2012 15:23, Anselme LEBRUN wrote:
> Hi,
>
> I'm coming to this forum because I've been having this problem since
> several months
> now, and after hours of search on internet, I didn't find any
> solution. Although, it seams that many others peoples have similar
> problems.
>
> My problem is the following :
>
> I using Eclipse Helios (build 201000917-0705)
>
> I'm developping a quite complex application that consists of several
> plugins.
>
> The source code of my plugins are stored outside my workspace, And I'm
> using the
> 'Import Existing Project into Workspace' feature to create the plugin
> projects in
> my workspace.
>
> After this import action, everything goes well. The incremental
> compile works as expected.
>
> But after several hours, the incremental compile turns into a
> systematic full build which takes a lot of time. It would re-build all
> Java source each time I change a single file.
> Also, this re-build occurs even if I modify some files that have
> nothing to do with
> java source code (XML resource files and GIF icons)
>
> At this point I must completely delete my workspace directory and do
> the project import again.
>
> All this lead to a huge loss of time in my application development.
>
>
> Could anyone give me some help on this ?
You can enable tracing to see why it actually thinks it needs to build.
To do that, create a config.ini file with this:

org.eclipse.jdt.core/debug=true
org.eclipse.jdt.core/debug/builder=true
org.eclipse.jdt.core/debug/builder/stats= true

Then launch your eclipse with -debug <pathToConfigIni> and log the stuff
into a file (it will be lots of data).

Next, file a bug report against Platform Resources and attach the
traces. Please cc me.

Dani
>
> Thanks,
>
Re: Java incremental build unexpected behaviour [message #910857 is a reply to message #910854] Mon, 10 September 2012 14:02 Go to previous messageGo to next message
Anselme LEBRUN is currently offline Anselme LEBRUNFriend
Messages: 3
Registered: September 2012
Junior Member
OK, I will do that.
I'll keep you in touch.
Thanks for your quick answer.

Anselme.
Re: Java incremental build unexpected behaviour [message #910879 is a reply to message #910857] Mon, 10 September 2012 14:56 Go to previous message
Anselme LEBRUN is currently offline Anselme LEBRUNFriend
Messages: 3
Registered: September 2012
Junior Member
I've done the experiment,
And the source of re-build is related to following cause in LOG file :

P/.org.eclipse.jdt.core.external.folders is not a Java project
Missing delta for: .org.eclipse.jdt.core.external.folders
Performing full build since deltas are missing after incremental request

I've search for this keyword on internet and found out that there was a bug related to it.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=280888

According to this one, the bug should be fixed.

I guess I've fall into another corner case of this problem.
I'll try to investigate a little bit more. And re-open the bug eventually.

BR,
Anselme
Previous Topic:How to generate a valid abstract syntax tree with "..jdt.core.dom"
Next Topic:Need help with .jar usage
Goto Forum:
  


Current Time: Sat Dec 20 07:32:54 GMT 2014

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

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