Skip to content

Conversation

@DougGregor
Copy link
Member

Instead of having Java2Swift take in a list of classes on the command line, which the plugin synthesizes by reading a configuration file, and then emitting another almost-identical manifest file... rework the command-line interface to Java2Swift to operate entirely on the per-target Java2Swift.config files. This makes the plugin simpler, because it never has to look at build products for its dependencies.

Change the --jar-file mode of Java2Swift to emit the configuration file but not translate any classes. This should be used as a tool, not a build step.

Update the user guide to introduce JavaKit through the build tool.

The configuration file should be explicit. If we want to infer Swift type
names, we should do it when generating the configuration file.
Instead of having Java2Swift take in a list of classes on the command
line, which the plugin synthesizes by reading a configuration file,
and then emitting another almost-identical manifest file...
rework the command-line interface to Java2Swift to operate entirely on
the per-target Java2Swift.config files. This makes the plugin simpler,
because it never has to look at build products for its dependencies.

Change the `--jar-file` mode of Java2Swift to emit the configuration
file but not translate any classes. This should be used as a tool, not
a build step.

Update the user guide to introduce JavaKit through the build tool.
@DougGregor
Copy link
Member Author

This completes issue #16

@DougGregor DougGregor merged commit c904839 into swiftlang:main Oct 15, 2024
11 checks passed
@DougGregor DougGregor deleted the java2swift-api-cleanup branch October 15, 2024 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant