Uploaded image for project: 'Migration 4.4 to 4.5 (closed)'
  1. Migration 4.4 to 4.5 (closed)
  2. MGNLMIGRATION-132

Generated groovy scripts: Scripts cannot be saved and executed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 1.1.5
    • 1.1.4
    • None
    • None
    • Migros project

    Description

      Folders ( - > packages) are generated for the migration scripts using the module name as package name. If the module names contain characters that are not allowed in groovy package names ('-' in our project) it is not possible to save fixed scripts or to run the scripts.

      On saving:

      startup failed:
      script13504691834702018186941.groovy: 1: expecting EOF, found '-' @ line 1, column 15.
         package Migros-common-templating.components
                       ^
      
      1 error
      

      On executing

      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      Script1.groovy: 1: unexpected token: - @ line 1, column 14.
      import Migros-updates.components.*
      ^
      
      1 error
      

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              lfischer Lars Fischer
              wolf.bubenik wolf bubenik
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: