File: winp.patch

package info (click to toggle)
netbeans 8.1%2Bdfsg3-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 816,472 kB
  • ctags: 847,258
  • sloc: java: 5,564,229; xml: 634,273; cpp: 25,695; ansic: 20,104; jsp: 12,621; sh: 10,354; php: 4,204; makefile: 1,456; fortran: 1,200; sql: 1,192; objc: 288; perl: 277; haskell: 120; yacc: 30; awk: 17; lex: 11; asm: 4
file content (18 lines) | stat: -rw-r--r-- 1,200 bytes parent folder | download | duplicates (2)
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 {