You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rework Java2Swift to operate entirely on Java2Swift.config files
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.
@Option(help:"The name of the Swift module into which the resulting Swift types will be generated.")
32
32
varmoduleName:String
33
33
34
-
@Argument(
35
-
help:
36
-
"The Java classes to translate into Swift written with their canonical names (e.g., java.lang.Object). If the Swift name of the type should be different from simple name of the type, it can appended to the class name with '=<swift name>'."
37
-
)
38
-
varclasses:[String]=[]
39
-
40
34
@Option(
41
35
help:
42
-
"The Java-to-Swift module manifest files for any Swift module containing Swift types created to wrap Java classes."
36
+
"A Java2Swift configuration file for a given Swift module name on which this module depends, e.g., JavaKitJar=Sources/JavaKitJar/Java2Swift.config. There should be one of these options for each Swift module that this module depends on (transitively) that contains wrapped Java sources."
43
37
)
44
-
varmanifests:[String]=[]
38
+
vardependsOn:[String]=[]
45
39
46
-
@Option(
40
+
@Flag(
47
41
help:
48
-
"The Jar file from which the set of class names should be loaded, if the classes weren't explicitly listed."
42
+
"Specifies that the input is a Jar file whose public classes will be loaded. The output of Java2Swift will be a configuration file (Java2Swift.config) that can be used as input to a subsequent Java2Swift invocation to generate wrappers for those public classes."
0 commit comments