commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/latka/src/java/org/apache/commons/latka Latka.java
Date Sun, 27 Jan 2002 01:43:30 GMT
dion        02/01/26 17:43:30

  Modified:    latka/src/java/org/apache/commons/latka Latka.java
  Log:
  Fixed formatting and javadocs
  
  Revision  Changes    Path
  1.24      +22 -24    jakarta-commons/latka/src/java/org/apache/commons/latka/Latka.java
  
  Index: Latka.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/java/org/apache/commons/latka/Latka.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- Latka.java	18 Oct 2001 16:03:26 -0000	1.23
  +++ Latka.java	27 Jan 2002 01:43:30 -0000	1.24
  @@ -200,32 +200,30 @@
       _reportStylesheetUrl = url;
     }
   
  -  /**
  -   * Use this method to _log XML generated by the
  -   * XMLReporter class.
  -   *
  -   * @param xml XML to be _logged
  -   * @throws IOException
  -   *   if the XML could not be written to the filesystem
  -   */
  -  protected void _logXML(String xml) throws IOException {
  +    /**
  +     * Use this method to log XML generated by the
  +     * XMLReporter class.
  +     *
  +     * @param xml XML to be logged
  +     * @throws IOException if the XML could not be written to the filesystem
  +     */
  +    protected void _logXML(String xml) throws IOException {
   
  -    String logProp = _props.getProperty("latka.writeLog");
  -    if ((logProp != null) && (logProp.equals("false"))) {
  -      return;
  -    }
  +        String logProp = _props.getProperty("latka.writeLog");
  +        if ((logProp != null) && (logProp.equals("false"))) {
  +            return;
  +        }
   
  -    File dir = new File("logs");
  -    dir.mkdirs();
  -    SimpleDateFormat formatter
  -     = new SimpleDateFormat ("yyyyMMdd'-'HHmm");
  -    Date currentTime_1 = new Date();
  -    String dateString = formatter.format(currentTime_1);
  -    File file = new File(dir,dateString+".xml");
  -    FileWriter fileWriter = new FileWriter(file);
  -    fileWriter.write(xml);
  -    fileWriter.close();
  -  }
  +        File dir = new File("logs");
  +        dir.mkdirs();
  +        SimpleDateFormat formatter = new SimpleDateFormat ("yyyyMMdd'-'HHmm");
  +        Date currentTime_1 = new Date();
  +        String dateString = formatter.format(currentTime_1);
  +        File file = new File(dir,dateString+".xml");
  +        FileWriter fileWriter = new FileWriter(file);
  +        fileWriter.write(xml);
  +        fileWriter.close();
  +    }
   
     /**
      * Transform the XML generated by the XMLReporter using
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message