Minor: fix build

This commit is contained in:
Zalim Bashorov
2015-10-12 19:57:59 +03:00
parent 79d38a6c8f
commit e54e6a3f31
@@ -757,18 +757,19 @@ public class KotlinJpsBuildTest : AbstractKotlinJpsBuildTestCase() {
DELETE
}
protected fun touch(path: String): Action = Action(Operation.CHANGE, path)
private fun touch(path: String): Action = Action(Operation.CHANGE, path)
protected fun del(path: String): Action = Action(Operation.DELETE, path)
private fun del(path: String): Action = Action(Operation.DELETE, path)
protected fun change(filePath: String): Unit = JpsBuildTestCase.change(filePath)
// TODO inline after KT-3974 will be fixed
private fun touch(file: File): Unit = JpsBuildTestCase.change(file.absolutePath)
protected inner class Action constructor(private val operation: Operation, private val path: String) {
private inner class Action constructor(private val operation: Operation, private val path: String) {
fun apply() {
val file = File(workDir, path)
when (operation) {
Operation.CHANGE ->
change(file.getAbsolutePath())
touch(file)
Operation.DELETE ->
assertTrue(file.delete(), "Can not delete file \"" + file.getAbsolutePath() + "\"")
else ->