[rules-users] Debuggin in Eclipse

chris richmond richmond.cd at gmail.com
Mon Dec 7 21:30:46 EST 2009


Ok, I have a project working with Eclipse Galileo 3.5.1 and it works fine. I
can create new drools projects and they debug fine with the DroolsTest
example.  However I have a very larege existing project that does not use
the src/main/java and src/main/rules src folder structure and the project
runs fine, and I can "Debug as Drools Application" no problem, however it
will never stop on any breakpoints in the rules file.  Does this have
anything to do with the fact that I am not using the default src/rules
direcories structure?  Or, is it dependent on loading the DRL file in a
particular method.  I am loading the file usin this method:


java.io.FileInputStream fis = *new* java.io.FileInputStream(

*new* java.io.File(*"C:\\Path\\To\\Some\\Dir\\rules.drl*));

 builder.add(ResourceFactory.*newInputStreamResource*(fis),

ResourceType.*DRL*);

Should I be loading the fule file using the DroolsTest sample code method
like below?

KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.*newKnowledgeBuilder*();

kbuilder.add(ResourceFactory.*newClassPathResource*("Sample.drl"),
ResourceType.*DRL*);

Does these even make a difference?  Or any ideas why I can't get any debug
breakpoints in my rule file in my custom project to go into break-time?


Thanks,

Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20091207/21b441f6/attachment.html 


More information about the rules-users mailing list