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?

Thank you for your suggestions. I got things working as per Tycho faq suggestion. I submitted a patch for this business.

If someone knows swt/maven/cocoa, please kindly review my patch in:
Bug 519237 – [Cocoa] mvn -Pbuild-individual-bundles fails on OSX due to missing -XstartOnFirstThread vm arg
https://bugs.eclipse.org/bugs/show_bug.cgi?id=519237

Thank you for your time.

On Wed, Jul 5, 2017 at 4:07 AM, Jonah Graham <jonah@xxxxxxxxxxxxxxxx> wrote:
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



~~~
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


_______________________________________________
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



--

Leo Ufimtsev

Software Engineer

Red Hat


90 Eglinton Ave E #502,

Toronto, ON M4P 2Y3

Leonidas@xxxxxxxxxx  

CHAT:

  - IRC: http://webchat.freenode.net/?channels=#swt

  - MatterMost: https://mattermost.eclipse.org/eclipse/channels/platform-swt


Back to the top