Fixed 9286. Now install.source should work without sampledata
authorAntonio Moreno <antonio.moreno@openbravo.com>
Thu, 11 Jun 2009 12:17:59 +0200
changeset 3994 b0d067451972
parent 3993 204e71d99682
child 3995 88e93b5b7c41
Fixed 9286. Now install.source should work without sampledata
src/org/openbravo/service/db/ImportReferenceDataTask.java
--- a/src/org/openbravo/service/db/ImportReferenceDataTask.java	Wed Jun 10 15:34:15 2009 +0200
+++ b/src/org/openbravo/service/db/ImportReferenceDataTask.java	Thu Jun 11 12:17:59 2009 +0200
@@ -37,10 +37,6 @@
   @Override
   protected void doExecute() {
     final File importDir = getReferenceDataDir();
-    if (importDir.listFiles().length == 0) {
-      throw new OBException("No import files present in the import directory: "
-          + importDir.getAbsolutePath());
-    }
 
     for (final File importFile : importDir.listFiles()) {
       if (importFile.isDirectory()) {