File tree 2 files changed +3
-2
lines changed
documentTest/kotlin/com/github/jengelman/gradle/plugins/shadow/snippet
functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/util
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import java.util.regex.Pattern
5
5
import kotlin.io.path.ExperimentalPathApi
6
6
import kotlin.io.path.Path
7
7
import kotlin.io.path.name
8
- import kotlin.io.path.pathString
9
8
import kotlin.io.path.readText
10
9
import kotlin.io.path.relativeTo
11
10
import kotlin.io.path.walk
@@ -28,7 +27,7 @@ object CodeSnippetExtractor {
28
27
lang : DslLang ,
29
28
markdownPath : Path ,
30
29
): List <SnippetExecutable > {
31
- val relativeDocPath = markdownPath.relativeTo(docRoot).pathString
30
+ val relativeDocPath = markdownPath.relativeTo(docRoot).toString()
32
31
return createSnippets(markdownPath.readText(), lang).map { (lineNumber, snippet) ->
33
32
SnippetExecutable .create(
34
33
lang,
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ class JarPath(val path: Path) :
25
25
fun getMainAttr (name : String ): String? {
26
26
return manifest.mainAttributes.getValue(name)
27
27
}
28
+
29
+ override fun toString (): String = path.toString()
28
30
}
29
31
30
32
fun ZipFile.getContent (entryName : String ): String {
You can’t perform that action at this time.
0 commit comments