yoavs       2003/06/25 18:18:07

  Modified:    jasper2/src/share/org/apache/jasper JspC.java
  Log:
  - Made javaEncoding configurable, per Bugzilla 19622 enhancement request
  
  Revision  Changes    Path
  1.46      +26 -4     
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspC.java
  
  Index: JspC.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspC.java,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- JspC.java 25 Jun 2003 20:01:18 -0000      1.45
  +++ JspC.java 26 Jun 2003 01:18:07 -0000      1.46
  @@ -179,6 +179,12 @@
       private Vector extensions;
       private Vector pages = new Vector();
   
  +    /**
  +     * The java file encoding.  Default
  +     * is UTF-8.  Added per bugzilla 19622.
  +     */
  +    private String javaEncoding = "UTF-8";
  +
       // Generation of web.xml fragments
       private String webxmlFile;
       private int webxmlLevel;
  @@ -416,8 +422,24 @@
        return tldLocationsCache;
       }
   
  +    /**
  +     * Returns the encoding to use for
  +     * java files.  The default is UTF-8.
  +     *
  +     * @return String The encoding
  +     */
       public String getJavaEncoding() {
  -     return "UTF-8";
  +     return javaEncoding;
  +    }
  +
  +    /**
  +     * Sets the encoding to use for
  +     * java files.
  +     *
  +     * @param encodingName The name, e.g. "UTF-8" 
  +     */
  +    public void setJavaEncoding(String encodingName) {
  +      javaEncoding = encodingName;
       }
   
       public boolean getFork() {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to