Index: jetty-jspc-maven-plugin/src/main/java/org/mortbay/jetty/jspc/plugin/JspcMojo.java =================================================================== --- jetty-jspc-maven-plugin/src/main/java/org/mortbay/jetty/jspc/plugin/JspcMojo.java (revision 6545) +++ jetty-jspc-maven-plugin/src/main/java/org/mortbay/jetty/jspc/plugin/JspcMojo.java (working copy) @@ -214,6 +214,12 @@ * @parameter */ private String schemaResourcePrefix; + + /** + * Should white spaces in template text between actions or directives be trimmed? Defaults to false. + * @parameter + */ + private Boolean trimSpaces = false; public void execute() throws MojoExecutionException, MojoFailureException @@ -234,6 +240,7 @@ getLog().info("suppressSmap=" + suppressSmap); getLog().info("ignoreJspFragmentErrors=" + ignoreJspFragmentErrors); getLog().info("schemaResourcePrefix=" + schemaResourcePrefix); + getLog().info("trimSpaces=" + trimSpaces); } try { @@ -282,6 +289,7 @@ jspc.setSmapSuppressed(suppressSmap); jspc.setSmapDumped(!suppressSmap); jspc.setJavaEncoding(javaEncoding); + jspc.setTrimSpaces(trimSpaces); // JspC#setExtensions() does not exist, so // always set concrete list of files that will be processed.