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 think this issue is covered in the FAQ[1], summary is you need to make argLine in a profile dependent on the platform.

I have found that the tycho-user mailing list is quite good for tycho+maven issues. You may have more luck there if this isn't a suitable answer.

Jonah


[1] https://wiki.eclipse.org/Tycho/FAQ#How_do_I_add_OS-specific_flags.3F

~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com

On 4 July 2017 at 21:28, 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