Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for Exec (0.28 sec)

  1. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/NamedDomainObjectContainerExtensionsTest.kt

            val task = mock<Exec>()
            val tasks = mock<TaskContainer> {
                on { getByName("hello") } doReturn task
            }
    
            @Suppress("unused_variable")
            tasks {
                val hello by getting(Exec::class)
            }
            verify(tasks).getByName("hello")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 18 22:58:28 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  2. build-logic/performance-testing/src/main/kotlin/gradlebuild/performance/tasks/DetermineBaselines.kt

            val releaseForkPointCommit = project.execAndGetStdout("git", "merge-base", "origin/release", "HEAD")
            val forkPointCommit =
                if (project.exec { isIgnoreExitValue = true; commandLine("git", "merge-base", "--is-ancestor", masterForkPointCommit, releaseForkPointCommit) }.exitValue == 0)
                    releaseForkPointCommit
                else
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 09:29:24 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  3. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/kotlindsl/kotlin-dsl-upstream-candidates.kt

     */
    operator fun File.div(child: String): File =
        resolve(child)
    
    
    fun Project.execAndGetStdout(workingDir: File, ignoreExitValue: Boolean, vararg args: String): String {
        val out = ByteArrayOutputStream()
        exec {
            isIgnoreExitValue = ignoreExitValue
            commandLine(*args)
            standardOutput = out
            this.workingDir = workingDir
        }
        return out.toString().trim()
    }
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 933 bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ProblemReportingCrossProjectModelAccess.kt

                return delegate.javaexec(action)
            }
    
            override fun exec(closure: Closure<*>): ExecResult {
                onAccess("exec")
                return delegate.exec(closure)
            }
    
            override fun exec(action: Action<in ExecSpec>): ExecResult {
                onAccess("exec")
                return delegate.exec(action)
            }
    
            override fun absoluteProjectPath(path: String): String {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/delegates/ProjectDelegate.kt

            delegate.configure(objects, configureAction)
    
        override fun exec(closure: Closure<*>): ExecResult =
            delegate.exec(closure)
    
        override fun exec(action: Action<in ExecSpec>): ExecResult =
            delegate.exec(action)
    
        override fun sync(action: Action<in SyncSpec>): WorkResult =
            delegate.sync(action)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 22:16:16 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/DefaultKotlinScript.kt

            fileOperations.delete(*paths)
    
        override fun delete(configuration: Action<DeleteSpec>): WorkResult =
            fileOperations.delete(configuration)
    
        override fun exec(configuration: Action<ExecSpec>): ExecResult =
            processOperations.exec(configuration)
    
        override fun javaexec(configuration: Action<JavaExecSpec>): ExecResult =
            processOperations.javaexec(configuration)
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 07 22:41:55 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  7. build-logic/lifecycle/src/main/kotlin/PrintStackTracesOnTimeoutBuildService.kt

            val projectDirectory: DirectoryProperty
        }
    
        private
        val timer: Timer = Timer(true).apply {
            schedule(
                timerTask {
                    execOperations.exec {
                        commandLine(
                            "${System.getProperty("java.home")}/bin/java",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 07:59:48 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  8. build-logic-settings/build-environment/src/main/kotlin/gradlebuild/basics/BuildEnvironmentService.kt

        @Suppress("UnstableApiUsage")
        private
        fun git(vararg args: String): Provider<String> {
            val projectDir = parameters.rootProjectDir.asFile.get()
            val execOutput = providers.exec {
                workingDir = projectDir
                isIgnoreExitValue = true
                commandLine = listOf("git", *args)
                if (OperatingSystem.current().isWindows) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 05:01:36 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. build-logic/profiling/src/main/kotlin/gradlebuild.buildscan.gradle.kts

    import org.gradle.internal.operations.OperationStartEvent
    import org.gradle.internal.watch.vfs.BuildFinishedFileSystemWatchingBuildOperationType
    import org.gradle.kotlin.dsl.support.serviceOf
    import org.gradle.launcher.exec.RunBuildBuildOperationType
    import java.net.InetAddress
    import java.net.URLEncoder
    
    plugins {
        id("gradlebuild.collect-failed-tasks")
        id("gradlebuild.cache-miss-monitor")
        id("gradlebuild.module-identity")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:29:44 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/SettingsScriptApi.kt

         *
         * @param configuration The block to use to configure the [ExecSpec].
         * @return The result of the execution.
         */
        @Suppress("unused")
        fun exec(configuration: ExecSpec.() -> Unit): ExecResult =
            processOperations.exec(configuration)
    
        /**
         * Executes an external Java process.
         *
         * This method blocks until the process terminates, with its result being returned.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 15.3K bytes
    - Viewed (0)
Back to top