- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for getFileChanges (0.21 sec)
-
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/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/software/antlr/src/main/java/org/gradle/api/plugins/antlr/AntlrTask.java
FileCollection stableSources = getStableSources(); if (inputChanges.isIncremental()) { boolean rebuildRequired = false; for (FileChange fileChange : inputChanges.getFileChanges(stableSources)) { if (fileChange.getFileType() == FileType.FILE) { if (fileChange.getChangeType() == ChangeType.REMOVED) { rebuildRequired = true;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 14 14:52:10 UTC 2023 - 9.8K bytes - Viewed (0) -
platforms/native/language-native/src/main/java/org/gradle/language/swift/tasks/SwiftCompile.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 11.6K bytes - Viewed (0) -
platforms/jvm/language-java/src/main/java/org/gradle/api/tasks/compile/JavaCompile.java
return new JavaRecompilationSpecProvider( getDeleter(), getServices().get(FileOperations.class), sources, inputs.isIncremental(), () -> inputs.getFileChanges(getStableSources()).iterator() ); } private boolean isUsingCliCompiler(DefaultJavaCompileSpec spec) { return CommandLineJavaCompileSpec.class.isAssignableFrom(spec.getClass()); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 15:33:35 UTC 2024 - 15.3K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/file/FileCollectionSymlinkIntegrationTest.groovy
@Incremental @InputFiles FileCollection brokenInputFiles @OutputFile File output @TaskAction execute(InputChanges changes) { output.text = changes.getFileChanges(brokenInputFiles)*.changeType } } task inputBrokenLinkNameCollector(type: CustomTask) { brokenInputFiles = files '${brokenInputFile}'
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 09:03:53 UTC 2024 - 15.7K bytes - Viewed (0) -
platforms/jvm/language-groovy/src/main/java/org/gradle/api/tasks/compile/GroovyCompile.java
getDeleter(), getServices().get(FileOperations.class), stableSources.getAsFileTree(), inputChanges.isIncremental(), () -> inputChanges.getFileChanges(stableSources).iterator() ); } /** * The sources for incremental change detection. * * @since 5.6 */ @SkipWhenEmpty @IgnoreEmptyDirectories
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 26 14:58:23 UTC 2024 - 15.6K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/userguide/authoring-builds/tasks/implementing_custom_tasks.adoc
|`@SkipWhenEmpty` |Property is a file or directory and the task should be skipped when the value of the property is empty |`@Incremental` |Property is a file or directory and changes to it can be queried with `@InputChanges.getFileChanges()` |`@Optional` |Property is any type, its value does not have to be specified and validation checks are disabled |`@PathSensitive`
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 05:34:54 UTC 2024 - 37.2K bytes - Viewed (0)