Fixed issue 13106. Modules with tables added to the name exceptions can now be exported and packaged.
authorAntonio Moreno <antonio.moreno@openbravo.com>
Fri, 23 Apr 2010 16:02:38 +0200
changeset 7137 ecec4ea06a1d
parent 7136 72a9865d5f18
child 7138 cb15f7a33252
Fixed issue 13106. Modules with tables added to the name exceptions can now be exported and packaged.
src/org/openbravo/service/system/SystemValidationTask.java
--- a/src/org/openbravo/service/system/SystemValidationTask.java	Fri Apr 23 15:13:30 2010 +0200
+++ b/src/org/openbravo/service/system/SystemValidationTask.java	Fri Apr 23 16:02:38 2010 +0200
@@ -33,7 +33,8 @@
 import org.openbravo.dal.core.DalInitializingTask;
 import org.openbravo.dal.service.OBCriteria;
 import org.openbravo.dal.service.OBDal;
-import org.openbravo.ddlutils.task.DatabaseUtils;
+import org.openbravo.ddlutils.util.DBSMOBUtil;
+import org.openbravo.ddlutils.util.ModuleRow;
 import org.openbravo.model.ad.module.Module;
 
 /**
@@ -84,8 +85,9 @@
         String dbPrefix = module.getModuleDBPrefixList().get(0).getName();
 
         String excludeobjects = "com.openbravo.db.OpenbravoExcludeFilter";
-        ExcludeFilter filter = DatabaseUtils.getExcludeFilter(excludeobjects);
-        filter.addPrefix(dbPrefix);
+        DBSMOBUtil.getInstance().getModules(platform, excludeobjects);
+        final ModuleRow row = DBSMOBUtil.getInstance().getRowFromDir(module.getJavaPackage());
+        ExcludeFilter filter = row.filter;
 
         Database database = platform.loadModelFromDatabase(filter, dbPrefix, true, module.getId());
         final DatabaseValidator databaseValidator = new DatabaseValidator();