Skip to content

Commit 16cbd7d

Browse files
committed
Use URL apis that work back to 5.9
1 parent 17d8f28 commit 16cbd7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

assets/test/targets/Plugins/BuildToolPlugin/BuildToolPlugin.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ struct SimpleBuildToolPlugin: BuildToolPlugin {
2929
// Produces .swift files in the same directory structure as the input JSON files appear in the target.
3030
let components = inputURL.absoluteString.split(separator: "LibraryTarget", omittingEmptySubsequences: false).map(String.init)
3131
let inputName = inputURL.lastPathComponent
32-
let outputDir = outputDirectoryURL.appending(path: components[1]).deletingLastPathComponent()
32+
let outputDir = outputDirectoryURL.appendingPathComponent(components[1]).deletingLastPathComponent()
3333
let outputName = inputURL.deletingPathExtension().lastPathComponent + ".swift"
34-
let outputURL = outputDir.appending(path: outputName)
34+
let outputURL = outputDir.appendingPathComponent(outputName)
3535

3636
return .buildCommand(
3737
displayName: "Generating \(outputName) from \(inputName)",
3838
executable: generatorToolPath,
3939
arguments: ["\(inputPath)", "\(outputURL.path)"],
4040
inputFiles: [inputPath],
41-
outputFiles: [Path(outputURL.path)],
41+
outputFiles: [Path(outputURL.path)]
4242
)
4343
}
4444
}

0 commit comments

Comments
 (0)