Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-core-dev] indexer question

hi,
when running our test case we sometimes see errors when deleting files
(we have like 1200 tests and each loads some files, saved the,m, does some
stuff, deletes them)

sometimes it randomly fails when deleting them - that'd be like 1 or 2 out
of the 1200.
my question is: could that be the indexer keeping some locks on these files
when we try to delete them?
if so, would a dummy search performed before deleting fix the problem?
or, better still - could i just force the indexer to do finish its job?
would the follwing code do it?

JavaModelManager.getJavaModelManager().getIndexManager().checkIndexConsisten
cy();



thanks

a.




Back to the top