Skip to content
Snippets Groups Projects
Commit fe287ca8 authored by birkhoff's avatar birkhoff
Browse files

Mac specific test options

parent d43ab31e
No related branches found
No related tags found
No related merge requests found
import org.apache.tools.ant.taskdefs.condition.Os
/* /*
Build Script can be executed via 'gradle install' Build Script can be executed via 'gradle install'
Build Script Dependencies can be downloaded via 'gradle collectDepenencies' Build Script Dependencies can be downloaded via 'gradle collectDepenencies'
...@@ -599,11 +600,25 @@ task tycho(dependsOn: [createPoms] , type:Exec) { ...@@ -599,11 +600,25 @@ task tycho(dependsOn: [createPoms] , type:Exec) {
<plugin> <plugin>
<groupId>org.eclipse.tycho</groupId> <groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId> <artifactId>tycho-surefire-plugin</artifactId>
<configuration>
<!-- <useUIHarness>true</useUIHarness> -->
<!-- <useUIThread>true</useUIThread> -->
${macTestArguments()}
<!-- <product>org.rodinp.platform.product</product> -->
</configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
""" } """ }
String macTestArguments() {
if ( Os.isFamily(Os.FAMILY_MAC) ){
return "<argLine>-XstartOnFirstThread</argLine>\n"
}else{
return "\n"
}
}
def start() { """<?xml version="1.0" encoding="UTF-8"?> def start() { """<?xml version="1.0" encoding="UTF-8"?>
<project <project
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment