svn commit: r585590 - /ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Classpath.java

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

svn commit: r585590 - /ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Classpath.java

doogie-3
Author: doogie
Date: Wed Oct 17 10:34:48 2007
New Revision: 585590

URL: http://svn.apache.org/viewvc?rev=585590&view=rev
Log:
Make addComponent(String) call addComponent(File).  Closes
https://issues.apache.org/jira/browse/OFBIZ-1310

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

Modified: ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Classpath.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Classpath.java?rev=585590&r1=585589&r2=585590&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Classpath.java (original)
+++ ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Classpath.java Wed Oct 17 10:34:48 2007
@@ -45,16 +45,7 @@
 
     public boolean addComponent(String component) {
         if ((component != null) && (component.length() > 0)) {
-            try {
-                File f = new File(component);
-                if (f.exists()) {
-                    File key = f.getCanonicalFile();
-                    if (!_elements.contains(key)) {
-                        _elements.add(key);
-                        return true;
-                    }
-                }
-            } catch (IOException e) {}
+            return addComponent(new File(component));
         }
         return false;
     }