mirror of https://github.com/apache/ant-ivy
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:
parent
76c88ebeff
commit
1ab4b852f3
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue