Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for hasTask (0.51 sec)

  1. subprojects/core/src/main/java/org/gradle/execution/TaskNameResolver.java

                if (!tasks.isEmpty()) {
                    return new FixedTaskSelectionResult(tasks);
                }
            } else {
                discoverTasks(project);
                if (hasTask(taskName, project)) {
                    return new TaskSelectionResult() {
                        @Override
                        public void collectTasks(Collection<? super Task> tasks) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/CrossProjectConfigurationReportingTaskExecutionGraph.kt

                val coupledProjects = listOf(taskOwner)
                reportCrossProjectTaskAccess(coupledProjects, task.path)
            }
        }
    
        override fun hasTask(task: Task): Boolean {
            checkCrossProjectTaskAccess(task)
            return delegate.hasTask(task)
        }
    
        override fun getAllTasks(): MutableList<Task> {
            val result = delegate.allTasks
            observingTasksMaybeFromOtherProjects(result)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/signing/conditional/groovy/build.gradle

                name = "localRepo"
                url = uri(layout.buildDirectory.dir("repo"))
            }
        }
    }
    
    // tag::conditional-signing[]
    signing {
        required { isReleaseVersion && gradle.taskGraph.hasTask("publish") }
        sign publishing.publications.main
    }
    // end::conditional-signing[]
    
    // Alternative to signing.required
    // tag::only-if[]
    tasks.withType(Sign) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 819 bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/signing/conditional/kotlin/build.gradle.kts

                url = uri(layout.buildDirectory.dir("repo"))
            }
        }
    }
    
    // tag::conditional-signing[]
    signing {
        setRequired({
            (project.extra["isReleaseVersion"] as Boolean) && gradle.taskGraph.hasTask("publish")
        })
        sign(publishing.publications["main"])
    }
    // end::conditional-signing[]
    
    // Alternative to signing.required
    // tag::only-if[]
    tasks.withType<Sign>().configureEach {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 930 bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/AbstractConsoleVerboseBasicFunctionalTest.groovy

            then:
            result.groupedOutput.task(':helloWorld').output == helloWorldMessage
            result.groupedOutput.task(':byeWorld').output == byeWorldMessage
            hasSilenceTaskOutput == result.groupedOutput.hasTask(':silence')
        }
    
        def 'failed task result can be rendered'() {
            given:
            buildFile << '''
                task myFailure {
                    doLast {
                        assert false
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/logging/GroupedOutputFixture.java

        }
    
        public int getTransformCount() {
            return transforms.size();
        }
    
        public boolean hasTask(String taskName) {
            return tasks.containsKey(taskName);
        }
    
        public GroupedTaskOutputFixture task(String taskName) {
            boolean foundTask = hasTask(taskName);
    
            if (!foundTask) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  7. build-logic/publishing/src/main/kotlin/gradlebuild.publish-defaults.gradle.kts

        if (name.endsWith("ToRemoteRepository")) {
            failEarlyIfUrlOrCredentialsAreNotSet(this)
        }
    }
    
    fun Project.failEarlyIfUrlOrCredentialsAreNotSet(publish: Task) {
        gradle.taskGraph.whenReady {
            if (hasTask(publish)) {
                if (artifactoryUrl.isEmpty()) {
                    throw GradleException("artifactoryUrl is not set!")
                }
                if (artifactoryUserName.isNullOrEmpty()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 11:35:58 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. subprojects/core-api/src/main/java/org/gradle/api/execution/TaskExecutionGraph.java

         */
        boolean hasTask(String path);
    
        /**
         * <p>Determines whether the given task is included in the execution plan.</p>
         *
         * @param task the task
         * @return true if the given task is included in the execution plan.
         * @throws IllegalStateException When this graph has not been populated.
         */
        boolean hasTask(Task task);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 20:29:51 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/rich/RichConsoleBasicGroupedTaskLoggingFunctionalTest.groovy

        def "tasks with no actions are not displayed"() {
            given:
            buildFile << "task log"
    
            when:
            succeeds('log')
    
            then:
            !result.groupedOutput.hasTask(':log')
        }
    
        def "group header is printed red if task failed"() {
            given:
            buildFile << """
                task failing { doFirst {
                    logger.quiet 'hello'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/jvm/AbstractConsoleJvmTestLoggingFunctionalTest.groovy

                """
            }
    
            when:
            executer.withConsole(consoleType)
            succeeds(TEST_TASK_NAME)
    
            then:
            if (result.groupedOutput.hasTask(TEST_TASK_PATH)) {
                def taskOutput = getTaskOutput(result).readLines().findAll { !it.isBlank() }.join('\n')
                assert !taskOutput.contains("""MyTest > testExpectation ${TestLogEvent.STANDARD_OUT.consoleMarker}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 14:21:18 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top