Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Automatically add -XstartOnFirstThread on Mac?

Hi,

I'm frequently adding the following to poms to support running tests on Mac using Surefire:

<profile>
    <id>osx</id>
    <activation>
        <os>
            <family>mac</family>
        </os>
    </activation>
    <build>
        <pluginManagement>
            <plugins>
                <plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
                    <configuration>
<argLine>-XstartOnFirstThread</argLine>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
</profile>

I also found this old bug discussing automatically adding it:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=388084

But I'm not clear whether this was addressed or not, or if there's some other way to use the -XstartOnFirstThread argument when running Maven/Tycho without having to add the profile above?

Thanks in advance,

Phil



Back to the top