- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for getFileChanges (0.18 sec)
-
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) -
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) -
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) -
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) -
platforms/documentation/docs/src/docs/dsl/org.gradle.work.InputChanges.xml
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.1K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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)