getLog().warn(e);
} catch (MalformedURLException e) {
getLog().warn(e);
}
RuleCheck checker = new RuleCheck();
for(File script : scripts) {
if(verbose) {
getLog().info("add script " + script);
}else {
getLog().debug("add script " + script);
}
checker.addRuleFile(script.getAbsolutePath());
}
for(int i = 0; i < packages.length; i++) {
checker.addPackage(packages[i]);
if(verbose) {
getLog().info("add package " + packages[i]);
}else {
getLog().debug("add package " + packages[i]);
}
}
getLog().info("Checking " + scripts.size() + " byteman scripts in " + scriptDir);
checker.checkRules();
RuleCheckResult result= checker.getResult();
if(result.hasWarning()) {
List<String> warns = result.getWarningMessages();
warns.addAll(result.getTypeWarningMessages());
for(String warn : warns) {
getLog().warn(warn);