Hi Doug,
I agree with your
suggestion of not waiting for the Index while building.
The only case when I have
a trouble with incomplete index now is my Internal Builder/Build Model dependency
calculation JUnits. I had to put a delay in those tests to ensure that the
index is completed before the Build Model is generated, but in case there is an
API to get the Index status I’d switch to use it instead.
Mikhail
From:
cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Doug Schaefer
Sent: Monday, October 09, 2006
10:57 PM
To: CDT
General developers list.
Subject: RE: [cdt-dev] How to
determine when the project indexing is compl eted
There’s no such
mechanism in place today. It should be possible to generate an event when the
indexer job queue becomes empty and the indexer job finishes. However I
don’t think we want to hold up building until the indexer is finished.
We’ve done that in the past and it really sucked.
For build dependencies,
all you really need is the dependencies at the time of the last build. If
dependencies change, the files change and rebuild anyway. With the new Fast
indexer which has super fast incremental indexing times, you should have no
problem keeping up. The only time you need to worry is when the initial index
is created for new/imported projects, in which case you should be doing a full
build anyway.
I’d be interested
in hearing about cases where this wouldn’t work.
Cheers,
From:
cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Sennikovsky, Mikhail
Sent: Monday, October 09, 2006
12:17 PM
To: CDT
General developers list.
Subject: [cdt-dev] How to
determine when the project indexing is completed
Hi Doug, Markus and all,
I’ve got a PDOM/Index – related question:
is there any way to programmatically determine the project [re]indexing status,
i.e. whether the project indexing is in progress or completed, etc. Since the
Internal Builder is going to use the dependency calculation mechanism based on
the PDOM information, it would be good if I could determine whether the
indexing is completed and wait for the Indexer to complete if necessary to
ensure the Internal Builder dependency tracking accuracy.
Thanks,
Mikhail