ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs SQLExec.java
Date Sun, 21 Jan 2001 00:41:25 GMT
donaldp     01/01/20 16:41:25

  Modified:    src/main/org/apache/tools/ant/taskdefs SQLExec.java
  Log:
  If SQLExec reads the statements from a file this file is now propertly
  closed after execution.
  
  Submitted By: "Nico Seessle" <Nico.Seessle@epost.de>
  
  Revision  Changes    Path
  1.15      +3 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/SQLExec.java
  
  Index: SQLExec.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/SQLExec.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- SQLExec.java	2001/01/03 14:18:31	1.14
  +++ SQLExec.java	2001/01/21 00:41:25	1.15
  @@ -610,7 +610,9 @@
               if (tSrcFile != null) {
                   log("Executing file: " + tSrcFile.getAbsolutePath(), 
                       Project.MSG_INFO);
  -                runStatements(new FileReader(tSrcFile), out);
  +                FileReader reader = new FileReader(tSrcFile);
  +                runStatements(reader, out);
  +                reader.close();
               }
           }
       }
  
  
  

Mime
View raw message