Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for cleanupOutput (0.17 sec)

  1. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/OutputsCleanerTest.groovy

            }
    
            !subDir.exists()
            !outputDir.exists()
            cleaner.didWork
        }
    
        private void cleanupOutput(File... files)  {
            for (File file : files) {
                cleaner.cleanupOutput(file, file.directory ? FileType.Directory : FileType.RegularFile)
            }
            cleaner.cleanupDirectories()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/OutputsCleaner.java

         */
        public void cleanupOutputs(FileSystemSnapshot snapshot) throws IOException {
            // TODO We could make this faster by visiting the snapshot
            for (Map.Entry<String, FileSystemLocationSnapshot> entry : SnapshotUtil.indexByAbsolutePath(snapshot).entrySet()) {
                cleanupOutput(new File(entry.getKey()), entry.getValue().getType());
            }
            cleanupDirectories();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  3. platforms/software/platform-base/src/main/java/org/gradle/language/base/internal/tasks/StaleOutputCleaner.java

                },
                dir -> !directoriesToClean.contains(dir)
            );
    
            try {
                for (File f : filesToDelete) {
                    if (f.isFile()) {
                        outputsCleaner.cleanupOutput(f, FileType.RegularFile);
                    }
                }
                outputsCleaner.cleanupDirectories();
            } catch (IOException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  4. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/SkipEmptyIncrementalWorkStepTest.groovy

                emptySourcesWithPreviousOutputs(outputFileSnapshot)
            }
    
            and:
            1 * outputChangeListener.invalidateCachesFor(rootPaths(previousOutputFile))
    
            and:
            1 * outputsCleaner.cleanupOutputs(outputFileSnapshot)
    
            and:
            1 * outputsCleaner.didWork >> didWork
            1 * workInputListeners.broadcastFileSystemInputsOf(work, primaryFileInputs)
            0 * _
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:46:24 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  5. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/RemovePreviousOutputsStep.java

                        // Previous outputs can be in a different place than the current outputs
                        outputChangeListener.invalidateCachesFor(SnapshotUtil.rootIndex(snapshot).keySet());
                        cleaner.cleanupOutputs(snapshot);
                    } catch (IOException e) {
                        throw new UncheckedIOException("Failed to clean up output files for " + work.getDisplayName(), e);
                    }
                }
            });
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  6. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/SkipEmptyIncrementalWorkStep.java

                try {
                    outputChangeListener.invalidateCachesFor(SnapshotUtil.rootIndex(outputFileSnapshot).keySet());
                    outputsCleaner.cleanupOutputs(outputFileSnapshot);
                } catch (IOException e) {
                    throw new UncheckedIOException(e);
                }
            }
            return outputsCleaner.getDidWork();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:30 UTC 2023
    - 5.6K bytes
    - Viewed (0)
Back to top