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 lowest access level of Swift declarations that should be extracted, defaults to 'public'.")
@Option(help:"The mode to use for extracting asynchronous Swift functions. By default async methods are extracted as Java functions returning CompletableFuture.")
80
80
varasyncFuncMode:JExtractAsyncFuncMode?
81
81
82
-
@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.")
83
-
varenableJavaCallbacks:Bool=false
82
+
@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.")
83
+
varenableJavaCallbacks:Bool?
84
84
85
85
@Option(help:"If specified, JExtract will output to this file a list of paths to all generated Java source files")
0 commit comments