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

Model compiler should not duplicate files across runs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • None
    • None
    • 2019 Week 20-22
    • 3
    • NEW
    • 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

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            evacchi Edoardo Vacchi (Inactive)
            Tibor Zimányi Tibor Zimányi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: