ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Wood (JIRA)" <j...@apache.org>
Subject [jira] Closed: (IVY-948) cachefileset produces an empty fileset when the cache refers to libs in directories that only have the root directory in common
Date Sun, 19 Oct 2008 08:26:46 GMT

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

Chris Wood closed IVY-948.
--------------------------


Verified

> 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: trunk
>
>
> 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.


Mime
View raw message