Set up a project completely outside existing source folders?

Answered
A coworker has set up his intellij project so that his source is in a completely separate subtree from all his Intellij files.   He did it by using "import modules from Eclipse project" in the import modules wizard.    I'd like to do the same thing without resorting to the Eclipse import, just import the source and tell Intellij to stick the .iml files in the same directory with the .ipr file, instead of with the source.    Is there a way to do this without using the Eclipse wizard?
3 comments
Comment actions Permalink

Create a new empty projet in the new directory outside your project roots, then start adding modules via wizard. When you add a new module, you can specify the location of .iml files for them.

1
Comment actions Permalink
I just tried this again, thinking I had missed something.     I am not seeing any option to select or change location when I choose the "Create module from existing sources" button.I see the  "Keep project and modules files in [location]" option when I the Eclipse import option.  This is not a Maven or Gradle project (it uses Ant/Ivy), so the other options do not apply.When I seleect the "Create module from existing sources" radio button I go directly to a step called "Import Module" which does not let me pick any locations at all.   If I proceed forward from this step, and complete the process,  .iml files are created in the source directories.   This is what I do not want, but it doesn't seem that there is any way to change it.I am attaching screenshots showing:  1) The initial screen, 2) the Eclipse import screen showing location choice option, and the 3) Import Module screen showing NO location choice option.If this can't be done by "Create module from existing sources," then that's fine, I will live with it, but it seems like a bit of a hole in the feature set.Thanks -

Attachment(s):
intellij_create.PNG
intellij_new.PNG
intellij_eclipse.PNG
1
Comment actions Permalink
Wait, I see what you meant.    Add them as NEW modules, not via IMPORT.    I'll give that a try.   Sorry for my confusion.
1

Please sign in to leave a comment.