<div>Yes, I converted it to a Drools project and I do have errors being flagged in my drools file if I have them. Still nothing. I am very frustrated .... </div>
<div> </div>
<div>I am still able to stop at breakpoints in rules files by creating a drools project from scratch and Debug As - > Drools application, but something about converting an existing project and debugging it.</div>
<div><br> </div>
<div class="gmail_quote">On Wed, Dec 9, 2009 at 6:52 AM, Kris Verlaenen <span dir="ltr"><<a href="mailto:Kris.Verlaenen@cs.kuleuven.be">Kris.Verlaenen@cs.kuleuven.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Is your project a Drools project? You can convert existing projects to<br>a Drools projects by right-clicking the project and selecting "Convert<br>
to Drools Project". This will add the Drools library (which you can<br>remove if you don't need it) and adds a Drools Builder. This builder<br>is crucial as it generates the necessary meta-data used for<br>breakpoints. You should be able to see the drools builder in<br>
the .project file. Also make sure that you have not turned off caching<br>in the Drools preferences. The structure of your process should not<br>matter, as long as your rules are on the classpath. You can easily<br>check whether the drools builder is working, as it should show errors<br>
for incorrect syntax in your rule files.<br><br>Kris<br><br>Citeren chris richmond <<a href="http://richmond.cd/" target="_blank">richmond.cd</a>@<a href="http://gmail.com/" target="_blank">gmail.com</a>>:<br>
<div>
<div></div>
<div class="h5"><br>> Ok, I have a project working with Eclipse Galileo 3.5.1 and it works<br>> fine. I<br>> can create new drools projects and they debug fine with the<br>> DroolsTest<br>> example. However I have a very larege existing project that does not<br>
> use<br>> the src/main/java and src/main/rules src folder structure and the<br>> project<br>> runs fine, and I can "Debug as Drools Application" no problem,<br>> however it<br>> will never stop on any breakpoints in the rules file. Does this<br>
> have<br>> anything to do with the fact that I am not using the default<br>> src/rules<br>> direcories structure? Or, is it dependent on loading the DRL file in<br>> a<br>> particular method. I am loading the file usin this method:<br>
><br>><br>> java.io.FileInputStream fis = *new* java.io.FileInputStream(<br>><br>> *new* java.io.File(*"C:\\Path\\To\\Some\\Dir\\rules.drl*));<br>><br>> builder.add(ResourceFactory.*newInputStreamResource*(fis),<br>
><br>> ResourceType.*DRL*);<br>><br>> Should I be loading the fule file using the DroolsTest sample code<br>> method<br>> like below?<br>><br>> KnowledgeBuilder kbuilder =<br>> KnowledgeBuilderFactory.*newKnowledgeBuilder*();<br>
><br>> kbuilder.add(ResourceFactory.*newClassPathResource*("Sample.drl"),<br>> ResourceType.*DRL*);<br>><br>> Does these even make a difference? Or any ideas why I can't get any<br>> debug<br>
> breakpoints in my rule file in my custom project to go into<br>> break-time?<br>><br>><br>> Thanks,<br>><br>> Chris<br>><br><br><br><br><br></div></div>Disclaimer: <a href="http://www.kuleuven.be/cwis/email_disclaimer.htm" target="_blank">http://www.kuleuven.be/cwis/email_disclaimer.htm</a><br>
<div>
<div></div>
<div class="h5">_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>