[
https://issues.apache.org/jira/browse/IVY-948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maarten Coene resolved IVY-948.
-------------------------------
Resolution: Fixed
Fix Version/s: trunk
Assignee: Maarten Coene
Thanks for your contribution.
I've applied a fix into SVN trunk.
Please verify if it's working for you.
> 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.