Author: doogie
Date: Wed Oct 17 10:34:48 2007
New Revision: 585590
URL:
http://svn.apache.org/viewvc?rev=585590&view=revLog:
Make addComponent(String) call addComponent(File). Closes
https://issues.apache.org/jira/browse/OFBIZ-1310Modified:
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;
}