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

Build Paths Relative to PWD in build.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 0.1.0
    • None
    • None
    • Fedora Core 4

    Description

      In the build.xml file, many paths are defined in terms of the present working directory (PWD) instead of relative to the location of the build.xml. Thus, whenever trying to compile from a directory other than the hadoop root, errors such as this appear:

      BUILD FAILED
      /home/jeremy/cvs/hadoop/build.xml:109: org.apache.jasper.JasperException: The -uriroot option must specify a pre-existing directory

      I have scripts / vim parameters that connect to other machines for compiling using ssh, and am not necessarily always in the root whenever I compile.

      I am attaching a patch which sets all paths relative to ${basedir}, and removes the override of ${basedir} to the PWD. Please let me know if there are reasons why the build environment must be relative to the working directory.

      Attachments

        1. hadoop.build.xml.patch
          2 kB
          Jeremy Bensley

        Activity

          People

            Unassigned Unassigned
            jbensley Jeremy Bensley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: