sharing IvyIDEA configurations in SCM

Hi,

We're currently trying to figure out the best way to share our IntelliJ project files in Subversion.

I've followed the advice here: https://intellij-support.jetbrains.com/entries/23393067

One problem I think we might have is our Ivy facets.  These store absolute paths to the Ivy configuration files (and properties files) in the module's .iml file.  This means that unless people check out their projects to the exact same location, this location will differ between developers.

Is there a way to specify a relative path for these files?  These files will be contained within the module itself...

The items in question are these (from the module.iml containing the Ivy facet):

    <facet type="IvyIDEA" name="IvyIDEA">
      <configuration ivyFile="D:\w2\jfm\trunk\jfm-trunk\newbuild\ivy.xml" useProjectSettings="false" useCustomIvySettings="true" ivySettingsFile="D:\w2\jfm\trunk\jfm-trunk\newbuild\common\ivysettings.xml" onlyResolveSelectedConfigs="true">

and

        <propertiesSettings>
          <propertiesFiles includeProjectLevelPropertiesFiles="true">
            <fileName>D:\w2\jfm\trunk\jfm-trunk\newbuild\common\workbench.properties</fileName>
            <fileName>D:\w2\jfm\trunk\jfm-trunk\newbuild\jfm.properties</fileName>
          </propertiesFiles>
        </propertiesSettings>

1 comment
Comment actions Permalink

I edited iml files (and .idea/misc.xml file with reference to ivy-settings) in text editor, and I replaced full paths with properties: 

$MODULE_DIR$/ivy-expanded.xml

$PROJECT_DIR$/ivy-settings.xml

It seems to be working.

0

Please sign in to leave a comment.