Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6837665

Deal with windows ant problem where commas in -D options do not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 7
    • infrastructure
    • b60
    • generic
    • generic

      The recent changes to add javac.debuglevel setting to the ant command line has caused problems on some windows systems or environments. Apparently the ant startup script (ant.bat or ant.cmd?) used on some windows systems do not allow you to use comma characters in the command line, regardless of quoting. See https://issues.apache.org/bugzilla/show_bug.cgi?id=46561 where the bug was closed without even adding a note to the Ant user manual about the limitation.

      In any case, we can't reliably use anything on the ant command line that contains a comma, so -Djavac.debuglevel=source,lines,vars is OUT.

      ---
      BTW... the full JDK build would fail when langtools/make/Makefile was running ant, but this error on windows caused ant to return an exit code of 0, which just cascaded the builf error down the pipe. The ant startup script not returning a non-zero exit code on failure is probably another bug, apparently the ant.bat file has been a problem in many ways.

            ohair Kelly Ohair (Inactive)
            ohair Kelly Ohair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: