From 98a7ad3cf7a1ec621241a654d4649bcbb95d2074 Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Fri, 20 Feb 2015 10:24:56 +1100 Subject: [PATCH] 460372 if web.xml does not contain jspc maven plugin insertionMarker behavior is wrong --- .../src/main/java/org/eclipse/jetty/jspc/plugin/JspcMojo.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/JspcMojo.java b/jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/JspcMojo.java index df5492b6cdf..a6e87552f4b 100644 --- a/jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/JspcMojo.java +++ b/jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/JspcMojo.java @@ -439,6 +439,9 @@ public class JspcMojo extends AbstractMojo } } + if (atEOF && !atInsertPoint) + throw new IllegalStateException("web.xml does not contain insertionMarker "+insertionMarker); + //put in a context init-param to flag that the contents have been precompiled mergedWebXmlWriter.println(""+PRECOMPILED_FLAG+"true");