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:
parent
53254ebf54
commit
99c1aa660f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue