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
Priority: Blocker
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.