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
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 @@
@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
{