Project file reorganisation

Hi all,

We have our project files (ipr and iml) checked into Subversion. We have some ant task triggers (before run, after compilation, etc), and IntelliJ likes to rearrange them apparently at random in the project file. These are the executeOn elements inside the buildFile element in the ipr. Is there any way to stop IntelliJ doing this? It makes it difficult to see if these have actually changed, and it means the project file gets submitted much more than necessary.


Comment actions Permalink

I still get this issue. The basic symptom is the project file is rewritten depending on the user in the team. Sometimes the change is a reordering of some elements. Other times dumb things like the debug port in a run configuration is changed - this one can happen for the same user (If the debug port is dynamic then the setting should say "dynamic" not change every time a new port is used). Or settings for a plugin are put there. This makes putting a project file under source control very difficult to manage without error because it's difficult to know if the change should really be committed.

Is there a way to prevent this? The closest I've come is to use the directory based format. Using this we can add the file names for settings files for individual developer plugins to the ignore list of the source control app, but we can't prevent the debug port from being overwritten or the elements from being reordered.

My Environment is Windows XP, JDK 1.6.0_10, and Idea 8.1 Build # 9732

Christian maslen


Please sign in to leave a comment.