The logic for what’s going on can be found here:
Typically the code is looking for the kmodule.xml in a META-INF. When it finds it, it goes
the root of that. There isn’t any logic to handle dual roots. I’m assuming you put the
kmodule.xml in the test/resources/META-INF folder?
What we might be able to do is see if there parent is “target” and if there is a child
classes and test-classes and treat it as a special case.
On 12 Aug 2014, at 20:38, mattmadhavan <mmadhavan(a)facs.org> wrote:
While unit testing some of my DRL files I notice that, *AbstractKieModule *
does not look at main classpath. It only checks for the target\test-classes
and not target\classes folder at all!
I see the following warning on the coonsole!
*2014-08-12 14:15:25,426 [AbstractKieModule] [main] WARN No files found for
KieBase BREAST_MASTRT_KBase, searching folder
/My configuration is:/
My .drl files arr in the package "org.xxxx.xxxxx.rules.breast.MASTRT of the
traget/classes folder, but its not loaded!
Any ideas please?
View this message in context:
Sent from the Drools: User forum mailing list archive at Nabble.com
rules-users mailing list