tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Fesler <cf-li...@fesler.org>
Subject [patch] JspC.java (tomcat_4_branch) new mutators for showSuccess and listErrors
Date Wed, 09 Apr 2003 19:34:04 GMT
The following patch adds mutators for the showSuccess and listErrors
flags, which enables these properties to be manipulated from ant:

        <jasper2 verbose="2"
                uriroot="${war.exploded}"
                outputDir="${jspc.temp}"
                webXmlFragment="${jspc.generated-web-xml}"
                showSuccess="yes"
                listErrors="yes"
                package="${context-root}" />

This is pretty handy, if only because it gives you something other than
a blank screen to stare at while you're jspc'ing a large webapp :)

Chris Fesler
cf-lists@fesler.org

patch follows
-------------


Index: JspC.java
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspC.java,v
retrieving revision 1.12.2.6
diff -u -r1.12.2.6 JspC.java
--- JspC.java   17 Mar 2003 20:53:39 -0000      1.12.2.6
+++ JspC.java   9 Apr 2003 19:23:52 -0000
@@ -376,6 +376,18 @@
         webxmlFile=s;
         webxmlLevel=INC_WEBXML;
     }
+
+       /** Mutator for the LIST_ERRORS (-l) flag
+        */
+       public void setListErrors(boolean b) {
+               listErrors = b;
+       }
+
+       /** Mutator for the SHOW_SUCCESS (-s) flag
+        */
+       public void setShowSuccess(boolean b) {
+               showSuccess = b;
+       }

     /**
      * Resolve relative path, and create output directories.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message