HHH-4161 - persistence.xml <jar-file> not following JSR220 spec

Switch to an OS-independent  way of checking absolute paths
This commit is contained in:
Vlad Mihalcea 2016-03-10 10:04:25 +02:00 committed by Andrea Boriero
parent 53254ebf54
commit 99c1aa660f
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ public class StandardArchiveDescriptorFactory implements ArchiveDescriptorFactor
}
final String filePart = extractLocalFilePath( url );
if ( filePart.startsWith( "/" ) ) {
if ( filePart.startsWith( "/" ) || new File(url.getFile()).isAbsolute() ) {
// the URL is already an absolute form
return url;
}