Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for doStuff2 (0.13 sec)

  1. 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)
  2. platforms/extensibility/unit-test-fixtures/src/test/groovy/org/gradle/testfixtures/CustomTask.groovy

     */
    
    package org.gradle.testfixtures
    
    import org.gradle.api.DefaultTask
    import org.gradle.api.tasks.TaskAction
    
    
    class CustomTask extends DefaultTask {
        String property
    
        @TaskAction
        def doStuff() {
            property = 'some value'
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 21:54:27 UTC 2024
    - 861 bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/SettingsScriptExecutionIntegrationTest.groovy

    try {
        buildscript.classLoader.loadClass('BuildSrcClass')
        assert false: 'should fail'
    } catch (ClassNotFoundException e) {
        // expected
    }
    """
            buildFile << 'task doStuff'
    
            when:
            run('doStuff')
    
            then:
            output.contains('quiet message')
            errorOutput.contains('error message')
        }
    
        private TestFile createBuildSrc() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/ChangesByGradleFileWatchingIntegrationTest.groovy

                    abstract DirectoryProperty getLocalStateDirectory()
                    @OutputFile
                    abstract RegularFileProperty getOutputFile()
    
                    @TaskAction
                    void doStuff() {
                        def localStateDir = localStateDirectory.get().asFile
                        localStateDir.mkdirs()
                        new File(localStateDir, "localState.txt").text = "localState"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top