Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-1212

artifactreport ant task doesn't honor log attribute

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.2.0
    • Component/s: Ant
    • Labels:
      None

      Description

      The artifactreport doesn't honor the log attribute. I set log="quiet" because I don't want to see all the...

      [ivy:artifactreport] found xxx in yyy

      ...messages in my ant output. However, the messages still appear.

      The problem seems to be that the log field is not set on the ResolveOptions created in the IvyArtifactReport task...

                  IvyNode[] dependencies = getIvyInstance().getResolveEngine().getDependencies(
                      md,
                      new ResolveOptions().setConfs(confs).setResolveId(
                          getResolveId()).setValidate(doValidate(getSettings())), null);
      

      I think the above code should instead be (notice the new setLog call)...

                  IvyNode[] dependencies = getIvyInstance().getResolveEngine().getDependencies(
                      md,
                      new ResolveOptions()
                          .setConfs(confs)
                          .setLog(getLog())
                          .setResolveId(getResolveId())
                          .setValidate(doValidate(getSettings())),
                      null);
      

      I'm guessing the RetrieveOptions created a few lines lower need the same setLog call added as well.

        Attachments

          Activity

            People

            • Assignee:
              maartenc Maarten Coene
              Reporter:
              philsttr Phil Clay
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: