Building a package (where ever) will include all rules. In your case, in both XLS files.
You showed this code at the begining:-
I use this code:
public static KnowledgeBase readKnowledgeBase()
throws Exception {
UrlResource resource = (UrlResource) ResourceFactory
.newUrlResource("
http://127.0.0.1:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/myPackage/LATEST");
resource.
setBasicAuthentication("enabled");
resource.setUsername("guest");
resource.setPassword("guest");
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory
.newKnowledgeBuilder();
kbuilder.add(resource, ResourceType.PKG);
KnowledgeBase kbase = kbuilder.newKnowledgeBase();
kbase.addKnowledgePackages(kbuilder.getKnowledgePackages());
return kbase;
}
</quote>