Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-122

ivy task does not enjoy being defined twice (build error)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.2.0
    • Component/s: java
    • Labels:
      None

      Description

      This same issue exists in ZOOKEEPER-535
      ---------------
      Ant resolves the same dependencies multiple times if multiple targets are run on the command line:

      "ant b c", where b and c both depend on a, results in a being executed twice. However if you have a
      target d which depends on both b and c, "ant d" will only result in a being executed once.

      say "ant compile-java compile-java-test" is run, this will currently fail as ivy-init is run twice, resulting in the taskdef failing.

      Rather we need a guard on the ivy-init target itself to ensure it isn't run twice.

      ie: put an unless attrib on ivy-init, then set that property in the body of the target

        Attachments

        1. AVRO-122.patch
          0.6 kB
          Patrick Hunt

          Activity

            People

            • Assignee:
              phunt Patrick Hunt
              Reporter:
              phunt Patrick Hunt
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: