JarFileResource.getFile() now returns the Jar's java.io.File object

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
Joakim Erdfelt 2019-11-06 16:09:54 -06:00
parent 2d9f128410
commit 13a574557b
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 8 additions and 0 deletions

View File

@ -404,4 +404,12 @@ public class JarFileResource extends JarResource
URL url = new URL(string);
return url.sameFile(resource.getURI().toURL());
}
@Override
public File getFile()
{
if (_file != null)
return _file;
return null;
}
}