diff --git a/data/org.eclipse.birt.report.data.oda.jdbc.dbprofile.sampledb/src/org/eclipse/birt/report/data/oda/jdbc/dbprofile/sampledb/internal/impl/SampleDbFactory.java b/data/org.eclipse.birt.report.data.oda.jdbc.dbprofile.sampledb/src/org/eclipse/birt/report/data/oda/jdbc/dbprofile/sampledb/internal/impl/SampleDbFactory.java index 902dab808e3..3490a02f5ce 100644 --- a/data/org.eclipse.birt.report.data.oda.jdbc.dbprofile.sampledb/src/org/eclipse/birt/report/data/oda/jdbc/dbprofile/sampledb/internal/impl/SampleDbFactory.java +++ b/data/org.eclipse.birt.report.data.oda.jdbc.dbprofile.sampledb/src/org/eclipse/birt/report/data/oda/jdbc/dbprofile/sampledb/internal/impl/SampleDbFactory.java @@ -179,10 +179,15 @@ public boolean accept( File dir, String name ) File entryFile = new File( dbDir, entry.getName() ); if ( entry.isDirectory() ) { - entryFile.mkdir(); + entryFile.mkdirs(); } else { + File parent = entryFile.getParentFile(); + if (parent != null) + { + parent.mkdirs(); + } // Copy zip entry to local file OutputStream os = new FileOutputStream( entryFile ); byte[] buf = new byte[4000];