Author: chatellier Date: 2009-09-28 08:36:49 +0000 (Mon, 28 Sep 2009) New Revision: 2642 Modified: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/simulator/launcher/SSHSimulatorLauncher.java Log: Remove resultFile at JVM shutdown. Modified: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/simulator/launcher/SSHSimulatorLauncher.java =================================================================== --- isis-fish/trunk/src/main/java/fr/ifremer/isisfish/simulator/launcher/SSHSimulatorLauncher.java 2009-09-28 07:44:29 UTC (rev 2641) +++ isis-fish/trunk/src/main/java/fr/ifremer/isisfish/simulator/launcher/SSHSimulatorLauncher.java 2009-09-28 08:36:49 UTC (rev 2642) @@ -691,6 +691,10 @@ /** * Download simulation zip results. * + * MD5 control check sum if done, return null, if checkSum fail. + * + * File if configured to auto delete at JVM shutdown. + * * @throws SSHException if download fail (can happen if remote file doesn't exist * @throws IOException if download fail (can happen if remote file doesn't exist */ @@ -698,6 +702,7 @@ throws SSHException, IOException { File localFile = File.createTempFile("simulation-results", ".zip"); + localFile.deleteOnExit(); if (log.isDebugEnabled()) { log.debug("Downloading results in " + localFile.getAbsolutePath());