equal
deleted
inserted
replaced
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 |