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

Windows build fails if VS150COMNTOOLS is set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u151, 9.0.1, 10
    • Fix Version/s: 10
    • Component/s: javafx

      Backports

        Description

        If a developer tries to override the default Visual Studio root dir (e.g., to speficy Community rather than Professional), the build will fail.

        To reproduce this, set the VS150COMNTOOLS env variable to the same value that it will use if not set (note that the double backslash is needed when running from cygwin shell).

        $ export VS150COMNTOOLS="C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Professional\\VC\\Auxiliary\\Build"
        $ gradle
        ...
        :buildSrc:build
        \Microsoft was unexpected at this time.

        FAILURE: Build failed with an exception.

        * Where:
        Script 'C:\Users\kcr\javafx\10-kcr\jfx\rt\buildSrc\win.gradle' line: 48

        * What went wrong:
        A problem occurred evaluating script.
        > Process 'command 'cmd'' finished with non-zero exit value 255

        * Try:
        Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

        * Get more help at https://help.gradle.org

        BUILD FAILED in 10s

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mbilla Murali Billa (Inactive)
                  Reporter:
                  kcr Kevin Rushforth
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: