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

The Scripting Bundle Maven Plugin should allow more flexible ways for the project structure

    XMLWordPrintableJSON

Details

    Description

      The Scripting Bundle Maven Plugin currently imposes the following restriction for the project structure:

      <scriptsDirectory>/<sling-resourceType>/<version>/[<METHOD>.]<name>[.<selector>][.<requestExtension>].<script-extension>
      

      In this case the <sling-resourceType> will be limited to one folder, which means that resource type namespacing should be done similar to Java package names. While this is not wrong, the plugin should also allow defining the resource types using Sling's already established conventions [0], e.g. resource tree paths relative to a search path. In addition, the <version> folder should become optional.

      [0] - https://sling.apache.org/documentation/the-sling-engine/url-to-script-resolution.html#scripts-for-get-requests

      Attachments

        Issue Links

          Activity

            People

              radu Radu Cotescu
              radu Radu Cotescu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m