Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Adamczyk committed Dec 22, 2020
1 parent b02f229 commit 14c86a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions common/src/main/kotlin/flank.common/Files.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fun createSymbolicLink(
link: String,
target: String
) {
createSymbolicLink(
Files.createSymbolicLink(
Paths.get(link)
.also { linkPath -> if (Files.isSymbolicLink(linkPath)) Files.delete(linkPath) }
.toAbsolutePath().normalize(),
Expand All @@ -24,7 +24,7 @@ fun createSymbolicLink(
)
}

fun createSymbolicLink(link: Path, target: Path) {
fun createSymbolicLinkToFile(link: Path, target: Path) {
Files.createSymbolicLink(link, target.fileName)
}

Expand Down
2 changes: 1 addition & 1 deletion flank-scripts/src/test/kotlin/flank/common/FilesTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ internal class FilesTest {
val expectedDestination = Paths.get(Files.createTempDirectory("temp").toString(), "test.link")

// when
createSymbolicLink(expectedDestination, testFile)
createSymbolicLinkToFile(expectedDestination, testFile)

// then
Assert.assertTrue(Files.isSymbolicLink(expectedDestination))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package ftl.ios.xctest.common

import flank.common.OutputLogLevel
import flank.common.createDirectoryIfNotExist
import flank.common.createSymbolicLink
import flank.common.createSymbolicLinkToFile
import flank.common.downloadFile
import flank.common.hasAllFiles
import flank.common.isMacOS
Expand Down Expand Up @@ -54,7 +54,7 @@ private fun downloadAndUnzip(osname: String) {
it.setExecutable(true)
}
Files.delete(destinationFile)
createSymbolicLink(
createSymbolicLinkToFile(
link = Paths.get(flankBinariesDirectory.toString(), "libatomic.so.1"),
target = Paths.get(flankBinariesDirectory.toString(), "libatomic.so.1.2.0")
)
Expand Down

0 comments on commit 14c86a1

Please sign in to comment.