Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-503

[patch] Add support for passing -nowarn to the Ant task

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: unspecified
    • Fix Version/s: Version 3.1.0
    • Component/s: Compiler, Website
    • Labels:
      None

      Description

      The attached patch adds support for a new "nowarn" attribute to the Ant task, for controlling whether -nowarn should be passed to the JDK compiler (analog to the attribute of the javac task with the same name).

      As a user, you're often not interested in warnings in generated code. In my case I wanted to suppress

      [ant:xmlbean] warning: [options] bootstrap class path not set in conjunction with -source 1.4

      but I think the option to pass -nowarn is generally useful.

        Attachments

        1. xmlbeans-ant-support-nowarn.diff
          2 kB
          Elvis Stansvik

          Activity

            People

            • Assignee:
              dominik.stadler@gmx.at Dominik Stadler
              Reporter:
              estan Elvis Stansvik
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m