Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ruleBasedTasks (0.26 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/WithRuleBasedTasks.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.execution.taskgraph
    
    trait WithRuleBasedTasks {
    
        String ruleBasedTasks() {
            """
            class EchoTask extends DefaultTask {
                @Internal
                String message = "default"
                @TaskAction
                void print() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 13 15:22:15 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/RuleTaskExecutionIntegrationTest.groovy

            createdTasksFor("t1") == [":a:t1", ":b:t1", ":c:t1", ":t1"]
        }
    
        def "rule based tasks that are not requested on the command line are not created"() {
            when:
            buildFile << """
                ${ruleBasedTasks()}
                model {
                    tasks {
                        create("t1") {
                            group = "mygroup"
                        }
                        create("t2", BrokenTask) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top