projectStructureDetector can only mark sources
Hi,
I am implementing ProjectStructureDetector to allow creating new project/module from existing sources.
However, in setupProjectStructure, I can only add ModuleDescriptor-s to ProjectDescriptor and ModuleDescriptor only allows to mark source directories.
What's the best way to also set up resources and maybe even create default run configuration when importing project/module from existing sources etc?
I already have the neccessary code for new project/module in ModuleBuilder.
While writing this I found a solution, by adding configuration updater via moduleDescriptor.addConfigurationUpdater and calling my moduleBuilder.setupRootModel from there. Is this an OK solution?
Please sign in to leave a comment.