65 System.err.println("task succeeded"); |
65 System.err.println("task succeeded"); |
66 checkFiles(outDir, standardExpectFiles); |
66 checkFiles(outDir, standardExpectFiles); |
67 String out = sw.toString(); |
67 String out = sw.toString(); |
68 System.err.println(">>" + out + "<<"); |
68 System.err.println(">>" + out + "<<"); |
69 for (String f: standardExpectFiles) { |
69 for (String f: standardExpectFiles) { |
70 if (f.endsWith(".html") && !out.contains(f)) |
70 String f1 = f.replace('/', File.separatorChar); |
71 throw new Exception("expected string not found: " + f); |
71 if (f1.endsWith(".html") && !out.contains(f1)) |
|
72 throw new Exception("expected string not found: " + f1); |
72 } |
73 } |
73 } else { |
74 } else { |
74 throw new Exception("task failed"); |
75 throw new Exception("task failed"); |
75 } |
76 } |
76 } |
77 } |