Updated dependencies

This commit is contained in:
Ziver Koc 2015-05-04 16:41:55 +00:00
parent a06debdae3
commit b90d1ec5cf
2 changed files with 13 additions and 4 deletions

View file

@ -14,7 +14,7 @@
<src_folder value="file://$MODULE_DIR$/src" expected_position="0" /> <src_folder value="file://$MODULE_DIR$/src" expected_position="0" />
</src_description> </src_description>
</component> </component>
<component name="NewModuleRootManager" inherit-compiler-output="false"> <component name="NewModuleRootManager" inherit-compiler-output="true">
<output url="file://$MODULE_DIR$/bin" /> <output url="file://$MODULE_DIR$/bin" />
<exclude-output /> <exclude-output />
<content url="file://$MODULE_DIR$"> <content url="file://$MODULE_DIR$">
@ -52,7 +52,6 @@
<SOURCES /> <SOURCES />
</library> </library>
</orderEntry> </orderEntry>
<orderEntry type="library" name="org.eclipse.jst.j2ee.internal.module.container" level="application" />
<orderEntry type="module-library" exported=""> <orderEntry type="module-library" exported="">
<library name="commons-fileupload-1.2.1.jar"> <library name="commons-fileupload-1.2.1.jar">
<CLASSES> <CLASSES>
@ -91,7 +90,6 @@
<SOURCES /> <SOURCES />
</library> </library>
</orderEntry> </orderEntry>
<orderEntry type="library" name="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0" level="application" />
<orderEntry type="inheritedJdk" /> <orderEntry type="inheritedJdk" />
<orderEntry type="module-library"> <orderEntry type="module-library">
<library name="sqlite-jdbc-3.7.2.jar"> <library name="sqlite-jdbc-3.7.2.jar">
@ -102,5 +100,14 @@
<SOURCES /> <SOURCES />
</library> </library>
</orderEntry> </orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/libs/servlet-api.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
</component> </component>
</module> </module>

View file

@ -84,7 +84,9 @@ public class FileUtil {
if(file!=null && file.exists()){ if(file!=null && file.exists()){
return file; return file;
} }
return new File(findURL(path).toURI()); URL url = findURL(path);
if(url != null)
return new File(url.toURI());
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }