[jboss-jira] [JBoss JIRA] (DROOLS-4171) rule filtering by folder-type packages attribute does not work after upgrading to 7.11.0.Final
Mario Fusco (Jira)
issues at jboss.org
Thu Jun 13 08:13:01 EDT 2019
[ https://issues.jboss.org/browse/DROOLS-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13746354#comment-13746354 ]
Mario Fusco commented on DROOLS-4171:
-------------------------------------
This issue has been fixed in 7.23.0.Final as a side-effect of this https://issues.jboss.org/browse/DROOLS-4043
Note that in order to configure the "drools.groupDRLsInKieBasesByFolder" property you should do in kmodule.xml file as it follows.
<?xml version="1.0" encoding="UTF-8"?>
<kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule">
<configuration>
<property key="drools.groupDRLsInKieBasesByFolder" value="true"/>
</configuration>
<kbase name="rules" packages="rules.aws">
<ksession name="ksession-rules"/>
</kbase>
</kmodule>
> rule filtering by folder-type packages attribute does not work after upgrading to 7.11.0.Final
> ------------------------------------------------------------------------------------------------
>
> Key: DROOLS-4171
> URL: https://issues.jboss.org/browse/DROOLS-4171
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.11.0.Final, 7.14.0.Final, 7.18.0.Final
> Reporter: Hiroko Miura
> Assignee: Mario Fusco
> Priority: Major
> Labels: support
> Attachments: buildKjarTest.zip
>
>
> In 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
> {noformat}
> src/main/resources/
> ├── logback-test.xml
> ├── META-INF
> │ ├── kmodule.xml
> │ └── maven
> │ └── pom.properties
> └── rules
> ├── aws
> │ └── Sample1.drl
> ├── test1
> │ └── Sample1.drl
> └── test2
> └── Sample2.drl
> {noformat}
> - kmodule.xml
> {noformat}
> <?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>
> {noformat}
> This could be built with library version 7.5.0.Final.
> But after upgrading 7.11.0.Final or later, it fails.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list