1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
--- /home/sickboy/Desktop/backup/src/main/java/org/jvnet/winp/Native.java
+++ /home/sickboy/Desktop/winp/src/main/java/org/jvnet/winp/Native.java
@@ -73,8 +73,9 @@
filePortion = filePortion.substring(2);
filePortion = URLDecoder.decode(filePortion);
String preferred = System.getProperty(DLL_TARGET);
- File jarFile = new File(preferred != null ? preferred : filePortion);
- File dllFile = new File(jarFile.getParentFile(),dllName+".dll");
+ File jarFile = new File(filePortion);
+ File dllFile = new File(preferred != null
+ ? new File(preferred) : jarFile.getParentFile(),dllName+".dll");
if(!dllFile.exists() || jarFile.lastModified()>dllFile.lastModified()) {
// try to extract from within the jar
try {
|