Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-3825

Model compiler should not duplicate files across runs

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Sprint:
      2019 Week 20-22
    • Story Points:
      3
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      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

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

      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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mfusco Mario Fusco
                Reporter:
                evacchi Edoardo Vacchi
                Tester:
                Tibor Zimanyi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: