Changeset 1268
- Timestamp:
- 07/25/13 15:08:58 (11 years ago)
- Location:
- trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitorOutputWriter.java
r1249 r1268 415 415 * </p> 416 416 * 417 * @param file418 * @param clientLogDir417 * @param oldLogDir the old log directory 418 * @param newLogDir the new log directory 419 419 */ 420 420 private void handleOldLogFiles(File oldLogDir, File newLogDir) { 421 421 if (oldLogDir.exists() && oldLogDir.isDirectory()) { 422 boolean allFilesRenamed = true; 422 423 for (File oldLogFile : oldLogDir.listFiles()) { 423 oldLogFile.renameTo(new File(newLogDir, oldLogFile.getName()));424 allFilesRenamed &= oldLogFile.renameTo(new File(newLogDir, oldLogFile.getName())); 424 425 } 425 426 426 oldLogDir.delete(); 427 if (allFilesRenamed) { 428 if (!oldLogDir.delete()) { 429 Console.printerrln("could not move old file directory structure to new one"); 430 } 431 } 427 432 } 428 433 } -
trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitorServlet.java
r1233 r1268 24 24 import java.net.URL; 25 25 import java.util.ArrayList; 26 import java.util.Arrays; 26 27 import java.util.List; 27 28 import java.util.Map; … … 554 555 if (!result) { 555 556 Console.printerrln(eventType + " event has invalid parameters"); 556 Console.printerrln("coordinates: " + coordinates);557 Console.printerrln("coordinates: " + Arrays.toString(coordinates)); 557 558 Console.printerrln("key: " + key); 558 Console.printerrln("scrollPosition: " + scrollPosition);559 Console.printerrln("scrollPosition: " + Arrays.toString(scrollPosition)); 559 560 Console.printerrln("selectedValue: " + selectedValue); 560 561 }
Note: See TracChangeset
for help on using the changeset viewer.