How do I generate an .ipr file?

So you might be thinking, what?  How could you possibly not know that?  ;)  Bear with me a sec.  So I have a largist project structure that I'm working with.  It consists of quite a few modules.  I'd like to be able to "carry" this structure somewhere else fairly easily, or make a copy of it and have that copy easy to work with.  Sounds easy enough.  Well, I believe the key piece I'm missing at the moment is the .ipr file.  I can not find any sign that IntelliJ created one for me.  I suspect it has something to do with how I built the project space, but then again . . .   I mean the space as-is is working just fine for me.  No problems there.  But I want to effectively branch the entire structure to work on another concept and without that .ipr file, I can't just copy the structure, open the new .ipr file, and go.  So--- is there any way to force IntellIJ to create the .ipr file if it hasn't already created one?  

I know this sounds a tad bizarre -- the problem is I am having trouble coming up with the right words to describe my scenario.  I'm hoping this will generate something I can work with or something I can at least provide more details on.

I more or less created this structure from a series of VCS checkouts and .iml files.

0

I am not sure I understand, but perhaps you used the directory based project format when you created your project. That would mean your project settings are stored in a .idea directory. There is no other way a IntelliJ IDEA project can work without an *.ipr file, as far as I know.

Another option might be that the ipr file is stored in some other directory than your project. If you close your project and then hover your mouse cursor over the project name in the File > Reopen menu, the path of the project file is shown in the status bar (in IntelliJ IDEA 10 at least).

Hope that helps a little,
Bas

0
Avatar
Permanently deleted user

Aha!  I do have a .idea directory.  And that would explain why I wasn't able to just copy the project based off where that .idea folder is.  Hrm.  I don't really know how I got to that instead of having a .ipr, but at least I know what I'm looking at now.  =)  I may rebuild my project space at some point so that it is better behaved.  Thanks!

0

Please, EVERYTIME I have to start a new project with our framework, I have to recreate the whole run configuration and is a BIG WASTE OF TIME, please, I need a straight answer, which versions generate which files related to run configuration and under which circumstances.

0

Found them, in on project it was on a .ipr on another folder because I did not want to generate any file on the repository folder, it generated files either way. On the new project a xml file was generated under .idea/runConfigurations, on the .ipr several configurations can go inside the <component name="ProjectRunConfigurationManager"> element, on the .xml only one configuration can be added per xml and component.

0

请先登录再写评论。