[jboss-jira] [JBoss JIRA] (DROOLS-3825) Model compiler should not duplicate files across runs
Edoardo Vacchi (Jira)
issues at jboss.org
Mon May 13 05:58:00 EDT 2019
[ https://issues.jboss.org/browse/DROOLS-3825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13732465#comment-13732465 ]
Edoardo Vacchi commented on DROOLS-3825:
----------------------------------------
closed by mario in Submarine https://github.com/kiegroup/submarine-runtimes/commit/217c42ece112682f5f0987550e165bc42abf5dd4
> Model compiler should not duplicate files across runs
> -----------------------------------------------------
>
> Key: DROOLS-3825
> URL: https://issues.jboss.org/browse/DROOLS-3825
> Project: Drools
> Issue Type: Bug
> Reporter: Edoardo Vacchi
> Assignee: Edoardo Vacchi
> Priority: Major
>
> If you don't {{mvn clean}} each time you generate the executable model, new files will be generated at each run.
> These seem to be the culprit:
> {{PackageModel#getPackageUUID}}
> {code}
> private String generateRulesFileName() {
> return RULES_FILE_NAME + generateUUID();
> }
> {code}
> solution: use a counter; the compiler is single-threaded, two runs produce the same output, existing files will be just overwritten
> deliverable: test case verifying files do not grow in number across runs
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list