Ivy
  1. Ivy
  2. IVY-1212

artifactreport ant task doesn't honor log attribute

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor 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.

        Activity

        Maarten Coene made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Maarten Coene [ maartenc ]
        Fix Version/s 2.2.0 [ 12315188 ]
        Phil Clay created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development