Author: brett
Date: Wed May 4 06:42:51 2005
New Revision: 168123
URL: http://svn.apache.org/viewcvs?rev=168123&view=rev
Log:
destinationFile was not necessarily the resultant file in the parent method.
Check the return status instead
Modified:
maven/components/trunk/maven-mboot2/src/main/java/download/ArtifactDownloader.java
Modified:
maven/components/trunk/maven-mboot2/src/main/java/download/ArtifactDownloader.java
URL:
http://svn.apache.org/viewcvs/maven/components/trunk/maven-mboot2/src/main/java/download/ArtifactDownloader.java?rev=168123&r1=168122&r2=168123&view=diff
==============================================================================
---
maven/components/trunk/maven-mboot2/src/main/java/download/ArtifactDownloader.java
(original)
+++
maven/components/trunk/maven-mboot2/src/main/java/download/ArtifactDownloader.java
Wed May 4 06:42:51 2005
@@ -92,9 +92,7 @@
continue;
}
- getRemoteArtifact( dep, destinationFile );
-
- if ( !destinationFile.exists() )
+ if ( !getRemoteArtifact( dep, destinationFile ) )
{
throw new DownloadFailedException( "Failed to download " +
dep );
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]