[rules-users] Debuggin in Eclipse

chris richmond richmond.cd at gmail.com
Tue Dec 8 14:15:42 EST 2009


Restarting, cleaning, etc....has no effect.   Sigh....again....



2009/12/8 Ross H <rossh00 at gmail.com>

> Try doing a project clean, and check that eclipse is copying all the drls
> into the output folder, by default this is bin. If that's not working you
> might need to try and put together a small example that shows the problem
> and share that.
>
>  On Tue, Dec 8, 2009 at 7:52 PM, chris richmond-2 [via Drools - Java Rules
> Engine] <[hidden email]<http://n3.nabble.com/user/SendEmail.jtp?type=node&node=71376&i=0>
> > wrote:
>
>>  They are all source folders in eclipse, so they should be.
>>
>>
>>
>>
>>    On Mon, Dec 7, 2009 at 6:58 PM, Ross H <[hidden email]<http://n3.nabble.com/user/SendEmail.jtp?type=node&node=71350&i=0>
>> > wrote:
>>
>>>
>>> Using a FileInputStream works for me with a non standard folder
>>> structure.
>>> Are all your folders on the eclipse build path?
>>>
>>>
>>> chris richmond-2 wrote:
>>> >
>>> > 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
>>> >
>>> > _______________________________________________
>>> > rules-users mailing list
>>> > [hidden email]<http://n3.nabble.com/user/SendEmail.jtp?type=node&node=71350&i=1>
>>>
>>> > https://lists.jboss.org/mailman/listinfo/rules-users
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://n3.nabble.com/Debuggin-in-Eclipse-tp71134p71211.html
>>> Sent from the Drools - User mailing list archive at Nabble.com.
>>> _______________________________________________
>>> rules-users mailing list
>>> [hidden email]<http://n3.nabble.com/user/SendEmail.jtp?type=node&node=71350&i=2>
>>>
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>
>>
>> _______________________________________________
>> rules-users mailing list
>> [hidden email]<http://n3.nabble.com/user/SendEmail.jtp?type=node&node=71350&i=3>
>>  https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
>
> ------------------------------
> View this message in context: Re: [rules-users] Debuggin in Eclipse<http://n3.nabble.com/Debuggin-in-Eclipse-tp71134p71376.html>
>
> Sent from the Drools - User mailing list archive<http://n3.nabble.com/Drools-User-f47000.html>at Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20091208/125842df/attachment.html 


More information about the rules-users mailing list