I have a large project with many large directory structure. They produce around 90 JARs. The IntelliJ project structure is not the same (or similar) to the one seen by Ant scripts. This creates a lot of problems while editing the code. Main side effect is incorrect dependencies get added. Essentially I am looking to create a one-jar one-module mapping
Is it possible to create Intellij modules programmatically? I can re-use existing set of libraries, created in IntelliJ
@CrazyCoder is right using maven would be a better solution, but that conversation may just be a little bit too much to swallow.
The
.imlfiles are just xml and while it isn’t documented it is pretty understandable. It shouldn’t be the trickest thing to create a template and then use either ant property replacement or a custom task to generate these files for each module.For reference you may want to look at the source for the maven-idea-plug it generates
.imlfiles for a maven project and may provide you with a hint on how todo this with ant. Note that @CrazyCoder points out the comments that this should only be a reference…don’t use this for maven support in Idea.