Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: Master
    • Fix Version/s: None
    • Labels:
      None

      Description

      As per https://github.com/liferay/liferay-portal/blob/bf806ed1a2af085d8280c33887ca2e3225bd1f8b/modules/sdk/project-templates/project-templates-workspace/src/main/resources/archetype-resources/gradle.properties#L108

        # Set this to true to compile the JSP files in OSGi modules and have them
          # added to the distributable Zip/Tar. The default value is false.
          #
          #liferay.workspace.modules.jsp.precompile.enabled=false
      

      However, it does not seem to take effect.

      1. Open [LIFERAY_WORKSPACE_HOME_DIR]/gradle.properties and add following property :

      liferay.workspace.modules.jsp.precompile.enabled=true
      save the file.
      2. Use the attached sample portlet, copy it to the module folder of the liferay workspace.
      3. Execute gradle build
      4. Launch Liferay 7.0 de-69.
      5. Deploy the sample portlet
      6. Go to liferay_home/work

      This folder does not contain the precompiled jsps of precompile.test.mvc.portlet

      7. Place the portlet on the page
      Now the JSPs are compiled in liferay_home/work

      Expected: The JSPs should be precompiled during the deployment, and not when the portlet is rendered.

      Attachments:

      https://liferay-support.zendesk.com/attachments/token/JOe2KzK4uiiTNBULriW0nYqcp/?name=precompile-test-mvc-portlet.zip

      https://liferay-support.zendesk.com/attachments/token/RgJLlCIjNCZmhAB3Tf2qb6jWr/?name=precompile.test.mvc.portlet-1.0.0.jar

        Attachments

          Activity

            People

            Assignee:
            lawrence.lee Lawrence Lee
            Reporter:
            zalan.szakolci Zalán Szakolci
            Participants of an Issue:
            Recent user:
            Jose Jimenez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 42 weeks, 5 days ago

                Packages

                Version Package