avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/deployer/installer Installer.java
Date Thu, 30 May 2002 12:25:32 GMT
donaldp     02/05/30 05:25:32

  Modified:    src/java/org/apache/avalon/phoenix/components/deployer/installer
                        Installer.java
  Log:
  If can't delete all work files then at least schedule them for deletion at JVM shutdown.
  
  Revision  Changes    Path
  1.10      +10 -1     jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/deployer/installer/Installer.java
  
  Index: Installer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/deployer/installer/Installer.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Installer.java	29 May 2002 09:55:37 -0000	1.9
  +++ Installer.java	30 May 2002 12:25:31 -0000	1.10
  @@ -33,7 +33,7 @@
    * and installing it as appropriate.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.9 $ $Date: 2002/05/29 09:55:37 $
  + * @version $Revision: 1.10 $ $Date: 2002/05/30 12:25:31 $
    */
   public class Installer
       extends AbstractLogEnabled
  @@ -145,6 +145,15 @@
           }
           catch( final IOException ioe )
           {
  +            try
  +            {
  +                //If can't delete them now (damn windows locking!)
  +                //then schedule them for deletion when JVM exits
  +                FileUtil.forceDeleteOnExit( dir );
  +            }
  +            catch( final IOException ioe2 )
  +            {
  +            }
               final String message =
                   REZ.getString( "nodelete-workdir.error",
                                  dir,
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message