IvyDE
  1. IvyDE
  2. IVYDE-143

Conversion from "file:" to "project:" fails

    Details

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

      ubuntu, eclipse 3.4.0, ivyde trunk 12/24/2008

      Description

      I have been using the alpha version of IvyDE, and attempted to use a trunk build and encountered the following error when I load my existing ivyde eclipse based project:

      The project name '.' from 'project://./ivysettings.xml' was not found (project 'pentaho-xul-gwt' and ivy file 'ivy.xml')

      According to IVYDE-94, my "file://./ivysettings.xml" should automatically converted. Our problem is that we used "file:./ivysettings.xml". Here is my suggested fix in
      IvyClasspathContainerConfiguration.java:readOldIvySettings():

      replace:
      return PROJECT_SCHEME_PREFIX + url.getPath();
      with:
      String urlpath = url.getPath();
      if (urlpath != null && urlpath.length() > 1 && urlpath.startsWith("."))

      { urlpath = urlpath.substring(1); }

      return PROJECT_SCHEME_PREFIX + urlpath;

      Thanks!

      Will

        Activity

        Will Gorman created issue -
        Nicolas Lalevée made changes -
        Field Original Value New Value
        Assignee Nicolas Lalevée [ hibou ]
        Affects Version/s 2.0.0.final [ 12313533 ]
        Fix Version/s 2.0.0.final [ 12313533 ]
        Affects Version/s 2.0.0.beta1 [ 12313273 ]
        Hide
        Nicolas Lalevée added a comment -

        fix committed, thanks Will !

        Show
        Nicolas Lalevée added a comment - fix committed, thanks Will !
        Nicolas Lalevée made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        5d 11h 32m 1 Nicolas Lalevée 30/Dec/08 17:25

          People

          • Assignee:
            Nicolas Lalevée
            Reporter:
            Will Gorman
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development