Author: nextgens
Date: 2008-07-22 21:18:07 +0000 (Tue, 22 Jul 2008)
New Revision: 21323
Modified:
trunk/contrib/fec/common/src/com/onionnetworks/util/NativeDeployer.java
Log:
freenet-ext: follow-up to r20264: use a temp filename and screw caching; the
library is small anyway
Modified:
trunk/contrib/fec/common/src/com/onionnetworks/util/NativeDeployer.java
===================================================================
--- trunk/contrib/fec/common/src/com/onionnetworks/util/NativeDeployer.java
2008-07-22 20:22:09 UTC (rev 21322)
+++ trunk/contrib/fec/common/src/com/onionnetworks/util/NativeDeployer.java
2008-07-22 21:18:07 UTC (rev 21323)
@@ -93,17 +93,7 @@
public synchronized final static String getLocalResourcePath
(ClassLoader cl, String resourcePath) throws IOException {
- File f = new File(System.getProperty("java.io.tmpdir")+
- File.separator+".onionnetworks"+
- File.separator+System.getProperty("user.name")+
- File.separator+resourcePath);
- File parentF = f.getParentFile();
- if (parentF == null) {
- return null;
- }
- if (!parentF.exists()) {
- parentF.mkdirs();
- }
+ File f = File.createTempFile("libfec",".tmp");
URL url = cl.getResource(resourcePath);
if (url == null) {
return null;