Changeset 1234 for trunk/autoquest-plugin-html/src/main/java
- Timestamp:
- 06/27/13 17:13:26 (11 years ago)
- Location:
- trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/AbstractDefaultLogParser.java
r1232 r1234 205 205 throw new SAXParseException("Error parsing file " + file.getName(), locator, e); 206 206 } 207 catch (SAXParseException e) { 208 if ("XML document structures must start and end within the same entity.".equals 209 (e.getMessage())) 210 { 211 // this only denotes, that the final session tag is missing, because the 212 // file wasn't completed. Ignore this. 213 } 214 else { 215 throw e; 216 } 217 } 207 218 } 208 219 } -
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/HTMLLogCompressor.java
r1232 r1234 143 143 catch (Exception e) { 144 144 Console.printerrln("could not parse and compress file " + file); 145 Console.printerrln(e.getMessage()); 145 146 } 146 147 } … … 170 171 } 171 172 172 for (File file : compressedFiles) { 173 if (!file.delete()) { 174 Console.printerrln("could not delete compressed file " + file); 175 } 176 } 177 178 if (outFile.exists()) { 179 File finalOutFile = null; 180 181 logFileIndex = -1; 182 do { 183 logFileIndex++; 184 finalOutFile = 185 new File(directory, getLogFileName(directory.getName(), logFileIndex)); 186 } 187 while (finalOutFile.exists()); 188 189 outFile.renameTo(finalOutFile); 190 Console.println("created " + finalOutFile); 173 if (compressedFiles.size() > 0) { 174 for (File file : compressedFiles) { 175 if (!file.delete()) { 176 Console.printerrln("could not delete compressed file " + file); 177 } 178 } 179 180 if (outFile.exists()) { 181 File finalOutFile = null; 182 183 logFileIndex = -1; 184 do { 185 logFileIndex++; 186 finalOutFile = 187 new File(directory, getLogFileName(directory.getName(), logFileIndex)); 188 } 189 while (finalOutFile.exists()); 190 191 outFile.renameTo(finalOutFile); 192 Console.println("created " + finalOutFile); 193 } 194 } 195 else { 196 outFile.delete(); 191 197 } 192 198 }
Note: See TracChangeset
for help on using the changeset viewer.