equal
deleted
inserted
replaced
278 result.clear(); |
278 result.clear(); |
279 result.addAll(list); |
279 result.addAll(list); |
280 |
280 |
281 return ret; |
281 return ret; |
282 } |
282 } |
|
283 |
|
284 static void writableOutputDir(Path outdir) throws PackagerException { |
|
285 File file = outdir.toFile(); |
|
286 |
|
287 if (!file.isDirectory() && !file.mkdirs()) { |
|
288 throw new PackagerException("error.cannot-create-output-dir", |
|
289 file.getAbsolutePath()); |
|
290 } |
|
291 if (!file.canWrite()) { |
|
292 throw new PackagerException("error.cannot-write-to-output-dir", |
|
293 file.getAbsolutePath()); |
|
294 } |
|
295 } |
283 } |
296 } |