[jboss-jira] [JBoss JIRA] (DROOLS-1253) configure DSL files adding order in kie-maven-plugin

Toshiya Kobayashi (JIRA) issues at jboss.org
Mon Aug 15 02:11:00 EDT 2016


    [ https://issues.jboss.org/browse/DROOLS-1253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13278865#comment-13278865 ] 

Toshiya Kobayashi commented on DROOLS-1253:
-------------------------------------------

Test case https://github.com/droolsjbpm/droolsjbpm-integration/pull/566


> configure DSL files adding order in kie-maven-plugin
> ----------------------------------------------------
>
>                 Key: DROOLS-1253
>                 URL: https://issues.jboss.org/browse/DROOLS-1253
>             Project: Drools
>          Issue Type: Feature Request
>          Components: integration
>    Affects Versions: 7.0.0.Beta1
>            Reporter: Toshiya Kobayashi
>            Assignee: Mario Fusco
>
> When we use DSL, we need to follow "the most specific sentences must be up in the order" principal. If we use multiple DSL files, adding order matters.
> But in case of kie-maven-plugin,
> https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieModule.java#L238-L240
> {code:java}
>             for (Asset asset : assets) {
>                 asset.kmodule.addResourceToCompiler(ckbuilder, kBaseModel, asset.name);
>             }
> {code}
> the order is decided by HashSet iterator hence it's beyond control.
> So this feature request is a capability to configure the DSL files adding order for kie-maven-plugin. For example, listing up all DLS file names in pom.xml.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list