[validation] Fixed problem when no validations exist in the system
authorAntonio Moreno <antonio.moreno@openbravo.com>
Tue, 30 Mar 2010 15:43:54 +0200
changeset 6887 13dabd88fa58
parent 6886 60a98816806d
child 6888 1fd8f4eca929
[validation] Fixed problem when no validations exist in the system
src-core/src/org/openbravo/buildvalidation/ValidationHandler.java
src-core/src/org/openbravo/modulescript/ModuleScriptHandler.java
src-util/diagnostic/.classpath
src-util/diagnostic/.project
src-util/diagnostic/.settings/.jsdtscope
src-util/diagnostic/.settings/org.eclipse.jdt.core.prefs
src-util/diagnostic/.settings/org.eclipse.jst.common.project.facet.core.prefs
src-util/diagnostic/.settings/org.eclipse.wst.common.component
src-util/diagnostic/.settings/org.eclipse.wst.common.project.facet.core.xml
src-util/diagnostic/.settings/org.eclipse.wst.jsdt.ui.superType.container
src-util/diagnostic/.settings/org.eclipse.wst.jsdt.ui.superType.name
src-util/diagnostic/WebContent/META-INF/MANIFEST.MF
src-util/diagnostic/WebContent/WEB-INF/web.xml
src-util/diagnostic/build-create.xml
src-util/diagnostic/build.xml
src-util/diagnostic/build/.keep
src-util/diagnostic/check-ob-perms.sh
src-util/diagnostic/config/diagnostics.properties
src-util/diagnostic/config/log4j.properties
src-util/diagnostic/src/Test.java
src-util/diagnostic/src/org/openbravo/check/Check.java
src-util/diagnostic/src/org/openbravo/task/CheckDB.java
src-util/diagnostic/src/org/openbravo/task/CheckEnvironmentVariables.java
src-util/diagnostic/src/org/openbravo/task/CheckJVMVersion.java
src-util/diagnostic/src/org/openbravo/task/CheckMemory.java
src-util/diagnostic/src/org/openbravo/task/CheckTomcatAntExecution.java
src-util/diagnostic/src/org/openbravo/task/CheckTomcatFilePermissions.java
src-util/diagnostic/src/org/openbravo/task/CheckTomcatMemory.java
src-util/diagnostic/src/org/openbravo/task/CheckTomcatVersion.java
src-util/diagnostic/src/org/openbravo/task/CheckX.java
src-util/diagnostic/src/org/openbravo/task/CompareVersion.java
src-util/diagnostic/src/org/openbravo/utils/PropertiesManager.java
src-util/diagnostic/src/org/openbravo/utils/ServerConnection.java
src-util/diagnostic/src/org/openbravo/utils/Version.java
--- a/src-core/src/org/openbravo/buildvalidation/ValidationHandler.java	Tue Mar 30 13:18:54 2010 +0200
+++ b/src-core/src/org/openbravo/buildvalidation/ValidationHandler.java	Tue Mar 30 15:43:54 2010 +0200
@@ -70,6 +70,9 @@
   }
 
   private void readClassFiles(List<String> coreClasses, File file) {
+    if (!file.exists()) {
+      return;
+    }
     if (file.isDirectory()) {
       File[] files = file.listFiles();
       for (File f : files) {
--- a/src-core/src/org/openbravo/modulescript/ModuleScriptHandler.java	Tue Mar 30 13:18:54 2010 +0200
+++ b/src-core/src/org/openbravo/modulescript/ModuleScriptHandler.java	Tue Mar 30 15:43:54 2010 +0200
@@ -59,6 +59,9 @@
   }
 
   private void readClassFiles(List<String> coreClasses, File file) {
+    if (!file.exists()) {
+      return;
+    }
     if (file.isDirectory()) {
       File[] files = file.listFiles();
       for (File f : files) {
@@ -66,7 +69,6 @@
       }
     } else {
       String fileName = file.getAbsolutePath();
-      System.out.println(fileName);
       fileName = fileName.split("build" + File.separatorChar + "classes" + File.separatorChar)[1];
       coreClasses.add(fileName.replace(".class", "").replace(File.separatorChar, '.'));
     }