This should allow the SWT image tests to run. #12
This commit is contained in:
parent
afd8388848
commit
3446cb9024
23
build.gradle
23
build.gradle
|
@ -21,6 +21,29 @@ ext {
|
|||
mainClassName = 'com.webcodepro.applecommander.ui.AppleCommander'
|
||||
version "${version}"
|
||||
|
||||
test {
|
||||
String swtDependency
|
||||
switch (System.getProperty('os.name').toLowerCase().split()[0]) {
|
||||
case 'windows':
|
||||
swtDependency = "org.eclipse.swt:org.eclipse.swt.win32.win32.x86_64:$swtVersion"
|
||||
break
|
||||
case 'linux':
|
||||
swtDependency = "org.eclipse.swt:org.eclipse.swt.gtk.linux.x86_64:$swtVersion"
|
||||
break
|
||||
case 'mac':
|
||||
swtDependency = "org.eclipse.swt:org.eclipse.swt.cocoa.macosx.x86_64:$swtVersion"
|
||||
break
|
||||
default:
|
||||
throw new Exception('Unknown OS')
|
||||
}
|
||||
dependencies {
|
||||
compile "$swtDependency"
|
||||
}
|
||||
testLogging {
|
||||
exceptionFormat = 'full'
|
||||
}
|
||||
}
|
||||
|
||||
// Disable default JAR creation
|
||||
jar {
|
||||
enabled = false
|
||||
|
|
Loading…
Reference in New Issue