Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for doStuff2 (0.23 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/NestedInputIntegrationTest.groovy

                class GeneratorTask extends DefaultTask {
                    @Output${kind}
                    final ${type.name} output = project.objects.${factory}()
    
                    @TaskAction
                    void doStuff() {
                        output${generatorAction}
                    }
                }
    
                task generator(type: GeneratorTask) {
                    output.set(project.layout.buildDirectory.${lookup}('output'))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/DynamicObjectIntegrationTest.groovy

                }
                assert defaultTask.doStuff() == 'method'
                assert javaTask.doStuff() == 'method'
                assert groovyTask.doStuff() == 'method'
                assert configurations.test.doStuff() == 'method'
                configurations.test.dependencies.each {
                    assert it.doStuff() == 'method'
                }
                assert repositories.doStuff() == 'method'
                repositories {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  3. platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/TaskUpToDateIntegrationTest.groovy

                    abstract ConfigurableFileCollection getOutputFiles()
    
                    @Inject
                    abstract ProjectLayout getLayout()
    
                    @TaskAction
                    void doStuff() {
                        layout.buildDirectory.file("dir1/output1.txt").get().asFile.text = "first"
                        layout.buildDirectory.file("dir2/output2.txt").get().asFile.text = "second"
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 10:15:40 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  4. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/ValidatePluginsPart2IntegrationTest.groovy

                    @Input
                    public FileTree getFileTree() {
                        return getProject().files().getAsFileTree();
                    }
    
                    @TaskAction
                    public void doStuff() { }
                }
            """
    
            when:
            executer.withArgument("-Dorg.gradle.internal.max.validation.errors=7")
    
            then:
            assertValidationFailsWith([
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  5. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/RuntimePluginValidationIntegrationTest.groovy

                    @Input
                    public FileTree getFileTree() {
                        return getProject().files().getAsFileTree();
                    }
    
                    @TaskAction
                    public void doStuff() { }
                }
            """
    
            expect:
            executer.withArgument("-Dorg.gradle.internal.max.validation.errors=10")
            assertValidationFailsWith([
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 14:30:05 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/api/internal/project/taskfactory/AnnotationProcessingTaskFactoryTest.groovy

            TaskWithMultiParamAction              | "Cannot use @TaskAction annotation on method TaskWithMultiParamAction.doStuff() as this method takes multiple parameters."
            TaskWithSingleParamAction             | "Cannot use @TaskAction annotation on method TaskWithSingleParamAction.doStuff() because int is not a valid parameter to an action method."
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:42:35 UTC 2024
    - 38.8K bytes
    - Viewed (0)
  7. JavadocStyleGuide.md

    Make sure the correct language is added to the class name: `language-kotlin`, `language-groovy`, or `language-java`:
    
    ```java
    /**
     * <pre><code class="language-kotlin">
     * project.ext.prop1 = "foo"
     * task doStuff {
     *     ext.prop2 = "bar"
     * }
     * subprojects { ext.${prop3} = false }
     * </code></pre>
     */
    ```
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 15:43:07 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top