maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r658125 - /maven/wagon/trunk/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/AbstractHttpClientWagon.java
Date Tue, 20 May 2008 06:55:30 GMT
Author: brett
Date: Mon May 19 23:55:30 2008
New Revision: 658125

URL: http://svn.apache.org/viewvc?rev=658125&view=rev
Log:
make it clear what doesn't throw exception

Modified:
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/AbstractHttpClientWagon.java

Modified: maven/wagon/trunk/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/AbstractHttpClientWagon.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/AbstractHttpClientWagon.java?rev=658125&r1=658124&r2=658125&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/AbstractHttpClientWagon.java
(original)
+++ maven/wagon/trunk/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/AbstractHttpClientWagon.java
Mon May 19 23:55:30 2008
@@ -331,7 +331,6 @@
         try
         {
             is = new PutInputStream( source, resource, this, getTransferEventSupport() );
-            putMethod.setRequestBody( is );
         }
         catch ( FileNotFoundException e )
         {
@@ -340,6 +339,8 @@
             throw new ResourceDoesNotExistException( "Source file does not exist: " + source,
e );
         }
 
+        putMethod.setRequestBody( is );
+
         try
         {
             firePutStarted( resource, source );



---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-commits-unsubscribe@maven.apache.org
For additional commands, e-mail: wagon-commits-help@maven.apache.org


Mime
View raw message