From 7346782f59b1a3f4489b7d27a3b423b5a35076f7 Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Tue, 6 Jun 2023 16:11:09 -0700 Subject: [PATCH] Use a constant where possible --- src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java b/src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java index b96fb0e0f0..b177444003 100644 --- a/src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java +++ b/src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java @@ -82,6 +82,7 @@ import org.eclipse.jetty.security.UserStore; import org.eclipse.jetty.server.HttpConfiguration; import org.eclipse.jetty.server.HttpConnectionFactory; +import org.eclipse.jetty.server.handler.ContextHandler; import org.eclipse.jetty.util.security.Password; import org.eclipse.jetty.webapp.WebAppClassLoader; import org.eclipse.jetty.webapp.WebAppContext; @@ -304,7 +305,7 @@ public void execute() throws MojoExecutionException, MojoFailureException { // auto-enable stapler trace, unless otherwise configured already. setSystemPropertyIfEmpty("stapler.trace", "true"); // allow Jetty to accept a bigger form so that it can handle update center JSON post - setSystemPropertyIfEmpty("org.eclipse.jetty.Request.maxFormContentSize", "-1"); + setSystemPropertyIfEmpty(ContextHandler.MAX_FORM_CONTENT_SIZE_KEY, "-1"); // general-purpose system property so that we can tell from Jenkins if we are running in the hpi:run mode. setSystemPropertyIfEmpty("hudson.hpi.run", "true"); // expose the current top-directory of the plugin