Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for getFileChanges (0.23 sec)

  1. 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)
  2. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/tasks/UnexportMainSymbol.java

        public DirectoryProperty getOutputDirectory() {
            return outputDirectory;
        }
    
        @TaskAction
        protected void unexport(InputChanges inputChanges) {
            for (FileChange change : inputChanges.getFileChanges(getObjects())) {
                if (change.getChangeType() == ChangeType.REMOVED) {
                    File relocatedFileLocation = relocatedObject(change.getFile());
                    relocatedFileLocation.delete();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformIncrementalIntegrationTest.groovy

                        println "incremental: " + inputChanges.incremental
                        assert parameters.incrementalExecution.get() == inputChanges.incremental
                        def changes = inputChanges.getFileChanges(input)
                        println "changes: \\n" + changes.join("\\n")
                        assert changes.findAll { it.changeType == ChangeType.ADDED }*.file as Set == resolveFiles(parameters.addedFiles.get())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 10:57:29 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. build-logic/packaging/src/main/kotlin/gradlebuild/instrumentation/transforms/InstrumentationMetadataTransform.kt

            var instrumentedClassesFile: MetadataFileChange = MetadataNotChanged
            var upgradedPropertiesFile: MetadataFileChange = MetadataNotChanged
            inputChanges.getFileChanges(classesDir)
                .filter { change -> change.fileType == FileType.FILE }
                .forEach { change ->
                    when {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 19 14:00:26 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. 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)
  6. platforms/native/language-native/src/main/java/org/gradle/language/swift/tasks/SwiftCompile.java

            //   For now, this does a rudimentary incremental build analysis by looking at
            //   which files changed .
            if (isIncremental) {
                for (FileChange fileChange : inputs.getFileChanges(getSource())) {
                    if (fileChange.getChangeType() == ChangeType.REMOVED) {
                        removedFiles.add(fileChange.getFile());
                    } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top