]
Edoardo Vacchi updated DROOLS-3825:
-----------------------------------
Sprint: 2019 Week 17-19 (was: 2019 Week 14-16)
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