agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/managers/launchers/AbstractJobLauncher.java
/**
     * Sets up the temp directory to stage application deployment assets, build and resolve wrapper templates, create
     * manifests, etc.
     *
     * @throws IOException when directory cannot be created
     */
Sets up the temp directory to stage application deployment assets, build and resolve wrapper templates, create
manifests, etc.

@throws IOException when directory cannot be created
Sets up the temp directory to stage application deployment assets build and resolve wrapper templates create manifests etc . @throws IOException when directory cannot be created
protected void createTempAppDir() throws IOException {
        step = "Creating local temp directory to process " + getJob().getSoftwareName() +
                " wrapper template for job " + getJob().getUuid();
        log.debug(step);
        File tempAppDir = Paths.get(Settings.TEMP_DIRECTORY).resolve(FilenameUtils.getName(getJob().getWorkPath())).toFile();
        if (tempAppDir.exists()) {
            log.debug("Local temp directory " + tempAppDir.getPath() + " for job " + getJob().getUuid() +
                    " already exists.");
        } else {
            if (!tempAppDir.mkdirs()) {
                throw new IOException("Unable to create temp directory at " + tempAppDir.getPath() + " to process " +
                        getJob().getSoftwareName() + " wrapper template for job " +
                        getJob().getUuid());
            } else {
                log.debug("Successfully created local temp directory " + tempAppDir.getPath() + " to process " +
                        getJob().getSoftwareName() + " wrapper template for job " +
                        getJob().getUuid());
            }
        }
        setTempAppDir(tempAppDir);
    }
protected void createTempAppDir ( ) throws IOException { step = "Creating local temp directory to process " + getJob ( ) . getSoftwareName ( ) + " wrapper template for job " + getJob ( ) . getUuid ( ) ; log . debug ( step ) ; File tempAppDir = Paths . get ( Settings . TEMP_DIRECTORY ) . resolve ( FilenameUtils . getName ( getJob ( ) . getWorkPath ( ) ) ) . toFile ( ) ; if ( tempAppDir . exists ( ) ) { log . debug ( "Local temp directory " + tempAppDir . getPath ( ) + " for job " + getJob ( ) . getUuid ( ) + " already exists." ) ; } else { if ( ! tempAppDir . mkdirs ( ) ) { throw new IOException ( "Unable to create temp directory at " + tempAppDir . getPath ( ) + " to process " + getJob ( ) . getSoftwareName ( ) + " wrapper template for job " + getJob ( ) . getUuid ( ) ) ; } else { log . debug ( "Successfully created local temp directory " + tempAppDir . getPath ( ) + " to process " + getJob ( ) . getSoftwareName ( ) + " wrapper template for job " + getJob ( ) . getUuid ( ) ) ; } } setTempAppDir ( tempAppDir ) ; }
Sets up the temp directory to stage application deployment assets, build and resolve wrapper templates, create
 manifests, etc.
Sets up the temp directory to stage application deployment assets build and resolve wrapper templates create manifests etc .
// ensure directory exists // update the tempAppDir with the calcualted directory