svn commit: r1139692 - /ofbiz/trunk/framework/start/src/org/ofbiz/base/start/Config.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1139692 - /ofbiz/trunk/framework/start/src/org/ofbiz/base/start/Config.java

doogie-3
Author: doogie
Date: Sun Jun 26 02:49:57 2011
New Revision: 1139692

URL: http://svn.apache.org/viewvc?rev=1139692&view=rev
Log:
FIX: Filter out hidden library files(and prevent recursing into hidden
folders).

Modified:
    ofbiz/trunk/framework/start/src/org/ofbiz/base/start/Config.java

Modified: ofbiz/trunk/framework/start/src/org/ofbiz/base/start/Config.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/start/src/org/ofbiz/base/start/Config.java?rev=1139692&r1=1139691&r2=1139692&view=diff
==============================================================================
--- ofbiz/trunk/framework/start/src/org/ofbiz/base/start/Config.java (original)
+++ ofbiz/trunk/framework/start/src/org/ofbiz/base/start/Config.java Sun Jun 26 02:49:57 2011
@@ -270,6 +270,9 @@ public class Config {
             File files[] = libDir.listFiles();
             for (File file: files) {
                 String fileName = file.getName();
+                if (file.isHidden()) {
+                    continue;
+                }
                 // FIXME: filter out other files?
                 if (file.isDirectory() && !"CVS".equals(fileName) && !".svn".equals(fileName) && recurse) {
                     loadLibs(classPath, file.getCanonicalPath(), recurse);