Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for getFileChanges (0.2 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. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. platforms/documentation/docs/src/snippets/tasks/incrementalTask/groovy/build.gradle

            println(inputChanges.incremental
                ? 'Executing incrementally'
                : 'Executing non-incrementally'
            )
    
            // tag::process-file-changes[]
            inputChanges.getFileChanges(inputDir).each { change ->
                if (change.fileType == FileType.DIRECTORY) return
    
                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.4K bytes
    - Viewed (0)
  10. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/changes/NonIncrementalInputChangesTest.groovy

            def expectedChangedFiles = [new File("/some/where")]
    
            when:
            def allFileChanges = changes.allFileChanges
            def fileChanges = changes.getFileChanges(value)
    
            then:
            allFileChanges*.file == expectedChangedFiles
            allFileChanges*.file == expectedChangedFiles
    
            fileChanges*.file == expectedChangedFiles
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top