craigmcc    01/09/17 17:16:34

  Modified:    jasper/src/share/org/apache/jasper JspC.java
  Log:
  Additional patch to make jspc work when processing tag libraries, even
  when the "-webapp" command line option is not specified.  Patch is by
  Kin-Man Chung <[EMAIL PROTECTED]>.
  
  PR: 3529
  Submitted by: Peter Rossback <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.12      +13 -3     jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/JspC.java
  
  Index: JspC.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/JspC.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- JspC.java 2001/09/14 05:02:15     1.11
  +++ JspC.java 2001/09/18 00:16:34     1.12
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/JspC.java,v 1.11 
2001/09/14 05:02:15 craigmcc Exp $
  - * $Revision: 1.11 $
  - * $Date: 2001/09/14 05:02:15 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/JspC.java,v 1.12 
2001/09/18 00:16:34 craigmcc Exp $
  + * $Revision: 1.12 $
  + * $Date: 2001/09/18 00:16:34 $
    *
    * ====================================================================
    * 
  @@ -699,6 +699,16 @@
               } else {
                   try {
                       if (ubase != null) {
  +                        try {
  +                            JspCServletContext context =
  +                                new JspCServletContext
  +                                (new PrintWriter(System.out),
  +                                 new URL("file:" + ubase.replace('\\','/') + '/'));
  +                            tldLocationsCache = new
  +                                TldLocationsCache(context);
  +                        } catch (MalformedURLException me) {
  +                            System.out.println("**" + me);
  +                        }
                           File fjsp = new File(file);
                           String s = fjsp.getCanonicalPath();
                           if (s.startsWith(ubase)) {
  
  
  

Reply via email to