Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 339608

Summary: Is shared indexing possible through command line
Product: [Tools] CDT Reporter: Parag <parag_shastri>
Component: cdt-indexerAssignee: Project Inbox <cdt-indexer-inbox>
Status: RESOLVED INVALID QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug, remy.suen
Version: 7.0.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Parag CLA 2011-03-10 17:17:56 EST
Build Identifier: Build id: 20100917-0705

I am trying to automate populating user workspace with pre built indexer.
I have 3 projects and I run headless build on 3 projects 
eclipse -data <workspace1><project> -application headlessbuild
It creates the .metadata/ directories including .pdom ( index file).

What I am trying to achive now is:
- User starts eclipse
eclipse -data <workspace1><project> -nosplash and that should result in loading of indexer information so that design can start working.

I tried the above, but EClipse CDT starts indexing as soon as project opens in Eclipse. I have managed to shut off Build Automatically option.

It almost seems like it's not able to read the Indexer information.


Only way I have been able to achieve is by doing following:
1. Open Eclipse
2. Open a Makefile project and Index it.
3. Export it using Team Shared Index
Once done, I can import the Team shared index in User workspace.

Any comments will be helpful. I read somewhere that pdom files cannot be copied. Also, there was a mention of IReadPDOMProvider plug in.

Reproducible: Always

Steps to Reproduce:
1. Build a workspace using headless build i.e. eclipse -data <ws> -s <src_dir> -p <project name>
2. eclipse -date <ws> 
3. It still builds indexer
Comment 1 Remy Suen CLA 2011-03-10 17:23:11 EST
Please open bugs and concerns over CDT with CDT.
Comment 2 Markus Schorn CLA 2011-03-28 04:36:13 EDT
This is no bug report.