Does the "Share Configuration" checkbox do anything?

I have setup a couple of web application projects for local development with IntelliJ's Weblogic integration.

I would like to share this setup with some teammates, I see the Share Configuration checkbox in the Run configuration setup. However, when checking it nothing really happens. What is supposed to happen? Does it work? Is the configuration exported somewhere in XML or something?

The help just says checking that box enables sharing of the configuration. Doesn't really give much more details than that.

Anyone used this option before?

6 comments
Comment actions Permalink

It stores your "Run" configuration in the project file (.ipr) instead of
the workspace file (.iws).
When you share the project (for example through version control system),
you should not exchange .iws files.

TomP

0
Comment actions Permalink

Thanks for the info.

We have never really had luck committing the .ipr files to version control. Always seem to be changing and always in conflict (and it is something of a holy war between people who think they should/shouldn't be committed)

0
Comment actions Permalink

We used to have the same problems with the IPR file pre-IDEA 6, but we've been successfully sharing them ever since then. We've found that the benefits of sharing the IPR via VCS far outweigh the problems with the odd (and I mean odd) conflict.

What elements are getting updated so often that they are causing you problems?

0
Comment actions Permalink

It has actually been quite a while since we have attempted to put the .ipr in version control so I can't remember exactly what issues we were having. I do remember having a lot of conflicts (however this could have been due to people not doing an update before changing project settings).

It may have been in IntelliJ 5.x days since we last tried. Maybe I will test it out on one project and see how it goes (using 7.0.2 now).

Do you just put the .ipr file in version control or do you also put the .iml and .iws files?

0
Comment actions Permalink

Of course you need .iml in VC.
Never store .iws files in VC: these are personal workspaces.

0
Comment actions Permalink

Hi,

om_anonymous wrote:

It stores your "Run" configuration in the project file (.ipr) instead of
  the workspace file (.iws).


I'm using IntelliJ version 7.0.4. I've experimented a bit with the "Share configuration" checkbox. It appears to work as indicated for individual configurations, but what I really wanted to do was share my default JUnit configuration with my team. I checked "Share configuration" on the default JUnit configuration, but still it remains in the .iws file. Is this a bug, or am I doing something wrong? As far as I can tell, this feature doesn't work for default configurations.

Regards,
Erik

0

Please sign in to leave a comment.