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

Need a simpler way to specify arbitrary options to java compiler while building Hadoop

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.10.1
    • 0.11.0
    • build
    • None
    • All

    Description

      Currently, if one has to specify arbitrary command-line options, such as "-Xlint:unchecked", to javac, one has to edit build.xml. There should be a property, javac.args, that can be specified on the ant command-line, as follows:

      ant compile -Djavac.args="-Xlint:unchecked"

      Patch forthcoming.

      Attachments

        1. compiler-args.patch
          2 kB
          Milind Barve

        Activity

          People

            milindb Milind Barve
            milindb Milind Barve
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: