ivy:install ant task does not fail on error
-------------------------------------------
Key: IVY-475
URL: https://issues.apache.org/jira/browse/IVY-475
Project: Ivy
Issue Type: Bug
Components: Ant
Affects Versions: 1.4.1
Environment: jdk 1.5
Reporter: Jeffrey Blatttman
install ant task does not fail on error. looking at the code, it looks like
IvyInstall does not capture and inspect the ResolveReport object that is
returned from the Ivy.install() method ...
...
try {
ivy.install(mrid, _from, _to, _transitive, doValidate(settings),
_overwrite, FilterHelper.getArtifactTypeFilter(_type), _cache, _matcher);
} catch (Exception e) {
throw new BuildException("impossible to install "+ mrid +": "+e, e);
}
...
looking at the IvyResolve task, it appears this pattern should be followed ...
...
report = ivy.resolve(
_file.toURL(),
getResolveOptions(confs, settings));
}
if (report.hasError()) {
if (_failureProperty != null) {
getProject().setProperty(_failureProperty, "true");
}
if (isHaltonfailure()) {
throw new BuildException("resolve failed - see output
for details");
}
...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.