Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-2730

Allow JSPs to be excluded from compilation in maven-jspc-plugin

    XMLWordPrintableJSON

Details

    Description

      JSPs may contain symbols that are declared not in the JSP itself, but in a JSP that includes it (although that may be considered bad style).

      including.jsp:
      <%String foo = "bar"; %>
      <%@include file="included.jsp" %>

      included.jsp:
      <%= foo %>

      The result is that such a JSP does not compile on its own and the goal will fail.

      This can be circumvented if individual JSPs can be excluded from compilation.
      Excluding them from the resources to start with does not help, as they are still required for the including JSPs to compile.

      Attachments

        1. SLING-2730.patch
          24 kB
          Ben Peter
        2. SLING-2730-take2.patch
          25 kB
          Ben Peter

        Activity

          People

            cziegeler Carsten Ziegeler
            benpeter Ben Peter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: