INNER CODE UNIT · Swift

args

skiptools/skip · Sources/SkipDrive/GradleDriver.swift:123

        var args = actions + arguments

        var env: [String: String] = environment

        // add in the project dir for explicitness (even though it is assumed from the current working directory as well)
        if let workingDirectory = workingDirectory {
            args += ["--project-dir", workingDirectory.path]
        }

        // this enables reporting on deprecated features
        args += ["--warning-mode", "all"]

        var testResultFolders: [URL] = []

        if let module = module {
            let moduleURL = URL(fileURLWithPath: module, isDirectory: true, relativeTo: workingDirectory)
            if !FileManager.default.fileExists(atPath: moduleURL.path) {
                throw GradleDriverError("The expected gradle folder did not exist, which may mean the skipstone plugin is not enabled or encountered errors. Try running `skip doctor` to diagnose and re-building the project. See https://skip.dev/docs/. Missing path: \(moduleURL.path)")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…