Fix Kotlin internal files created in 'build/' ignoring custom buildDir

Issue #KT-10537 Fixed
This commit is contained in:
Sergey Igushkin
2017-11-30 20:50:44 +03:00
parent 953a485fe7
commit 01931c2ae6
2 changed files with 2 additions and 3 deletions
@@ -184,8 +184,6 @@ class SimpleKotlinGradleIT : BaseGradleIT() {
val project = Project("kotlinProject", GRADLE_VERSION)
project.setupWorkingDir()
File(project.projectDir, "build").writeText("This file prevents Gradle from using 'build' as a directory")
// Change the build directory in the end of the build script:
val customBuildDirName = "customBuild"
File(project.projectDir, "build.gradle").modify {
@@ -195,6 +193,7 @@ class SimpleKotlinGradleIT : BaseGradleIT() {
project.build("build") {
assertSuccessful()
assertFileExists("$customBuildDirName/classes")
assertNoSuchFile("build")
}
}
}