You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2008/09/30 12:38:27 UTC

svn commit: r700412 - in /geronimo/gshell/trunk/gshell-commands: gshell-bsf/src/main/java/org/apache/geronimo/gshell/commands/bsf/ScriptAction.java gshell-builtins/src/main/java/org/apache/geronimo/gshell/commands/builtins/SourceAction.java

Author: jdillon
Date: Tue Sep 30 03:38:27 2008
New Revision: 700412

URL: http://svn.apache.org/viewvc?rev=700412&view=rev
Log:
Close files

Modified:
    geronimo/gshell/trunk/gshell-commands/gshell-bsf/src/main/java/org/apache/geronimo/gshell/commands/bsf/ScriptAction.java
    geronimo/gshell/trunk/gshell-commands/gshell-builtins/src/main/java/org/apache/geronimo/gshell/commands/builtins/SourceAction.java

Modified: geronimo/gshell/trunk/gshell-commands/gshell-bsf/src/main/java/org/apache/geronimo/gshell/commands/bsf/ScriptAction.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-commands/gshell-bsf/src/main/java/org/apache/geronimo/gshell/commands/bsf/ScriptAction.java?rev=700412&r1=700411&r2=700412&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-commands/gshell-bsf/src/main/java/org/apache/geronimo/gshell/commands/bsf/ScriptAction.java (original)
+++ geronimo/gshell/trunk/gshell-commands/gshell-bsf/src/main/java/org/apache/geronimo/gshell/commands/bsf/ScriptAction.java Tue Sep 30 03:38:27 2008
@@ -179,6 +179,7 @@
         }
         finally {
             engine.terminate();
+            file.close();
         }
     }
 

Modified: geronimo/gshell/trunk/gshell-commands/gshell-builtins/src/main/java/org/apache/geronimo/gshell/commands/builtins/SourceAction.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-commands/gshell-builtins/src/main/java/org/apache/geronimo/gshell/commands/builtins/SourceAction.java?rev=700412&r1=700411&r2=700412&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-commands/gshell-builtins/src/main/java/org/apache/geronimo/gshell/commands/builtins/SourceAction.java (original)
+++ geronimo/gshell/trunk/gshell-commands/gshell-builtins/src/main/java/org/apache/geronimo/gshell/commands/builtins/SourceAction.java Tue Sep 30 03:38:27 2008
@@ -103,8 +103,10 @@
         }
         finally {
             IOUtil.close(reader);
+
+            file.close();
         }
-        
+
         return Result.SUCCESS;
     }
 }