Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-2537

make build process compatible with Ant 1.7.0

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.14.4
    • Fix Version/s: 0.16.0
    • Component/s: build
    • Labels:
      None

      Description

      This section of build.xml behaves differently between Ant 1.6.5 and Ant 1.7.0:

          <touch datetime="01/25/1971 2:00 pm">
            <fileset dir="${conf.dir}" includes="**/*.template"/>
            <fileset dir="${contrib.dir}" includes="**/*.template"/>
          </touch>
      

      In Ant 1.6.5, if the fileset is empty (which it is if you're building from a released tar.gz distribution) then this section silently passes.

      In Ant 1.7.0, if the fileset is empty, the following error is raised and the build stops:

      BUILD FAILED
      /home/ndaley/Downloads/hadoop-0.15.1/build.xml:151: Specify at least one source--a file or resource collection.

        Attachments

        1. 2537.patch
          0.4 kB
          Hrishikesh
        2. 2537.patch1
          0.7 kB
          Hrishikesh

          Activity

            People

            • Assignee:
              hrishikesh Hrishikesh
              Reporter:
              nidaley Nigel Daley
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: