INNER CODE UNIT · Swift

scanGradleOutput

skiptools/skip · Sources/SkipDrive/GradleHarness.swift:13

    func scanGradleOutput(line1: String, line2: String)
}

let pluginFolderName = "skipstone"

@available(macOS 13, macCatalyst 16, iOS 16, tvOS 16, watchOS 8, *)
extension GradleHarness {
    /// Returns the URL to the folder that holds the top-level `settings.gradle.kts` file for the destination module.
    /// - Parameters:
    ///   - moduleTranspilerFolder: the output folder for the transpiler plug-in
    ///   - linkFolder: when specified, the module's root folder will first be linked into the linkFolder, which enables the output of the project to be browsable from the containing project (e.g., Xcode)
    /// - Returns: the folder that contains the buildable gradle project, either in the DerivedData/ folder, or re-linked through the specified linkFolder
    public func pluginOutputFolder(moduleName: String, linkingInto linkFolder: URL?) throws -> URL {
        let env = ProcessInfo.processInfo.environment

        func isDir(_ url: URL) -> Bool {
            (try? url.resourceValues(forKeys: [.isDirectoryKey]).isDirectory) == true
        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…