[teiid-commits] teiid SVN: r799 - trunk/metadata/src/main/java/com/metamatrix/modeler/internal/core/index.

teiid-commits at lists.jboss.org teiid-commits at lists.jboss.org
Mon Apr 20 10:09:48 EDT 2009


Author: shawkins
Date: 2009-04-20 10:09:47 -0400 (Mon, 20 Apr 2009)
New Revision: 799

Modified:
   trunk/metadata/src/main/java/com/metamatrix/modeler/internal/core/index/RuntimeIndexSelector.java
Log:
TEIID-427 changing the isDirectory check to be on the zip entry

Modified: trunk/metadata/src/main/java/com/metamatrix/modeler/internal/core/index/RuntimeIndexSelector.java
===================================================================
--- trunk/metadata/src/main/java/com/metamatrix/modeler/internal/core/index/RuntimeIndexSelector.java	2009-04-19 16:32:45 UTC (rev 798)
+++ trunk/metadata/src/main/java/com/metamatrix/modeler/internal/core/index/RuntimeIndexSelector.java	2009-04-20 14:09:47 UTC (rev 799)
@@ -337,7 +337,7 @@
                     // create a file at the temporary location writing
                     // the contents of the zip entry to this file
                     File entryFile = new File(getIndexDirectoryPath(), entry.getName());
-                    if (entryFile.isDirectory()) {
+                    if (entry.isDirectory()) {
                     	entryFile.mkdirs();
                     } else {
                     	FileUtils.write(zipInputStream, entryFile, length);




More information about the teiid-commits mailing list