Better pass absolute file to FU.normalizeFile, so relative paths are always resolved to the correct base dir
authorJan Lahoda <jlahoda@netbeans.org>
Mon, 01 Apr 2013 23:49:08 +0200
changeset 9414235164505af
parent 940 9f370ccd04cc
child 942 0d17e104d2d3
Better pass absolute file to FU.normalizeFile, so relative paths are always resolved to the correct base dir
cmdline/compiler/src/org/netbeans/modules/jackpot30/compiler/HintsAnnotationProcessingImpl.java
     1.1 --- a/cmdline/compiler/src/org/netbeans/modules/jackpot30/compiler/HintsAnnotationProcessingImpl.java	Mon Apr 01 22:53:34 2013 +0200
     1.2 +++ b/cmdline/compiler/src/org/netbeans/modules/jackpot30/compiler/HintsAnnotationProcessingImpl.java	Mon Apr 01 23:49:08 2013 +0200
     1.3 @@ -213,7 +213,7 @@
     1.4  
     1.5          if (files != null) {
     1.6              for (File f : files) {
     1.7 -                urls.add(FileUtil.urlForArchiveOrDir(FileUtil.normalizeFile(f)));
     1.8 +                urls.add(FileUtil.urlForArchiveOrDir(FileUtil.normalizeFile(f.getAbsoluteFile())));
     1.9              }
    1.10          }
    1.11