crafterm    2002/11/06 04:24:48

  Modified:    src/scratchpad/src/org/apache/cocoon/ant
                        DelayedFileOutputStream.java
  Log:
  Applied patch from Philipp Schmidt ([EMAIL PROTECTED]) 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:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to