Author: alessandrolt
Date: 2011-12-23 11:16:15 -0500 (Fri, 23 Dec 2011)
New Revision: 21006
Modified:
entitymanager/patches/3.4.0.GA_CP04_JBPAPP-7819/src/main/java/org/hibernate/ejb/packaging/JarVisitorFactory.java
Log:
JBPAPP-7819: The method getVisitor(URL jarUrl, Filter[] filters, String entry) does not
have conditionals for protocols vfs based, like vfszip or vfsfile. It returns an
InputStreamZippedJarVisitor implementation for both protocols. If it is a vfszip, it will
work, but will not not for vfsfile. The fix includes vfsfile to JarVisitorFactory, so it
can return ExplodedJarVisitor for vfsfile.
Modified:
entitymanager/patches/3.4.0.GA_CP04_JBPAPP-7819/src/main/java/org/hibernate/ejb/packaging/JarVisitorFactory.java
===================================================================
---
entitymanager/patches/3.4.0.GA_CP04_JBPAPP-7819/src/main/java/org/hibernate/ejb/packaging/JarVisitorFactory.java 2011-12-23
15:19:42 UTC (rev 21005)
+++
entitymanager/patches/3.4.0.GA_CP04_JBPAPP-7819/src/main/java/org/hibernate/ejb/packaging/JarVisitorFactory.java 2011-12-23
16:16:15 UTC (rev 21006)
@@ -105,7 +105,7 @@
if ( "jar".equals( protocol ) ) {
return new JarProtocolVisitor( jarUrl, filters, entry );
}
- else if ( StringHelper.isEmpty( protocol ) || "file".equals( protocol ) ) {
+ else if ( StringHelper.isEmpty( protocol ) || "file".equals( protocol ) ||
"vfsfile".equals( protocol ) ) {
File file;
try {
final String filePart = jarUrl.getFile();
Show replies by date