sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [sling-scriptingbundle-maven-plugin] 11/17: Improvements
Date Mon, 10 Dec 2018 12:01:16 GMT
This is an automated email from the ASF dual-hosted git repository.

radu pushed a commit to branch master
in repository

commit 6e681b0d643fe4c5ba21da6e4ed55df0f7689336
Author: Radu Cotescu <>
AuthorDate: Fri Apr 20 15:03:13 2018 +0200

    * allowed scripts to retrieve their own name through the "javax_script_filename" global
    * added support for HTTP methods script matching in BundledScriptFinder
    * added support for the PATCH HTTP method in the ScriptingMavenPlugin
    * made sure that the Dispatcher servlet from the BundledScriptTracker is registered on
the same
    extensions as the BundledScriptServlet for the same sling.resourceType capability
    * moved example endpoints for better understanding of content-to-script mapping
    * updated EndpointIT with the new endpoints plus the Sling Testing Clients mechanism for
    waiting for content to be installed
 .../org/apache/sling/scripting/maven/plugin/  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/scripting/maven/plugin/
index 283b660..6f95a42 100644
--- a/src/main/java/org/apache/sling/scripting/maven/plugin/
+++ b/src/main/java/org/apache/sling/scripting/maven/plugin/
@@ -51,7 +51,8 @@ public class ScriptingMavenPlugin extends AbstractMojo
     @Parameter(defaultValue = "${session}", readonly = true)
     private MavenSession session;
-    private static final Set<String> METHODS = new HashSet<>(Arrays.asList(new
String[]{"TRACE", "OPTIONS", "GET", "HEAD", "POST", "PUT", "DELETE"}));
+    private static final Set<String> METHODS = new HashSet<>(Arrays.asList(new
String[]{"TRACE", "OPTIONS", "GET", "HEAD", "POST", "PUT",
+            "DELETE", "PATCH"}));
     public void execute() throws MojoExecutionException

View raw message