[hibernate-commits] Hibernate SVN: r21004 - entitymanager/branches/v3_4_0_GA_CP/src/main/java/org/hibernate/ejb/packaging.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Fri Dec 23 09:17:49 EST 2011


Author: alessandrolt
Date: 2011-12-23 09:17:49 -0500 (Fri, 23 Dec 2011)
New Revision: 21004

Modified:
   entitymanager/branches/v3_4_0_GA_CP/src/main/java/org/hibernate/ejb/packaging/JarVisitorFactory.java
Log:
JBPAPP-7815: Auto scan for JPA entities breaks for Zipped Files. Removed vfszip from conditional to JarVisitorFatory returning InputStreamZippedJarVisitor instead of FileZippedJarVisitor

Modified: entitymanager/branches/v3_4_0_GA_CP/src/main/java/org/hibernate/ejb/packaging/JarVisitorFactory.java
===================================================================
--- entitymanager/branches/v3_4_0_GA_CP/src/main/java/org/hibernate/ejb/packaging/JarVisitorFactory.java	2011-12-23 14:13:59 UTC (rev 21003)
+++ entitymanager/branches/v3_4_0_GA_CP/src/main/java/org/hibernate/ejb/packaging/JarVisitorFactory.java	2011-12-23 14:17:49 UTC (rev 21004)
@@ -121,7 +121,7 @@
 		if ( "jar".equals( protocol ) ) {
 			return new JarProtocolVisitor( jarUrl, filters, entry );
 		}
-		else if ( StringHelper.isEmpty( protocol ) || "file".equals( protocol ) || "vfszip".equals( protocol ) || "vfsfile".equals( protocol )  ) {
+		else if ( StringHelper.isEmpty( protocol ) || "file".equals( protocol ) || "vfsfile".equals( protocol )  ) {
 			File file;
 			try {
 				final String filePart = jarUrl.getFile();



More information about the hibernate-commits mailing list