HHH-8394 Wrong processing of package-info.java on Windows
This commit is contained in:
parent
ea7f1e805c
commit
e903b3d3cf
|
@ -28,8 +28,6 @@ import org.hibernate.jpa.boot.archive.spi.ArchiveEntry;
|
|||
import org.hibernate.jpa.boot.internal.PackageDescriptorImpl;
|
||||
import org.hibernate.jpa.boot.spi.PackageDescriptor;
|
||||
|
||||
import static java.io.File.separatorChar;
|
||||
|
||||
/**
|
||||
* Defines handling and filtering for package-info file entries within an archive
|
||||
*
|
||||
|
@ -68,7 +66,7 @@ public class PackageInfoArchiveEntryHandler extends AbstractJavaArtifactArchiveE
|
|||
protected PackageDescriptor toPackageDescriptor(ArchiveEntry entry) {
|
||||
final String packageInfoFilePath = entry.getNameWithinArchive();
|
||||
final String packageName = packageInfoFilePath.substring( 0, packageInfoFilePath.lastIndexOf( '/' ) )
|
||||
.replace( separatorChar, '.' );
|
||||
.replace( '/', '.' );
|
||||
|
||||
return new PackageDescriptorImpl( packageName, entry.getStreamAccess() );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue