[jboss-jira] [JBoss JIRA] (DROOLS-3449) Creating a kjar with the maven pluging the executable model classes are generated twice

Edoardo Vacchi (Jira) issues at jboss.org
Mon Apr 1 10:08:05 EDT 2019


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

Edoardo Vacchi edited comment on DROOLS-3449 at 4/1/19 10:07 AM:
-----------------------------------------------------------------

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



was (Author: evacchi):
- {{PackageModel#getPackageUUID}}
and 

{code}
    private String generateRulesFileName() {
        return RULES_FILE_NAME + generateUUID();
    }
{code}

> Creating a kjar with the maven pluging the executable model classes are generated twice
> ---------------------------------------------------------------------------------------
>
>                 Key: DROOLS-3449
>                 URL: https://issues.jboss.org/browse/DROOLS-3449
>             Project: Drools
>          Issue Type: Bug
>            Reporter: Mario Fusco
>            Assignee: Edoardo Vacchi
>            Priority: Major
>         Attachments: simple-project.zip
>
>




--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list