ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Gorman (JIRA)" <j...@apache.org>
Subject [jira] Created: (IVYDE-143) Conversion from "file:" to "project:" fails
Date Thu, 25 Dec 2008 05:54:44 GMT
Conversion from "file:" to "project:" fails
-------------------------------------------

                 Key: IVYDE-143
                 URL: https://issues.apache.org/jira/browse/IVYDE-143
             Project: IvyDE
          Issue Type: Bug
    Affects Versions: 2.0.0.final
         Environment: ubuntu, eclipse 3.4.0, ivyde trunk 12/24/2008
            Reporter: Will Gorman


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





-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message