Skip to main content

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

Hi Leo,

I'm not sure about pom.xml, but for Eclipse "-XstartOnFirstThread" vm arg is specified in eclipse.ini. And for launch configurations there is checkbox in arguments tab (checked by default) to the add the vm argument.

Inline images 1

Thanks & Regards,
Lakshmi P Shanmugam

On 5 July 2017 at 01:58, Leo Ufimtsev <Leonidas@xxxxxxxxxx> wrote:
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?

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev

Back to the top