Refactoring API

Hi,


Sorry if this is a repeated post, but I was wondering if it is possible to use the Refactoring API outside the IDE/plugin.
I would like to call some refactorings on some java/xml source code files.
Do you have some links/examples to code that does that?
Thanks in advance!



Best regards,
Iulian Dumitru

1 comment
Comment actions Permalink

Hello iulian,

You can probably write a command-line application that would initialize IntelliJ
IDEA, configure your project and then invoke the necessary refactorings.
This will be fairly slow, though - initializing IDEA takes a long time.

See InspectionApplication in the CE source code for an example command-line
application.

Sorry if this is a repeated post, but I was wondering if it is
possible to use the Refactoring API outside the IDE/plugin.

I would like to call some refactorings on some java/xml source code
files.

Do you have some links/examples to code that does that?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.