Rule filtering by folder-type packages attribute does not work after upgrading to RHDM7.2.1
Issue
In RHDM 7.0.1 kjar project, there are many rules per folder under resources directory and filtered these rules by using packages attribute in kmodule.xml.
e.g.
- file structure
src/main/resources/
├── logback-test.xml
├── META-INF
│ ├── kmodule.xml
│ └── maven
│ └── pom.properties
└── rules
├── aws
│ └── Sample1.drl
├── test1
│ └── Sample1.drl
└── test2
└── Sample2.drl
- kmodule.xml
<?xml version="1.0" encoding="UTF-8"?>
<kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule">
<kbase name="rules" packages="rules.aws">
<ksession name="ksession-rules"/>
</kbase>
</kmodule>
Build will be performed after rules were copied from one directory, say test1 in above example, to filtered folder, say aws in above example.
i.e. rules are duplicated between these 2 folders.
This had been able to be built with library version RHDM 7.0.1. But after upgrading RHDM libraries to 7.1.0 or later, it fails.
Environment
- Red Hat Decision Manager
- 7.1.x
- 7.2.x
- 7.3.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.