equal
deleted
inserted
replaced
340 return true; |
340 return true; |
341 } |
341 } |
342 |
342 |
343 public File bundle(Map<String, ? super Object> params, File outdir) |
343 public File bundle(Map<String, ? super Object> params, File outdir) |
344 throws PackagerException { |
344 throws PackagerException { |
345 if (!outdir.isDirectory() && !outdir.mkdirs()) { |
345 |
346 throw new PackagerException("error.cannot-create-output-dir", |
346 IOUtils.writableOutputDir(outdir.toPath()); |
347 outdir.getAbsolutePath()); |
|
348 } |
|
349 if (!outdir.canWrite()) { |
|
350 throw new PackagerException("error.cannot-write-to-output-dir", |
|
351 outdir.getAbsolutePath()); |
|
352 } |
|
353 |
347 |
354 String tempDirectory = WindowsDefender.getUserTempDirectory(); |
348 String tempDirectory = WindowsDefender.getUserTempDirectory(); |
355 if (Arguments.CLIOptions.context().userProvidedBuildRoot) { |
349 if (Arguments.CLIOptions.context().userProvidedBuildRoot) { |
356 tempDirectory = TEMP_ROOT.fetchFrom(params).getAbsolutePath(); |
350 tempDirectory = TEMP_ROOT.fetchFrom(params).getAbsolutePath(); |
357 } |
351 } |