fix IllegalStateException from command line on retrieve

git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/trunk@483996 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Xavier Hanin 2005-06-28 17:53:45 +00:00
parent 76c88ebeff
commit 1ab4b852f3
2 changed files with 4 additions and 1 deletions

View File

@ -161,6 +161,9 @@ public class Main {
date,
validate).getModuleDescriptor();
if (confs.length == 1 && "*".equals(confs[0])) {
confs = md.getConfigurationsNames();
}
if (line.hasOption("retrieve")) {
String retrievePattern = ivy.substitute(line.getOptionValue("retrieve"));
if (retrievePattern.indexOf("[") == -1) {

View File

@ -30,7 +30,7 @@ public class XmlReportParser {
public Artifact[] getArtifacts(ModuleId moduleId, String conf, File cache) throws ParseException, IOException {
File report = new File(cache, XmlReportOutputter.getReportFileName(moduleId, conf));
if (!report.exists()) {
throw new IllegalStateException("no report file found for "+moduleId+" "+conf+" in "+cache);
throw new IllegalStateException("no report file found for "+moduleId+" "+conf+" in "+cache+": ivy was looking for "+report);
}
final List artifacts = new ArrayList();
try {