Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 55 for doStuff2 (0.37 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top