You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ru...@locus.apache.org on 2000/02/23 19:59:31 UTC
cvs commit: jakarta-tomcat/src/share/org/apache/jasper JspC.java
rubys 00/02/23 10:59:31
Modified: src/share/org/apache/jasper JspC.java
Log:
Support mapped file option (it's required to get JspC to compile, but a
good thing to support anyway...)
Revision Changes Path
1.5 +14 -3 jakarta-tomcat/src/share/org/apache/jasper/JspC.java
Index: JspC.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/JspC.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- JspC.java 2000/02/14 06:15:11 1.4
+++ JspC.java 2000/02/23 18:59:31 1.5
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/JspC.java,v 1.4 2000/02/14 06:15:11 shemnon Exp $
- * $Revision: 1.4 $
- * $Date: 2000/02/14 06:15:11 $
+ * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/JspC.java,v 1.5 2000/02/23 18:59:31 rubys Exp $
+ * $Revision: 1.5 $
+ * $Date: 2000/02/23 18:59:31 $
*
* ====================================================================
*
@@ -99,6 +99,7 @@
public static final String SWITCH_FILE_WEBAPP = "-webapp";
public static final String SWITCH_WEBAPP_INC = "-webinc";
public static final String SWITCH_WEBAPP_XML = "-webxml";
+ public static final String SWITCH_MAPPED = "-mapped";
public static final int NO_WEBXML = 0;
public static final int INC_WEBXML = 10;
@@ -109,6 +110,7 @@
boolean largeFile = false;
+ boolean mappedFile = false;
int jspVerbosityLevel = Logger.INFORMATION;
@@ -143,6 +145,13 @@
public boolean getLargeFile() {
return largeFile;
}
+
+ /**
+ * Are we supporting HTML mapped servlets?
+ */
+ public boolean getMappedFile() {
+ return mappedFile;
+ }
public boolean getSendErrorToClient() {
// implied send to System.err
@@ -270,6 +279,8 @@
if (webxmlFile != null) {
webxmlLevel = ALL_WEBXML;
};
+ } else if (tok.equals(SWITCH_MAPPED)) {
+ mappedFile = true;
} else {
pushBackArg();
// Not a recognized Option? Start treting them as JSP Pages