You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@locus.apache.org on 2000/02/25 21:10:47 UTC
cvs commit: jakarta-tomcat/src/share/org/apache/jasper/compiler CommandLineCompiler.java JspCompiler.java
mandar 00/02/25 12:10:47
Modified: src/share/org/apache/jasper/compiler
CommandLineCompiler.java JspCompiler.java
Log:
Generated servlet's class name should be the same
for WIndows and Unix.
Revision Changes Path
1.5 +7 -3 jakarta-tomcat/src/share/org/apache/jasper/compiler/CommandLineCompiler.java
Index: CommandLineCompiler.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/CommandLineCompiler.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- CommandLineCompiler.java 2000/02/23 17:47:36 1.4
+++ CommandLineCompiler.java 2000/02/25 20:10:46 1.5
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/CommandLineCompiler.java,v 1.4 2000/02/23 17:47:36 rubys Exp $
- * $Revision: 1.4 $
- * $Date: 2000/02/23 17:47:36 $
+ * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/CommandLineCompiler.java,v 1.5 2000/02/25 20:10:46 mandar Exp $
+ * $Revision: 1.5 $
+ * $Date: 2000/02/25 20:10:46 $
*
* The Apache Software License, Version 1.1
*
@@ -259,6 +259,10 @@
}
private static final String mangleChar(char ch) {
+
+ if(ch == File.separatorChar) {
+ ch = '/';
+ }
String s = Integer.toHexString(ch);
int nzeros = 5 - s.length();
char[] result = new char[6];
1.8 +4 -0 jakarta-tomcat/src/share/org/apache/jasper/compiler/JspCompiler.java
Index: JspCompiler.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/JspCompiler.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- JspCompiler.java 2000/02/23 09:44:36 1.7
+++ JspCompiler.java 2000/02/25 20:10:46 1.8
@@ -233,6 +233,10 @@
}
private static final String mangleChar(char ch) {
+
+ if(ch == File.separatorChar) {
+ ch = '/';
+ }
String s = Integer.toHexString(ch);
int nzeros = 5 - s.length();
char[] result = new char[6];