You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Maarten Coene (JIRA)" <ji...@apache.org> on 2008/10/22 00:02:44 UTC

[jira] Updated: (IVY-948) cachefileset produces an empty fileset when the cache refers to libs in directories that only have the root directory in common

     [ https://issues.apache.org/jira/browse/IVY-948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maarten Coene updated IVY-948:
------------------------------

    Fix Version/s:     (was: trunk)
                   2.0-RC2

> cachefileset produces an empty fileset when the cache refers to libs in directories that only have the root directory in common
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: IVY-948
>                 URL: https://issues.apache.org/jira/browse/IVY-948
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 2.0-RC1
>         Environment: All environments
>            Reporter: Chris Wood
>            Assignee: Maarten Coene
>            Priority: Blocker
>             Fix For: 2.0-RC2
>
>
> If the cache is made up of libs from different directories such that they can only be references from the root directory, the fileset contains paths with the first character missing.
> And here's a fix:
> In class org.apache.ivy.ant.IvyCacheFileset.getPath(final File base, final File file):
>     private String getPath(final File base, final File file) {
>         if(base.getAbsolutePath().equals("/")) {
>             return file.getAbsolutePath().substring(base.getAbsolutePath().length());
>         }
>         return file.getAbsolutePath().substring(base.getAbsolutePath().length() + 1);
>     }

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