Our company needs to create IDEA projects from a different executable (outside of the IDE). We have a build system that, with the appropriate command, checks out code and optionally creates debugging environments for various IDEs.
I've spent a day looking through and experimenting with the Open API to no avail. Help! :)
The closest I've come to is Priya's post regarding "creating projects programatically". Going by sheer guesswork, the code I've played with is: ProjectManager->getInstance() -> getDefaultProject() -> getModifiableModel() -> newModule(name). This fails immediately with a null exception trying to get the default project.
I would appreciate any help I can get lest I fall back to programatically reverse engineering the *.i?? XML files themselves, which would be fragile with regards to IDEA versioning.
Thanks in advance!