Bug 578519 - [win32] Support Visual Studio 2022 in build scripts

Instead of searching for a single VisualStudio version/edition, search
for various possible combinations and select the best one.

This patch also adds support for the modern VS2022.

This patch also does some refactoring:
1) Remove quotes from ECHO, because these are literally printed to
   console. However, without quotes, ECHO has problems with special
   characters. Implemented a new function to deal with that.
2) Change :: style comments (I wrote them in an earlier commit) to @rem
   Turns out, :: is kind of a hack and has some issues in blocks.
3) Indent ':TryToUseJdk' to make it look like a function
4) Added quotes in 'SET' to make it more resilient to special characters

Change-Id: I24587e7e940431f6453520cecab083f4774f1296
Signed-off-by: Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/190332
Tested-by: Platform Bot <platform-bot@eclipse.org>
Reviewed-by: Niraj Modi <niraj.modi@in.ibm.com>
1 file changed
tree: 5375e7392888d900f31e01a5a0003d146a9cb674
  1. bundles/
  2. container/
  3. examples/
  4. features/
  5. local-build/
  6. tests/
  7. .gitattributes
  8. .gitignore
  9. CONTRIBUTING
  10. Jenkinsfile
  11. LICENSE
  12. NOTICE
  13. pom.xml
  14. README.md
README.md

Contributing to SWT

Thanks for your interest in this project.

Developer resources:

See the following description for how to contribute a feature or a bug fix to SWT.

Information regarding source code management, builds, coding standards, and more and be found under the following link.

Contributor License Agreement:

Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).

Contact:

Contact the project developers via the project's “dev” list.

Search for bugs:

This project uses Bugzilla to track ongoing development and issues.

Create a new bug:

Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!