Thanks Markus!
I generated index files first.
Then developed plugin to configure classpath entries by
“entryDescriptor.setClasspathAttribute(IClasspathAttribute.INDEX_LOCATION_ATTRIBUTE_NAME, indexFile.toURL().toString());”
After launch eclipse and import maven projects, I found jdt do reuse existed index files.
But it took longer time to complete build workspace job.
I have about 15 maven projects, before took 5 mins to build workspace.
Now, it took more than 6 mins to build workspace…
Is that expected result? I think pre-built index files should faster build workspace, right?
Regards
Simon
From: jdt-core-dev-bounces@xxxxxxxxxxx [mailto:jdt-core-dev-bounces@xxxxxxxxxxx]
On Behalf Of Markus Keller
Sent: 2012年11月26日
18:22
To: Eclipse JDT Core developers list.
Subject: Re: [jdt-core-dev] how to use pre-build jdt index files?
As the N&N says, this feature is not directly accessible for users.
PDE currently doesn't implement support for adding pre-built indexes to OSGi bundles. However, this could be implemented similar to how source bundles work.
http://help.eclipse.org/juno/topic/org.eclipse.jdt.doc.isv/guide/jdt_api_searchindex.htm
tells how to use this if you implement your own classpath container.
https://bugs.eclipse.org/356620 has all the history.
Markus
Hi,
After 3.8, JDT have JavaIndexer to pre-build index files for dependencies.
I'm trying to do this.
But my question is: when is the right time point to generate index files?
and how to apply those index files? Just copy those index files into workspace/.plugins/{jdt.core.folder}?
Regards
Simon_______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jdt-core-dev