Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 49 of 49 for doStuff2 (0.13 sec)

  1. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/AbstractPluginValidationIntegrationSpec.groovy

                    @OutputDirectory
                    private File getOutputDir() {
                        return new File("outputDir");
                    }
    
                    @TaskAction
                    public void doStuff() { }
                }
            """
    
            expect:
            assertValidationFailsWith([
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 40.7K bytes
    - Viewed (0)
  2. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/AndroidPluginsSmokeTest.groovy

                        TextView textView = (TextView) findViewById(R.id.text_view);
                        textView.setText("The current local time is: " + currentTime);
                    }
    
                    ${changed ? "public void doStuff() {}" : ""}
                }""".stripIndent()
    
            file("${basedir}/src/main/res/layout/${resourceName}_layout.xml").text = '''<?xml version="1.0" encoding="utf-8"?>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 16K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskParametersIntegrationTest.groovy

            buildFile("""
                abstract class FailingTask extends DefaultTask {
                    @Input
                    abstract Property<String> getStringInput()
    
                    @TaskAction
                    void doStuff() {
                        println("Hello world")
                    }
                }
    
                tasks.register("failingTask", FailingTask) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalBuildIntegrationTest.groovy

                    @OutputFile
                    File getOutput() {
                        new File('build/output.txt')
                    }
    
                    @TaskAction
                    void doStuff() {
                        output.text = getMyPrivateInput()
                    }
                }
    
                abstract class MyTask extends MyBaseTask {
                    @Input
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalInputsIntegrationTest.groovy

                    @Incremental
                    abstract DirectoryProperty getInput()
                    @OutputFile
                    File output
    
                    @TaskAction
                    void doStuff(InputChanges changes) {
                        def changed = changes.getFileChanges(input)*.file*.name as List
                        assert changed.contains('child')
                        output.text = changed.join('\\n')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 23 12:52:29 UTC 2022
    - 27.8K bytes
    - Viewed (0)
  6. testing/integ-test/src/integTest/groovy/org/gradle/integtests/TaskExecutionIntegrationTest.groovy

                        }
                        throw new NullPointerException("Busted")
                    }
    
                    @OutputFile File outputFile
    
                    @TaskAction
                    void doStuff() {
                        executed = true
                    }
                }
    
                task custom(type: CustomTask) {
                    outputFile = file("output.txt")
                }
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/ModelRuleExtractorTest.groovy

        static class ClassWithNonRuleMethods extends RuleSource {
            static List thing() {
                []
            }
    
            static <T> List<T> genericThing() {
                []
            }
    
            private doStuff() {}
    
            private <T> T selectThing(List<T> list) { null }
        }
    
        def "can have non-rule methods that would be invalid rules"() {
            expect:
            extract(ClassWithNonRuleMethods).empty
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:45:02 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  8. tests/integration/README.md

    $ mkdir mycomponent
    ```
    
    You'll then need to define your component's API.
    
    ```go
    package mycomponent
    
    type Instance interface {
        resource.Resource
    
        DoStuff() error
        DoStuffOrFail(t test.Failer)
    }
    ```
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 19:04:51 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  9. subprojects/core-api/src/main/java/org/gradle/api/Project.java

     * be read and updated. Only the initial declaration that needs to be done via the namespace.
     *
     * <pre>
     * project.ext.prop1 = "foo"
     * task doStuff {
     *     ext.prop2 = "bar"
     * }
     * subprojects { ext.${prop3} = false }
     * </pre>
     *
     * Reading extra properties is done through the &quot;ext&quot; or through the owning object.
     *
     * <pre>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 04:56:22 UTC 2024
    - 74.3K bytes
    - Viewed (0)
Back to top