Changeset 1272 for trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/HTMLLogCompressor.java
- Timestamp:
- 07/25/13 15:27:21 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/HTMLLogCompressor.java
r1254 r1272 189 189 while (finalOutFile.exists()); 190 190 191 outFile.renameTo(finalOutFile); 192 Console.println("created " + finalOutFile); 191 if (outFile.renameTo(finalOutFile)) { 192 Console.println("created " + finalOutFile); 193 } 194 else { 195 Console.println 196 ("created " + outFile + " but could not rename to " + finalOutFile); 197 } 193 198 } 194 199 } 195 200 else { 196 outFile.delete(); 201 if (!outFile.delete()) { 202 Console.printerrln 203 ("could not delete temporary file " + outFile); 204 } 197 205 } 198 206 } … … 273 281 // add the event directly where the center is, as the timestamps of the center 274 282 // and the new event are equal 275 start = end = center; 283 end = center; 284 start = end; 276 285 break; 277 286 }
Note: See TracChangeset
for help on using the changeset viewer.