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
1c2107899a
commit
0756bbfccf
|
@ -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