IvyDE
  1. IvyDE
  2. IVYDE-318

Incomplete variable substitution for ivysettings.xml

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0.beta1
    • Fix Version/s: 2.2.0.final
    • Component/s: classpath container
    • Labels:
      None
    • Environment:

      Eclipse Helios

      Description

      I'm getting an error which shows up on the IvyDE Managed Libraries screen, the Settings tab on the Ivy Setting Path. It says "Parsing error of the Ivy Settings". My ivysettings.xml file works fine in my ant/ivy level build.

      It appears that the properties defined in the property files also listed on this Settings tab are not used to do variable substitution on my Ivy settings file for the <classpath> tag definitions within it. It appears that only the ivy.settings.dir property is actually substituted. See the IvySettingsFile.java substitute method

      private String substitute(String str) {
      Map variables = new HashMap();
      if (file.getParentFile() != null)

      { URI settingsDirUri = file.getParentFile().toURI(); variables.put("ivy.settings.dir", settingsDirUri.toString()); }

      return IvyPatternHelper.substituteVariables(str, variables);
      }

      This needs to allow for the full set of properties configured via the associated properties files for these settings to be part of this variable substitution.

        Activity

          People

          • Assignee:
            Nicolas Lalevée
            Reporter:
            Daniel Holmes
          • Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development