geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject 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
Date Tue, 30 Sep 2008 10:38:27 GMT
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;
     }
 }



Mime
View raw message