maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mic...@apache.org
Subject cvs commit: maven-components/maven-artifact/src/main/java/org/apache/maven/artifact/downloader DefaultArtifactDownloader.java
Date Sun, 20 Jun 2004 13:34:28 GMT
michal      2004/06/20 06:34:28

  Modified:    maven-artifact/src/main/java/org/apache/maven/artifact/downloader
                        DefaultArtifactDownloader.java
  Log:
  now connection to repository is closed
  
  Revision  Changes    Path
  1.3       +13 -1     maven-components/maven-artifact/src/main/java/org/apache/maven/artifact/downloader/DefaultArtifactDownloader.java
  
  Index: DefaultArtifactDownloader.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-artifact/src/main/java/org/apache/maven/artifact/downloader/DefaultArtifactDownloader.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DefaultArtifactDownloader.java	14 Jun 2004 17:07:15 -0000	1.2
  +++ DefaultArtifactDownloader.java	20 Jun 2004 13:34:28 -0000	1.3
  @@ -82,6 +82,18 @@
               {
                   try
                   {
  +                    wagon.disconnect();
  +                }
  +                catch ( Exception e )
  +                {
  +                    String msg =  "Failed to close connection to " +
  +                            wagon.getRepository().getUrl();
  +                    
  +                    getLogger().error( msg, e );
  +                }
  +
  +                try
  +                {
                       wagonManager.releaseWagon( wagon );
                   }
                   catch ( Exception e )
  
  
  

Mime
View raw message