File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
assets/test/targets/Plugins/BuildToolPlugin Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,16 @@ struct SimpleBuildToolPlugin: BuildToolPlugin {
29
29
// Produces .swift files in the same directory structure as the input JSON files appear in the target.
30
30
let components = inputURL. absoluteString. split ( separator: " LibraryTarget " , omittingEmptySubsequences: false ) . map ( String . init)
31
31
let inputName = inputURL. lastPathComponent
32
- let outputDir = outputDirectoryURL. appending ( path : components [ 1 ] ) . deletingLastPathComponent ( )
32
+ let outputDir = outputDirectoryURL. appendingPathComponent ( components [ 1 ] ) . deletingLastPathComponent ( )
33
33
let outputName = inputURL. deletingPathExtension ( ) . lastPathComponent + " .swift "
34
- let outputURL = outputDir. appending ( path : outputName)
34
+ let outputURL = outputDir. appendingPathComponent ( outputName)
35
35
36
36
return . buildCommand(
37
37
displayName: " Generating \( outputName) from \( inputName) " ,
38
38
executable: generatorToolPath,
39
39
arguments: [ " \( inputPath) " , " \( outputURL. path) " ] ,
40
40
inputFiles: [ inputPath] ,
41
- outputFiles: [ Path ( outputURL. path) ] ,
41
+ outputFiles: [ Path ( outputURL. path) ]
42
42
)
43
43
}
44
44
}
You can’t perform that action at this time.
0 commit comments