Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 29 of 29 for doStuff2 (0.17 sec)

  1. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileCollectionIntegrationTest.groovy

                    @OutputDirectory abstract DirectoryProperty getOutputClasses()
    
                    Producer() { outputs.upToDateWhen { false } } // TODO doesn't matter, remove this
    
                    @TaskAction void doStuff() {
                        File f = outputClasses.get().asFile
                        f.mkdirs()
                        new File(f, "some.txt") << "some text"
                    }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 12:54:09 UTC 2024
    - 21K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  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