Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Cocoa maven test requires -XstartOnFirstThread vm arg?

Hello,

Does anyone know much about the pom.xml for Cocoa/SWT?

I got Cocoa/Maven tests working, but only by adding -XstartOnFirstThread (*1) into

/tests/org.eclipse.swt.test/pom.xm
...
<argLine> ..... -XstartOnFirstThread </argLine>
...

Without that, I would get an error when maven tries to run tests:
     cd ~/git/eclipse.platform.swt 
     mvn clean verify -Pbuild-individual-bundles
     ...
     ***WARNING: Display must be created on main thread due to Cocoa restrictions.

Does anyone know, is there already a mechanism in Eclipse to add "-XstartOnFirstThread" as a vm arg somewhere?
Failing that, can anyone think of a way to add this vm arg only on Cocoa maven builds?

Back to the top