Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 51775 invoked from network); 18 Jan 2003 07:22:57 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 18 Jan 2003 07:22:57 -0000 Received: (qmail 11083 invoked by uid 97); 18 Jan 2003 07:24:27 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 11067 invoked by uid 97); 18 Jan 2003 07:24:27 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 11055 invoked by uid 98); 18 Jan 2003 07:24:26 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <000501c2bec2$7104fb80$0202a8c0@zermatt> From: "Steve Loughran" To: "Ant Developers List" Subject: jasperc question Date: Fri, 17 Jan 2003 23:23:03 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Now that I'm looking at fixing the name mangling, I'm confused. There are two jasperc compilers in the source tree jakarta-tomcat-jasper and another under jakarta-tomcat-4.0, which is probably what the current jspnamemangler came from. >From the branch tree it is jakarta-tomcat-jasper that is active. The latter does its name mangling thusly: public String getServletClassName() { if (servletClassName != null) { return servletClassName; } int iSep = jspUri.lastIndexOf('/') + 1; int iEnd = jspUri.length(); StringBuffer modifiedClassName = new StringBuffer(jspUri.length() - iSep); if (!Character.isJavaIdentifierStart(jspUri.charAt(iSep))) { // If the first char is not a legal Java letter or digit, // prepend a '_'. modifiedClassName.append('_'); } for (int i = iSep; i < iEnd; i++) { char ch = jspUri.charAt(i); if (Character.isJavaIdentifierPart(ch)) { modifiedClassName.append(ch); } else if (ch == '.') { modifiedClassName.append('_'); } else { modifiedClassName.append(mangleChar(ch)); } } servletClassName = modifiedClassName.toString(); return servletClassName; } So the rules are pretty simple, except I dont see the addtion of the _jsp at the end. Where does that come from? Does anyone know their way round jasper *and* what any likely changes are due. -Steve -- To unsubscribe, e-mail: For additional commands, e-mail: