[ 
https://issues.apache.org/jira/browse/SLING-9161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Radu Cotescu updated SLING-9161:
--------------------------------
    Description: 
The Scripting Bundle Maven Plugin currently imposes the following restriction 
for the project structure:
{noformat}
<scriptsDirectory>/<sling-resourceType>/<version>/[<METHOD>.]<name>[.<selector>][.<requestExtension>].<script-extension>
{noformat}

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

  was:
The Scripting Bundle Maven Plugin currently imposes the following restriction 
for the project structure:
{noformat}
<scriptsDirectory>/<sling-resourceType>/<version>/[<METHOD>.]<name>[.<selector>][.<extension>].<script-extension>
{noformat}

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, e.g. resource 
tree paths relative to a search path. In addition, the {{<version>}} folder 
should become optional.


> The Scripting Bundle Maven Plugin should allow more flexible ways for the 
> project structure
> -------------------------------------------------------------------------------------------
>
>                 Key: SLING-9161
>                 URL: https://issues.apache.org/jira/browse/SLING-9161
>             Project: Sling
>          Issue Type: Improvement
>          Components: Tooling
>    Affects Versions: Scripting Bundle Maven Plugin 0.1.0
>            Reporter: Radu Cotescu
>            Assignee: Radu Cotescu
>            Priority: Major
>             Fix For: Scripting Bundle Maven Plugin 0.2.0
>
>
> The Scripting Bundle Maven Plugin currently imposes the following restriction 
> for the project structure:
> {noformat}
> <scriptsDirectory>/<sling-resourceType>/<version>/[<METHOD>.]<name>[.<selector>][.<requestExtension>].<script-extension>
> {noformat}
> 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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to