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
Copy file name to clipboardExpand all lines: Sources/SwiftJavaTool/Commands/JExtractCommand.swift
+4-8Lines changed: 4 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -58,8 +58,8 @@ extension SwiftJava {
58
58
@Option(help:"The directory where generated Java files should be written. Generally used with jextract mode.")
59
59
varoutputJava:String
60
60
61
-
@Flag(help:"Some build systems require an output to be present when it was 'expected', even if empty. This is used by the JExtractSwiftPlugin build plugin, but otherwise should not be necessary.")
62
-
varwriteEmptyFiles:Bool=false
61
+
@Flag(inversion:.prefixedNo,help:"Some build systems require an output to be present when it was 'expected', even if empty. This is used by the JExtractSwiftPlugin build plugin, but otherwise should not be necessary.")
62
+
varwriteEmptyFiles:Bool?
63
63
64
64
@Option(help:"The mode of generation to use for the output files. Used with jextract mode. By default, unsigned Swift types are imported as their bit-width compatible signed Java counterparts, and annotated using the '@Unsigned' annotation. You may choose the 'wrapGuava' mode in order to import types as class wrapper types (`UnsignedInteger` et al) defined by the Google Guava library's `com.google.common.primitives' package. that ensure complete type-safety with regards to unsigned values, however they incur an allocation and performance overhead.")
@Option(help:"The mode to use for extracting asynchronous Swift functions. By default async methods are extracted as Java functions returning CompletableFuture.")
83
83
varasyncFuncMode:JExtractAsyncFuncMode?
84
84
85
-
@Flag(help:"By enabling this mode, JExtract will generate Java code that allows you to implement Swift protocols using Java classes. This feature requires disabling the sandbox mode in SwiftPM. This only works in the 'jni' mode.")
86
-
varenableJavaCallbacks:Bool=false
85
+
@Flag(inversion:.prefixedNo,help:"By enabling this mode, JExtract will generate Java code that allows you to implement Swift protocols using Java classes. This feature requires disabling the SwiftPM Sandbox (!). This feature is onl supported in 'jni' mode.")
86
+
varenableJavaCallbacks:Bool?
87
87
88
88
@Option(help:"If specified, JExtract will output to this file a list of paths to all generated Java source files")
0 commit comments