src/jdk.jpackage/windows/classes/jdk/jpackage/internal/WinExeBundler.java
branchJDK-8200758-branch
changeset 57407 2c14fbeff1dc
parent 57397 89549ecec1c7
child 57411 4a80a72a891d
equal deleted inserted replaced
57405:539d8b3f9e1e 57407:2c14fbeff1dc
   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         }