460372 if web.xml does not contain jspc maven plugin insertionMarker behavior is wrong

This commit is contained in:
Jan Bartel 2015-02-20 10:24:56 +11:00
parent 5ecc9b8a36
commit 98a7ad3cf7
1 changed files with 3 additions and 0 deletions

View File

@ -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>");