mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-23 17:41:28 +01:00
updated to look for the correct update string
This commit is contained in:
@@ -22,7 +22,7 @@ import org.apache.commons.lang.StringUtils;
|
|||||||
|
|
||||||
// Analyse number of "Checking for updates"
|
// Analyse number of "Checking for updates"
|
||||||
String log = FileUtils.readFileToString(new File(basedir, "build.log"), Charset.defaultCharset().name());
|
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){
|
if (count > 1){
|
||||||
System.out.println(String.format("The update should be unique, it is %s", count));
|
System.out.println(String.format("The update should be unique, it is %s", count));
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user