1 year ago

#330857

test-img

Ev0oD

Can I change the default set of excludeFolders for generated IML for an imported grails project

When importing a grails project, it will automatically build an iml file for it. However, I always end up marking web-app folder as excluded. I have to do this with every imported project. I wanted to put IML into VCS, however, since it's generated and it contains local environment-specific stuff, we can't really push it to VCS.

Is there a way to somehow modify the default contents of a generated IML file?

The set is

  <excludeFolder url="file://$MODULE_DIR$/target/work/resources" />
  <excludeFolder url="file://$MODULE_DIR$/target/work/scriptCache" />
  <excludeFolder url="file://$MODULE_DIR$/web-app" />                   // THIS ONE IS MISSING
  <excludeFolder url="file://$MODULE_DIR$/target/classes" />
  <excludeFolder url="file://$MODULE_DIR$/target/work/stubs" />
  <excludeFolder url="file://$MODULE_DIR$/target/work/tomcat" />
  <excludeFolder url="file://$MODULE_DIR$/target/work/plugin-classes" />
  <excludeFolder url="file://$MODULE_DIR$/target/work/plugin-build-classes" />
  <excludeFolder url="file://$MODULE_DIR$/target/work/plugin-provided-classes" />

It seems pretty generic, probably generated identically for imported maven projects. Is it possible for me to modify the defaults for new imported maven projects somehow?

maven

intellij-idea

grails

iml

0 Answers

Your Answer

Accepted video resources