Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Bartel2015-02-19 18:24:56 -0500
committerJan Bartel2015-02-19 18:24:56 -0500
commit98a7ad3cf7a1ec621241a654d4649bcbb95d2074 (patch)
tree4706b42668a4add688c8dc725f9ef762ef659df5 /jetty-jspc-maven-plugin
parent5ecc9b8a3617b2b753152473930347f884418329 (diff)
downloadorg.eclipse.jetty.project-98a7ad3cf7a1ec621241a654d4649bcbb95d2074.tar.gz
org.eclipse.jetty.project-98a7ad3cf7a1ec621241a654d4649bcbb95d2074.tar.xz
org.eclipse.jetty.project-98a7ad3cf7a1ec621241a654d4649bcbb95d2074.zip
460372 if web.xml does not contain jspc maven plugin insertionMarker behavior is wrong
Diffstat (limited to 'jetty-jspc-maven-plugin')
-rw-r--r--jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/JspcMojo.java3
1 files changed, 3 insertions, 0 deletions
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 df5492b6cd..a6e87552f4 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("<context-param><param-name>"+PRECOMPILED_FLAG+"</param-name><param-value>true</param-value></context-param>");

Back to the top