This is an automated email from the ASF dual-hosted git repository. radu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/sling-scriptingbundle-maven-plugin.git
commit 6e681b0d643fe4c5ba21da6e4ed55df0f7689336 Author: Radu Cotescu <r...@apache.org> AuthorDate: Fri Apr 20 15:03:13 2018 +0200 Improvements * allowed scripts to retrieve their own name through the "javax_script_filename" global property * 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/ScriptingMavenPlugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/sling/scripting/maven/plugin/ScriptingMavenPlugin.java b/src/main/java/org/apache/sling/scripting/maven/plugin/ScriptingMavenPlugin.java index 283b660..6f95a42 100644 --- a/src/main/java/org/apache/sling/scripting/maven/plugin/ScriptingMavenPlugin.java +++ b/src/main/java/org/apache/sling/scripting/maven/plugin/ScriptingMavenPlugin.java @@ -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 {