Execute IntelliJ Indexing Programmatically

Answered

I want to execute IntelliJ indexing via programming. Basically, I want to create one script(Gradle) which will execute all necessary steps(i.e build project, indexing, etc.) without opening IntelliJ. Does IntelliJ provides any API to do this ?

2 comments
Comment actions Permalink

You may be able to do this using ApplicationStarter but you'd need to write a custom plugin. You can also check https://www.jetbrains.com/help/idea/working-with-the-ide-features-from-command-line.html#arguments

 I've prototyped something similar but used the embedded web server for controlling IntelliJ while running. 

But why would you want to run the indexing without anything else? Perhaps you're looking for https://www.jetbrains.com/help/idea/shared-indexes.html?

 

 

 

0
Comment actions Permalink

Can you please share any examples of ApplicationStarter?

0

Please sign in to leave a comment.