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

    • Bug
    • Status: Verified
    • Resolution: Unresolved
    • 7.2.X, Master
    • None
    • Dev Tools

    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

            support-lep@liferay.com SE Support
            mariano.alvaro Mariano Álvaro
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              2 years, 47 weeks ago

              Packages

                Version Package