src/jdk.jpackage/share/classes/jdk/jpackage/internal/DeployParams.java
branchJDK-8200758-branch
changeset 57276 eac9018748b3
parent 57256 d7c27451f759
child 57314 23da9e6f446f
equal deleted inserted replaced
57269:d28d38406872 57276:eac9018748b3
   224         }
   224         }
   225         return files;
   225         return files;
   226     }
   226     }
   227 
   227 
   228     public void addResource(File baseDir, String path) {
   228     public void addResource(File baseDir, String path) {
   229         File file = new File(baseDir, path);
   229         addResource(baseDir, new File(baseDir, path));
   230         // normalize top level dir
       
   231         // to strip things like "." in the path
       
   232         // or it can confuse symlink detection logic
       
   233         file = file.getAbsoluteFile();
       
   234 
       
   235         if (baseDir == null) {
       
   236             baseDir = file.getParentFile();
       
   237         }
       
   238         resources.add(new RelativeFileSet(
       
   239                 baseDir, new LinkedHashSet<>(expandFileset(file))));
       
   240     }
   230     }
   241 
   231 
   242     public void addResource(File baseDir, File file) {
   232     public void addResource(File baseDir, File file) {
   243         // normalize initial file
   233         // normalize initial file
   244         // to strip things like "." in the path
   234         // to strip things like "." in the path