Author: markt Date: Mon May 14 15:03:33 2018 New Revision: 1831579 URL: http://svn.apache.org/viewvc?rev=1831579&view=rev Log: Enable JspC from Tomcat 9 to work with Maven JspC compiler plug-ins written for Tomcat 8.5.x. Patch provided by Pavel Cibulka.
Modified: tomcat/trunk/java/org/apache/jasper/JspC.java tomcat/trunk/webapps/docs/changelog.xml Modified: tomcat/trunk/java/org/apache/jasper/JspC.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/JspC.java?rev=1831579&r1=1831578&r2=1831579&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/jasper/JspC.java (original) +++ tomcat/trunk/java/org/apache/jasper/JspC.java Mon May 14 15:03:33 2018 @@ -459,6 +459,17 @@ public class JspC extends Task implement this.trimSpaces = TrimSpacesOption.valueOf(ts); } + /* + * Backwards compatibility with 8.5.x + */ + public void setTrimSpaces(boolean trimSpaces) { + if (trimSpaces) { + setTrimSpaces(TrimSpacesOption.TRUE); + } else { + setTrimSpaces(TrimSpacesOption.FALSE); + } + } + /** * {@inheritDoc} */ Modified: tomcat/trunk/webapps/docs/changelog.xml URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1831579&r1=1831578&r2=1831579&view=diff ============================================================================== --- tomcat/trunk/webapps/docs/changelog.xml (original) +++ tomcat/trunk/webapps/docs/changelog.xml Mon May 14 15:03:33 2018 @@ -124,6 +124,10 @@ <code>catalina.policy</code> file. This is a follow-up to the fix for <bug>43925</bug>. (kkolinko/markt) </fix> + <fix> + Enable JspC from Tomcat 9 to work with Maven JspC compiler plug-ins + written for Tomcat 8.5.x. Patch provided by Pavel Cibulka. (markt) + </fix> </changelog> </subsection> <subsection name="Cluster"> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org