avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mirceat...@apache.org
Subject cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/installer Installer.java
Date Thu, 01 Nov 2001 22:56:58 GMT
mirceatoma    01/11/01 14:56:58

  Modified:    src/java/org/apache/avalon/phoenix/tools/installer
                        Installer.java
  Log:
  Retrieve log message from Resource only once.
  
  Revision  Changes    Path
  1.17      +2 -4      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/installer/Installer.java
  
  Index: Installer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/installer/Installer.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- Installer.java	2001/11/01 22:31:19	1.16
  +++ Installer.java	2001/11/01 22:56:58	1.17
  @@ -80,12 +80,12 @@
                   final File file = infos[i].getFile();
                   final File parent = file.getParentFile();
                                   
  +                final String message = REZ.getString( "skip-removal", file );
  +                
                   if( file.exists() )
                   {                    
                       if( file.lastModified() <= installation.getTimestamp() )
                       {
  -                        final String message = 
  -                            REZ.getString( "skip-removal", file );
                           getLogger().debug( message );                        
                           continue;
                       }
  @@ -94,8 +94,6 @@
   
                       if( checksum.getValue() != infos[i].getChecksum() )
                       {
  -                        final String message = 
  -                            REZ.getString( "skip-removal", file );
                           getLogger().debug( message );                        
                           continue;
                       }
  
  
  

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


Mime
View raw message