public void compile(BRMSPackageBuilder builder,
AssetItem asset,
AssemblyErrorLogger logger) throws DroolsParserException,
IOException {
DefaultExpander expander = getExpander(builder,
asset,
logger);
String source = getRawDRL(asset);
//expand and check for errors
String drl = expander.expand(source);
if (expander.hasErrors()) {
List<ExpanderException> exErrs = expander.getErrors();
for (ExpanderException ex : exErrs) {
logger.logError(new ContentAssemblyError(
ex.getMessage(), asset.getFormat(), asset.getName(), asset.getUUID(), false, true));
}
return;