Commit 940596f
build: enable UI tests on macOS via Tycho profile + JRE docs
Add a `macosx` Maven profile in ddk-parent/pom.xml, activated on
family=mac, that sets the OSGi target environment
(macosx/cocoa/aarch64) and appends -XstartOnFirstThread to
test.javaOptions. SWT on Cocoa requires the Display to be created on
the main thread; without the flag, UI tests fail with "SWTException:
Invalid thread access".
The same flag is needed when developers run UI test launches from
Eclipse on macOS, but -XstartOnFirstThread is rejected as an
"Unrecognized VM option" by the JVM on Windows and Linux. Eclipse's
own .launch files (e.g. in eclipse-platform/eclipse.platform) omit
it entirely and rely on the launching JRE's default VM arguments to
add it on macOS. Adopt the same pattern: document the one-time
per-JRE setup in AGENTS.md instead of hardcoding the flag in
cross-platform .launch files.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 11c352b commit 940596f
2 files changed
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
71 | 86 | | |
72 | 87 | | |
73 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
414 | 428 | | |
415 | 429 | | |
0 commit comments