}
public void checkRules() {
ClassLoader loader = getClass().getClassLoader();
ScriptRepository repository = new ScriptRepository(false);
List<RuleScript> allScripts = new ArrayList<RuleScript>();
Iterator<String> textsIter = ruleTexts.iterator();
Iterator<String> filesIter = ruleFiles.iterator();
// use a repository to process each file and provide us with a set of
// rule scripts for checking
while (textsIter.hasNext()) {
String ruleText = textsIter.next();
String ruleFile = filesIter.next();
List<RuleScript> ruleScripts = null;
try {
ruleScripts = repository.processScripts(ruleText, ruleFile);
allScripts.addAll(ruleScripts);
} catch (Exception e) {
error("ERROR : Could not process rule file " + ruleFile + " : ", e);
}
}