- Make sure our file has an absolute path, otherwise we run into inconsistent behaviour
of File.exists()
This commit is contained in:
parent
ceebcdb96e
commit
a9aadfe00c
1 changed files with 7 additions and 1 deletions
|
@ -61,7 +61,13 @@ public final class ZipRepository extends AbstractRepository {
|
|||
* @param parent repository
|
||||
*/
|
||||
private ZipRepository(File file, Repository parent, ZipEntry zipentry) {
|
||||
// make sure our file has an absolute path,
|
||||
// see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4117557
|
||||
if (file.isAbsolute()) {
|
||||
this.file = file;
|
||||
} else {
|
||||
this.file = file.getAbsoluteFile();
|
||||
}
|
||||
this.parent = parent;
|
||||
|
||||
if (zipentry == null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue