private void initTempDirectory ( String tempDirRoot , boolean createTempSubDir ) { tempDirPath = tempDirRoot ; // In windows, pathnames with spaces are returned as %20 if ( tempDirPath . contains ( "%20" ) ) tempDirPath = tempDirPath . replaceAll ( "%20" , " " ) ; this . textDirPath = tempDirPath + File . separator + TEMP_TEXT_SUBDIR ; this . gzipDirPath = tempDirPath + File . separator + TEMP_GZIP_SUBDIR ; this . cssClasspathDirPath = tempDirPath + File . separator + TEMP_CSS_CLASSPATH_SUBDIR ; if ( createTempSubDir ) { try { createDir ( tempDirPath ) ; createDir ( textDirPath ) ; createDir ( gzipDirPath ) ; createDir ( cssClasspathDirPath ) ; } catch ( IOException e ) { throw new BundlingProcessException ( "Unexpected IOException creating temporary jawr directory" , e ) ; } } }
Initialize the temporary directories