Index: lams_common/src/java/org/lamsfoundation/lams/util/FileUtil.java =================================================================== diff -u -rdb2359578dbd6553ce1e1b5446d27380289c3a13 -r36640b233815152b9d67b3c4963894e9e850a426 --- lams_common/src/java/org/lamsfoundation/lams/util/FileUtil.java (.../FileUtil.java) (revision db2359578dbd6553ce1e1b5446d27380289c3a13) +++ lams_common/src/java/org/lamsfoundation/lams/util/FileUtil.java (.../FileUtil.java) (revision 36640b233815152b9d67b3c4963894e9e850a426) @@ -34,7 +34,7 @@ private static Logger log = Logger.getLogger(FileUtil.class); protected static final String prefix = "lamstmp_"; // protected rather than private to suit junit test - + public static final String TEMP_DIR = System.getProperty("java.io.tmpdir"); /** * Deleting a directory using File.delete() only works if @@ -99,7 +99,7 @@ */ public static String createTempDirectory(String suffix) throws FileUtilException { - String tempSysDirName = System.getProperty( "java.io.tmpdir" ); + String tempSysDirName = TEMP_DIR; if ( tempSysDirName == null ) throw new FileUtilException("No temporary directory known to the server. [System.getProperty( \"java.io.tmpdir\" ) returns null. ]\n Cannot upload package.");