try {
// create a specialized classloader
Analyzer droolsanalyzer = new Analyzer();
// get the list of files to be added to the rulebase
String[] fileNames = getFileList();
for (int i = 0; i < fileNames.length; i++) {
compileAndAnalyzeFile(droolsanalyzer, fileNames[i]);
}
droolsanalyzer.fireAnalysis();
droolsanalyzer.writeComponentsHTML(toFile.getAbsolutePath() + "/");
System.out.println("Writing analytics report to " + toFile.getAbsolutePath() + "/report");
} catch (Exception e) {
throw new BuildException("RuleBaseTask failed: " + e.getMessage(),