ResourceType.DRL);
if (kbuilder.hasErrors()) {
fail(kbuilder.getErrors().toString());
}
KnowledgeBuilderImpl kbi = (KnowledgeBuilderImpl) kbuilder;
// KnowledgePackage pkg = ( KnowledgePackage )
// kbuilder.getKnowledgePackages().iterator().next();
writePackage(kbi.getPackageBuilder().getPackage(), fileManager.newFile("pkgold.pkg"));
String xml = "";
xml += "<change-set xmlns='http://drools.org/drools-5.0/change-set'";
xml += " xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'";
xml += " xs:schemaLocation='http://drools.org/drools-5.0/change-set http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd' >";