Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 117 for beforeExecute (0.14 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/execution/EventFiringTaskExecuterTest.groovy

            then:
            _ * task.getIdentityPath() >> Path.path(":a")
    
            1 * task.getTaskIdentity() >> taskIdentity
            1 * taskListener.beforeExecute(taskIdentity)
            1 * taskExecutionListener.beforeExecute(task)
    
            then:
            1 * delegate.execute(task, state, executionContext) >> TaskExecuterResult.WITHOUT_OUTPUTS
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopySpecEncodingIntegrationSpec.groovy

            buildScript """
                task (copy, type: Copy) {
                    from 'files'
                    into 'dest'
                    expand(one: 1)
                }
            """.stripIndent()
            executer.beforeExecute { it.withDefaultCharacterEncoding('ISO-8859-1') }
    
            when:
            run 'copy'
    
            then:
            file('dest/accents.c').getText('ISO-8859-1') == 'éàüî 1'
    
            when:
            run 'copy'
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:45:30 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/WatchedDirectoriesFileSystemWatchingIntegrationTest.groovy

                    }
                """
                settingsFile << """
                    includeBuild("../includedBuild")
                """
            }
            executer.beforeExecute {
                inDirectory(consumer)
            }
            def expectedWatchableHierarchies = [
                ImmutableSet.of(consumer),
                ImmutableSet.of(consumer, includedBuild)
            ]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  4. subprojects/build-events/src/integTest/groovy/org/gradle/build/event/InternalBuildOperationEventsIntegrationTest.groovy

                registry.onOperationCompletion(listener)
            """
    
            buildFile << """
                task a
                task b
            """
            executer.beforeExecute {
                usingInitScript(initScript)
            }
    
            when:
            run("a")
    
            then:
            output.count("EVENT:") == 1
    
            when:
            run("a")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 04 12:17:31 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/initScripts/customLogger/groovy/customLogger.init.gradle

    useLogger(new CustomEventLogger())
    
    @SuppressWarnings("deprecation")
    class CustomEventLogger extends BuildAdapter implements TaskExecutionListener {
    
        void beforeExecute(Task task) {
            println "[$task.name]"
        }
    
        void afterExecute(Task task, TaskState state) {
            println()
        }
        
        void buildFinished(BuildResult result) {
            println 'build completed'
            if (result.failure != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 485 bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/initScripts/customLogger/kotlin/customLogger.init.gradle.kts

    useLogger(CustomEventLogger())
    
    @Suppress("deprecation")
    class CustomEventLogger() : BuildAdapter(), TaskExecutionListener {
    
        override fun beforeExecute(task: Task) {
            println("[${task.name}]")
        }
    
        override fun afterExecute(task: Task, state: TaskState) {
            println()
        }
    
        override fun buildFinished(result: BuildResult) {
            println("build completed")
            if (result.failure != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 504 bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/internal/tasks/execution/EventFiringTaskExecuter.java

                    Logger logger = task.getLogger();
                    ContextAwareTaskLogger contextAwareTaskLogger = null;
                    try {
                        taskListener.beforeExecute(task.getTaskIdentity());
                        taskExecutionListener.beforeExecute(task);
                        if (logger instanceof ContextAwareTaskLogger) {
                            contextAwareTaskLogger = (ContextAwareTaskLogger) logger;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/AbstractWrapperIntegrationSpec.groovy

            def executer = new InProcessGradleExecuter(distribution, temporaryFolder)
            executer.beforeExecute(action)
            executer.withArguments("wrapper", "--gradle-distribution-url", distributionUri.toString()).run()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskExecutionErrorHandlingIntegrationTest.groovy

                    remote(FailingBuildCache) {
                        shouldFail = System.getProperty("failOn")
                        push = true
                    }
                }
            """
    
            executer.beforeExecute {
                executer.withBuildCacheEnabled()
            }
        }
    
        def "remote cache #failEvent error stack trace is printed when requested (#showStacktrace)"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:22 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftCachingIntegrationTest.groovy

            withBuildCache().run compileTask(buildType)
    
            then:
            executedAndNotSkipped allCompileTasks
    
            when:
            originalLocation.deleteDir()
            executer.beforeExecute {
                inDirectory(newLocation)
            }
    
            run 'clean'
            withBuildCache().run compileTask(buildType), installTask(buildType)
    
            then:
            skipped allCompileTasks
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.2K bytes
    - Viewed (0)
Back to top