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);
Show replies by date