[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] Indexer from the command line?
|
hi Christophe,
this isn't something thats currently available.
However, its possible to write
a plug-in to do this using the CDT 4.0 core apis.
The sequence would be something like
Get the IIndexManager
via CCorePlugin
For each project
you're interested in
Get an ICProject reference via the CoreModel
Invoke IIndexManager.reindex
Invoke IndexManager.joinIndexer
For command-line use of the core you'll need to write
an extension to the
org.eclipse.core.runtime.applications
extension-point in order that the platform dependencies
are present/started correctly. (The core
does not run as a standalone jar).
Invoking it could then look like
eclipsec -application
org.christophe.ReindexProjects MyProject1 MyProject2 MyProject3
If you're interested in seeing this in/contributing
it to CDT then raising a bugzilla would be great,
thanks,
Andrew
> Dear community,
>
> Is it possible to launch the Indexer with a command line, like:
>
> java -jar <eclipse_dir>/plugins/<any_lib>.jar <project_loc>/.cproject
>
> This would allow to plan nightly index rebuilds :o)
>
> Thanks,
> Christophe
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
********************************************************************** Symbian Software Ltd is a company registered in England and Wales with registered number 4190020 and registered office at 2-6 Boundary Row, Southwark, London, SE1 8HP, UK. This message is intended only for use by the named addressee and may contain privileged and/or confidential information. If you are not the named addressee you should not disseminate, copy or take any action in reliance on it. If you have received this message in error please notify postmaster@xxxxxxxxxxx and delete the message and any attachments accompanying it immediately. Neither Symbian nor any of its Affiliates accepts liability for any corruption, interception, amendment, tampering or viruses occurring to this message in transit or for any message sent by its employees which is not in compliance with Symbian corporate policy. **********************************************************************