Skip to content

Commit d895399

Browse files
committed
Fix OS detection bug
1 parent 2ece5e6 commit d895399

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

solr/packaging/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*/
1717

1818
import org.apache.tools.ant.util.TeeOutputStream
19+
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
1920

2021
// This project puts together a "distribution", assembling dependencies from
2122
// various other projects.
@@ -275,7 +276,7 @@ task integrationTests(type: BatsTask) {
275276

276277
task pesterTests {
277278
dependsOn installFullDist
278-
onlyIf { Os.isFamily(Os.FAMILY_WINDOWS) }
279+
onlyIf { DefaultNativePlatform.getCurrentOperatingSystem().isWindows() }
279280

280281
def integrationTestOutput = "$buildDir/powershell-test-output"
281282
def solrHome = "$integrationTestOutput/solr-home"

0 commit comments

Comments
 (0)