Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-106390

Add the ability import module classes in scripts executed from blade

    Details

    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 7.2.X, Master
    • Fix Version/s: None
    • Component/s: Dev Tools
    • Labels:

      Description

      Many times the system administrator doesn't have access to control panel and they must execute maintenance Groovy scripts.

      Currently, with blade, it's possible to execute Groovy scripts with the following command (for the example use the attached script):

      blade sh gogo:sh groovyExecutor.txt

       This is possible because the imported class is in the kernel, but if you try to import one from a module the execution will fail.

       

      Steps to Reproduce:

      1. Configure the following property: module.framework.properties.osgi.console=11311
      2. Execute the following command: blade sh gogo:sh groovyExecutorFails.txt using the attached script.

       

      Actual Result:

      The script fails with a compilation error.

       

      Expected Result:

      There should be an alternative to execute the script.

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            mariano.alvaro Mariano Álvaro
            Participants of an Issue:
            Recent user:
            Koor Gai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              2 years, 20 weeks ago

                Packages

                Version Package