Project files (.ipr etc) in other directory
Is it possible to keep the project (and module) files of IntelliJ IDEA in another directory (than the project/module root)?
you know, files like foo.ipr, foo.iws and foo.iml .
We run Subversion and all of us use different IDE:s (by religius conviction :). It quickly becomes hairy if we all put our config files in the top-level directory. So would it be possible to coax IDEA to put these files in a sub-directory, e.g. 'foo/ide-files'? Or is IDEA hard-coded to always keep them in the project root?
Edited by: Per Lindberg on Nov 13, 2008 6:15 PM
请先登录再写评论。
Hello Per,
There is no need to coax. You can specify any directory as the content root
of your module, including one which is above the directory containing the
.ipr/.iml files.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Why does putting them all in project root get hairy?
We have both IntelliJ and Eclipse users where I work. Both the eclipse and intellij files are in the top-level of the project directory. Seems to work out just fine.
Dmitry: that sounds promising! But I can't figure out how to move foo.ipr, foo.iws and foo.iml from foo/ to e.g. foo/ide-stuff/ . Any practical suggestions would be most appreciated.
I think that you have a point: this is not a earth-shaking problem, only a minor aestetic one. But those are sometimes worth addressing, too.
Hello Per,
The easiest way is probably to recreate the project files. In the "New Project"
dialog, specify the foo/ide-stuff directory in "Project file location" and
"Module file location" fields and the "foo" directory in the "Content root"
field.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Yes, that works!
Unfortunately, there seems to be no way to refactor an existing project in this way (moving/renaming content root, project root, project name, project/module file location etc). Please consider adding that to IDEA. It would be most useful.