You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ev...@apache.org on 2003/09/04 16:36:51 UTC
cvs commit: maven/src/bootstrap/org/apache/maven BootstrapTask.java
evenisse 2003/09/04 07:36:51
Modified: src/bootstrap/org/apache/maven BootstrapTask.java
Log:
MAVEN-770. The bootstrap will fail if the download of a JAR from a repo fails.
Revision Changes Path
1.17 +5 -1 maven/src/bootstrap/org/apache/maven/BootstrapTask.java
Index: BootstrapTask.java
===================================================================
RCS file: /home/cvs/maven/src/bootstrap/org/apache/maven/BootstrapTask.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- BootstrapTask.java 20 Aug 2003 13:08:00 -0000 1.16
+++ BootstrapTask.java 4 Sep 2003 14:36:51 -0000 1.17
@@ -336,7 +336,7 @@
for (Iterator i = dependencies.iterator(); i.hasNext(); )
{
Dependency d = (Dependency) i.next();
- list.add(getArtifactPath(d, "/"));
+ list.add(getArtifactPath(d, "/"));
}
setFiles(list);
@@ -474,6 +474,10 @@
numRetries--;
continue;
}
+ }
+ if (!destinationFile.exists())
+ {
+ throw new Exception("Failed to download " + baseUrl + file);
}
}
catch (Exception e)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org