updated to look for the correct update string

This commit is contained in:
Jeremy Long
2017-09-15 17:37:07 -04:00
parent c998bff178
commit a5c3ecf6de

View File

@@ -22,7 +22,7 @@ import org.apache.commons.lang.StringUtils;
// Analyse number of "Checking for updates"
String log = FileUtils.readFileToString(new File(basedir, "build.log"), Charset.defaultCharset().name());
int count = StringUtils.countMatches(log, "Checking for updates");
int count = StringUtils.countMatches(log, "[INFO] Checking for updates");
if (count > 1){
System.out.println(String.format("The update should be unique, it is %s", count));
return false;