portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/deploy-tool/src/java/org/apache/jetspeed/tools/deploy JetspeedDeploy.java
Date Fri, 04 Feb 2005 06:44:35 GMT
taylor      2005/02/03 22:44:35

  Modified:    components/deploy-tool/src/java/org/apache/jetspeed/tools/deploy
                        JetspeedDeploy.java
  Log:
  ensure streams are closed
  
  Revision  Changes    Path
  1.9       +29 -1     jakarta-jetspeed-2/components/deploy-tool/src/java/org/apache/jetspeed/tools/deploy/JetspeedDeploy.java
  
  Index: JetspeedDeploy.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/deploy-tool/src/java/org/apache/jetspeed/tools/deploy/JetspeedDeploy.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- JetspeedDeploy.java	2 Feb 2005 03:09:50 -0000	1.8
  +++ JetspeedDeploy.java	4 Feb 2005 06:44:35 -0000	1.9
  @@ -177,6 +177,34 @@
               }
               new File(outputName).delete();
           }
  +        finally
  +        {
  +            if (jin != null) 
  +            {
  +                try 
  +                {
  +                    jin.close();
  +                    jin = null;
  +                } 
  +                catch (IOException e1) 
  +                {
  +                    // ignore
  +                }
  +            }
  +            if (jout != null) 
  +            {
  +                try 
  +                {
  +                    jout.close();
  +                    jout = null;
  +                } 
  +                catch (IOException e1) 
  +                {
  +                    // ignore
  +                }
  +            }            
  +            
  +        }
       }
           
       private Document parseXml(InputStream jin) throws Exception {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message