Skip to content

Commit a94a5f6

Browse files
committed
Teach the Java2Swift plugin to match the nested type naming scheme for Java2Swift
1 parent c0692df commit a94a5f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Plugins/Java2SwiftPlugin/Java2SwiftPlugin.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ struct Java2SwiftBuildToolPlugin: BuildToolPlugin {
9090
/// Determine the set of Swift files that will be emitted by the Java2Swift
9191
/// tool.
9292
let outputSwiftFiles = config.classes.map { (javaClassName, swiftName) in
93-
outputDirectory.appending(path: "\(swiftName).swift")
93+
let swiftNestedName = swiftName.replacingOccurrences(of: ".", with: "+")
94+
return outputDirectory.appending(path: "\(swiftNestedName).swift")
9495
}
9596

9697
// Find the Java .class files generated from prior plugins.

0 commit comments

Comments
 (0)