|
@@ -552,6 +552,12 @@ public class ResourceFileServlet extends HttpServlet implements PwmServlet {
|
|
|
throws PwmUnrecoverableException
|
|
|
{
|
|
|
if (resourcePathUri.startsWith(WEBJAR_BASE_URL_PATH)) {
|
|
|
+ // This allows us to override a webjar file, if needed. Mostly helpful during development.
|
|
|
+ final File file = new File(servletContext.getRealPath(resourcePathUri));
|
|
|
+ if (file.exists()) {
|
|
|
+ return new RealFileResource(file);
|
|
|
+ }
|
|
|
+
|
|
|
final String remainingPath = resourcePathUri.substring(WEBJAR_BASE_URL_PATH.length(), resourcePathUri.length());
|
|
|
|
|
|
final String webJarName;
|