Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for getFileChanges (0.17 sec)

  1. subprojects/core-api/src/main/java/org/gradle/work/InputChanges.java

         * </p>
         * <ul>
         *     <li>{@link #getFileChanges(FileCollection)} and {@link #getFileChanges(Provider)} report changes to the input files compared to the previous execution.</li>
         * </ul>
         * <p>
         * When <code>false</code>:
         * </p>
         * <ul>
         *     <li>Every input file is reported via {@link #getFileChanges(FileCollection)} and {@link #getFileChanges(Provider)} as if it was {@link ChangeType#ADDED}.</li>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 26 09:19:43 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  2. subprojects/core-api/src/main/java/org/gradle/work/Incremental.java

    /**
     * Track input changes for the annotated parameter.
     *
     * <p>
     *     Inputs annotated with {@link Incremental} can be queried for changes via {@link InputChanges#getFileChanges(org.gradle.api.file.FileCollection)} or {@link org.gradle.work.InputChanges#getFileChanges(org.gradle.api.provider.Provider)}.
     * </p>
     *
     * @since 5.4
     */
    @Retention(RetentionPolicy.RUNTIME)
    @Target({ElementType.METHOD, ElementType.FIELD})
    @Documented
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 06 13:15:59 UTC 2019
    - 1.3K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalInputsIntegrationTest.groovy

                    @TaskAction
                    void run(InputChanges changes) {
                        new File(outputDirectory, "one.txt").text = changes.getFileChanges(inputOne)*.file*.name.join("\\n")
                        new File(outputDirectory, "two.txt").text = changes.getFileChanges(inputTwo)*.file*.name.join("\\n")
                    }
                }
    
                task myTask(type: MyTask) {
                    inputOne = file("input")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 23 12:52:29 UTC 2022
    - 27.8K bytes
    - Viewed (0)
  4. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/changes/IncrementalInputChanges.java

        @Override
        public boolean isIncremental() {
            return true;
        }
    
        @Override
        public Iterable<FileChange> getFileChanges(FileCollection parameter) {
            return getObjectFileChanges(parameter);
        }
    
        @Override
        public Iterable<FileChange> getFileChanges(Provider<? extends FileSystemLocation> parameter) {
            return getObjectFileChanges(parameter);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/authoring-builds/tasks/custom_tasks.adoc

    ====
    
    The incremental task action can use link:{groovyDslPath}/org.gradle.work.InputChanges.html#org.gradle.work.InputChanges:getFileChanges(org.gradle.api.file.FileCollection)[`InputChanges.getFileChanges()`] to find out what files have changed for a given file-based input property, be it of type `RegularFileProperty`, `DirectoryProperty` or `ConfigurableFileCollection`.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Feb 25 15:21:05 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/dsl/org.gradle.work.InputChanges.xml

        <section>
            <title>Methods</title>
            <table>
                <thead>
                    <tr>
                        <td>Name</td>
                    </tr>
                </thead>
                <tr><td>getFileChanges</td></tr>
            </table>
        </section>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  7. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/changes/NonIncrementalInputChanges.java

        @Override
        public boolean isIncremental() {
            return false;
        }
    
        @Override
        public Iterable<FileChange> getFileChanges(FileCollection parameter) {
            return getObjectFileChanges(parameter);
        }
    
        @Override
        public Iterable<FileChange> getFileChanges(Provider<? extends FileSystemLocation> parameter) {
            return getObjectFileChanges(parameter);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/tasks/incrementalTask/kotlin/build.gradle.kts

            println(
                if (inputChanges.isIncremental) "Executing incrementally"
                else "Executing non-incrementally"
            )
    
            // tag::process-changed-inputs[]
            inputChanges.getFileChanges(inputDir).forEach { change ->
                if (change.fileType == FileType.DIRECTORY) return@forEach
    
                println("${change.changeType}: ${change.normalizedPath}")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-incremental/groovy/build.gradle

            def outputDir = outputs.dir("${input.get().asFile.name}.loc")
            println("Running transform on ${input.get().asFile.name}, incremental: ${inputChanges.incremental}")
            inputChanges.getFileChanges(input).forEach { change ->          // <2>
                def changedFile = change.file
                if (change.fileType != FileType.FILE) {
                    return
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-incremental/kotlin/build.gradle.kts

            val outputDir = outputs.dir("${input.get().asFile.name}.loc")
            println("Running transform on ${input.get().asFile.name}, incremental: ${inputChanges.isIncremental}")
            inputChanges.getFileChanges(input).forEach { change ->          // <2>
                val changedFile = change.file
                if (change.fileType != FileType.FILE) {
                    return@forEach
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top