[
https://issues.jboss.org/browse/JBRULES-1273?page=com.atlassian.jira.plug...
]
Ansgar Konermann commented on JBRULES-1273:
-------------------------------------------
Hi Geoffrey,
where does this requirement for incremental build support originate from?
- is it a requirement for all Maven 3 plugins? or
- is it a requirement for inclusion of the plugin into the Drools mainline?
If it is a requirement to be accepted for mainline inclusion: does the drools compiler API
support incremental compilation? Can you point me to the relevant interfaces and/or
methods? As far as I know, the KnowledgeBuilder interface only has add() methods to add
resources and does not support removal of packages or other artifacts from the knowledge
base which originally were inserted as result of compilation of a given resource file.
I'm not sure about current features of the knowledge agent, but last time I looked,
the agent was also only capable of *adding* new files to a knowledge base.
In case of rule refactoring (e. g. moving rule R from package A to package B, and an
existing compiled knowledge base where rule R is already compiled into package A), how can
the compiler act sensibly during "incremental compilation"? As we cannot tell
from which file the rule R in package A originated, and there is no methot to remove this
from the knowledge base either, I see no use of *adding* another rule R to package B (as
the build would be totally inconsistent with what is stored in the files on disk. This is
different to java compilation, where each java file is compiled into a number of classes
in a reproducible manner. Given a modified java file, one can tell exactly which classes
have to be overwritten.
Maybe this is just my personal taste, but since incremental compilation introduces a lot
of chances for inconsistencies, I'd suggest this can be postponed to a later version
of a compiler plugin, in favour of bringing value to potential users earlier with a basic
feature set.
What do you mean by "drl compiler plugin MUST support incremental builds"?
Create a maven2 plugin to allow rulebase compilation and
serialization during a build (similar to the drools-ant task)
----------------------------------------------------------------------------------------------------------------------
Key: JBRULES-1273
URL:
https://issues.jboss.org/browse/JBRULES-1273
Project: Drools
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Reporter: Rainer Langbehn
Assignee: Geoffrey De Smet
Attachments: maven-drools-plugins.zip
I already created the requested maven2 plugin and i would like to contribute it.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira