Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 49 for doStuff2 (0.29 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratorTest.java

            public void setProp(String prop) {
                super.setProp(prop);
            }
    
            @Override
            public String doStuff(String value) {
                return super.doStuff(value);
            }
    
            @Override
            public void doStuff(Action<String> action) {
                action.execute("overloaded");
            }
        }
    
        public static class ParentBean {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 74.6K bytes
    - Viewed (0)
  2. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/ContinuousBuildFileWatchingIntegrationTest.groovy

            succeeds("build")
            executedAndNotSkipped ":compileJava", ":build"
            vfsLogs.getRetainedFilesInCurrentBuild() >= numberOfFilesInVfs
    
            when:
            sourceFile.text = "class Thing { public void doStuff() {} }"
    
            then:
            buildTriggeredAndSucceeded()
            vfsLogs.getRetainedFilesSinceLastBuild() >= numberOfFilesInVfs - 1
            vfsLogs.getRetainedFilesInCurrentBuild() >= numberOfFilesInVfs
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/LambdaInputsIntegrationTest.groovy

                    }
    
                    public void setAction(Action<File> action) {
                        this.action = action;
                    }
    
                    @TaskAction
                    public void doStuff() {
                        getAction().execute(outputFile);
                    }
                }
            """
        }
    
        private TestFile setupTaskClassWithConsumerProperty() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 09:08:49 UTC 2023
    - 18.5K bytes
    - Viewed (0)
  4. 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)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/SkipWhenEmptyIntegrationTest.groovy

                    abstract ConfigurableFileCollection getSources()
    
                    @OutputFile
                    abstract RegularFileProperty getOutputFile()
    
                    @TaskAction
                    void doStuff() {
                        println("Running...")
                        outputFile.get().asFile.text = "executed"
                    }
                }
            """
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 23 15:09:05 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  6. platforms/software/reporting/src/integTest/groovy/org/gradle/api/reporting/internal/TaskReportContainerIntegTest.groovy

                    @Nested
                    TaskReportContainer reports = project.services.get(org.gradle.internal.reflect.Instantiator).newInstance(TestTaskReportContainer, this)
    
                    @TaskAction
                    def doStuff() {
                        reports.enabled.each {
                             if (it.outputType == Report.OutputType.FILE) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  7. 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)
  8. platforms/extensibility/unit-test-fixtures/src/test/groovy/org/gradle/testfixtures/ProjectBuilderTest.groovy

        }
    
        def canCreateAndExecuteACustomTask() {
            when:
            def project = buildProject()
            def task = project.task('custom', type: CustomTask)
            task.doStuff()
    
            then:
            task.property == 'some value'
        }
    
        @LeaksFileHandles("script jar is held open")
        def canApplyABuildScript() {
            when:
            def project = buildProject()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 21:54:27 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top