File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
Samples/JavaDependencySampleApp
Sources/SwiftJavaBootstrapJavaTool Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 6060 - name : Prepare CI Environment
6161 uses : ./.github/actions/prepare_env
6262 - name : Swift Build
63- run : " swift build --build-tests"
63+ run : " swift build --build-tests --disable-sandbox "
6464 - name : Swift Test
6565 run : " swift test"
6666
Original file line number Diff line number Diff line change 66# TODO: this is a workaround for build plugins getting stuck running the bootstrap plugin
77cd ../../
88swift build --product SwiftJavaBootstrapJavaTool
9- .build/arm64-apple-macosx/ debug/SwiftJavaBootstrapJavaTool --fetch Sources/JavaKitDependencyResolver/swift-java.config --module-name JavaKitDependencyResolver --output-directory .build/plugins/outputs/swift-java/JavaKitDependencyResolver/destination/SwiftJavaBootstrapJavaPlugin
9+ .build/debug/SwiftJavaBootstrapJavaTool --fetch Sources/JavaKitDependencyResolver/swift-java.config --module-name JavaKitDependencyResolver --output-directory .build/plugins/outputs/swift-java/JavaKitDependencyResolver/destination/SwiftJavaBootstrapJavaPlugin
1010
1111cd -
1212swift run --disable-sandbox
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ final class SwiftJavaBootstrapJavaTool {
3535 }
3636
3737 func run( ) async throws {
38- print ( " RUN SwiftJavaBootstrapJavaTool: \( CommandLine . arguments) " )
38+ print ( " [debug][swift-java-bootstrap] RUN SwiftJavaBootstrapJavaTool: \( CommandLine . arguments) " )
3939
4040 var args = CommandLine . arguments
4141 _ = args. removeFirst ( ) // executable
@@ -48,8 +48,10 @@ final class SwiftJavaBootstrapJavaTool {
4848
4949 assert ( args. removeFirst ( ) == " --output-directory " )
5050 let outputDirectoryPath = args. removeFirst ( )
51-
52- let config = try readConfiguration ( configPath: URL ( fileURLWithPath: configPath) )
51+
52+ let configPathURL = URL ( fileURLWithPath: configPath)
53+ print ( " [debug][swift-java-bootstrap] Load config: \( configPathURL. absoluteString) " )
54+ let config = try readConfiguration ( configPath: configPathURL)
5355
5456 // We only support a single dependency right now.
5557 let localGradleProjectDependencyName = ( config. dependencies ?? [ ] ) . filter {
@@ -65,9 +67,8 @@ final class SwiftJavaBootstrapJavaTool {
6567 " --rerun-tasks " ,
6668 // "--debug",
6769 // "\(localGradleProjectDependencyName):jar",
68- " \( localGradleProjectDependencyName) : \( printRuntimeClasspathTaskName) " ,
69- ] ,
70- workingDirectory: " /Users/ktoso/code/swift-java "
70+ " \( localGradleProjectDependencyName) : \( printRuntimeClasspathTaskName) "
71+ ]
7172 )
7273
7374 let outString = String (
You can’t perform that action at this time.
0 commit comments