You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cr...@apache.org on 2002/11/06 13:24:48 UTC

cvs commit: xml-cocoon2/src/scratchpad/src/org/apache/cocoon/ant DelayedFileOutputStream.java

crafterm    2002/11/06 04:24:48

  Modified:    src/scratchpad/src/org/apache/cocoon/ant
                        DelayedFileOutputStream.java
  Log:
  Applied patch from Philipp Schmidt (Philipp.Schmidt@it-care.de) to fix jdk
  compatibility issues.
  PR: #14231
  
  Revision  Changes    Path
  1.2       +3 -3      xml-cocoon2/src/scratchpad/src/org/apache/cocoon/ant/DelayedFileOutputStream.java
  
  Index: DelayedFileOutputStream.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/ant/DelayedFileOutputStream.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DelayedFileOutputStream.java	3 Nov 2002 20:26:50 -0000	1.1
  +++ DelayedFileOutputStream.java	6 Nov 2002 12:24:48 -0000	1.2
  @@ -98,11 +98,11 @@
        *
        * @param  file                       The new fileOutputStream value
        * @param  append                     The new fileOutputStream value
  -     * @exception  FileNotFoundException  thrown if creating of FileOutputStream fails
  +     * @exception  IOException            thrown if creating of FileOutputStream fails
        */
  -    public void setFileOutputStream(File file, boolean append) throws FileNotFoundException {
  +    public void setFileOutputStream(File file, boolean append) throws IOException {
           if (fos == null) {
  -            fos = new FileOutputStream(file, append);
  +            fos = new FileOutputStream(file.getCanonicalPath(), append);
           }
       }
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org