Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for hashContent (0.18 sec)

  1. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/LineEndingNormalizingInputStreamHasherTest.groovy

            def unnormalized = file('unnormalized.txt') << content.textWithLineEndings(eol)
            def normalized = file('normalized.txt') << content.textWithLineEndings('\n')
    
            expect:
            hasher.hashContent(unnormalized).get() == hasher.hashContent(normalized).get()
    
            where:
            eol     | description
            '\r'    | 'CR'
            '\r\n'  | 'CR-LF'
            '\n'    | 'LF'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/LineEndingNormalizingResourceHasher.java

                .flatMap(IoFunction.wrap(this::hashContent));
        }
    
        @Override
        Optional<HashCode> tryHash(ZipEntryContext zipEntryContext) {
            return Optional.of(zipEntryContext)
                .flatMap(IoFunction.wrap(this::hashContent));
        }
    
        private Optional<HashCode> hashContent(RegularFileSnapshotContext snapshotContext) throws IOException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  3. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/LineEndingNormalizingFileSystemLocationSnapshotHasher.java

            return hashContent(snapshot)
                .orElseGet(IoSupplier.wrap(() -> delegate.hash(snapshot)));
        }
    
        private Optional<HashCode> hashContent(FileSystemLocationSnapshot snapshot) throws IOException {
            return snapshot.getType() == FileType.RegularFile ? hasher.hashContent(new File(snapshot.getAbsolutePath())) : Optional.empty();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/LineEndingNormalizingInputStreamHasher.java

         * @throws IOException
         */
        public Optional<HashCode> hashContent(File file) throws IOException {
            try (FileInputStream inputStream = new FileInputStream(file)) {
                return hashContent(inputStream);
            }
        }
    
        /**
         * Returns empty if the file is detected to be a binary file
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  5. subprojects/diagnostics/src/main/java/org/gradle/api/tasks/diagnostics/internal/TaskReportRenderer.java

        private boolean currentProjectHasRules;
        private boolean hasContent;
        private boolean detail;
        private boolean showTypes;
    
        @Override
        public void startProject(ProjectDetails project) {
            currentProjectHasTasks = false;
            currentProjectHasRules = false;
            hasContent = false;
            detail = false;
            super.startProject(project);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 29 11:53:41 UTC 2021
    - 5K bytes
    - Viewed (0)
  6. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/text/BufferingStyledTextOutput.java

                return;
            }
            hasContent = true;
            events.add(new Action<StyledTextOutput>() {
                @Override
                public void execute(StyledTextOutput styledTextOutput) {
                    styledTextOutput.text(text);
                }
            });
        }
    
        public boolean getHasContent() {
            return hasContent;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  7. src/net/http/filetransport.go

    // body. Once writes begin or finish() is called, the response is sent
    // on ch.
    type populateResponse struct {
    	res          *Response
    	ch           chan *Response
    	wroteHeader  bool
    	hasContent   bool
    	sentResponse bool
    	pw           *io.PipeWriter
    }
    
    func (pr *populateResponse) finish() {
    	if !pr.wroteHeader {
    		pr.WriteHeader(500)
    	}
    	if !pr.sentResponse {
    		pr.sendResponse()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/filesystem/services/GenericFileSystem.java

            return file;
        }
    
        private boolean probeCaseSensitive(File file, String content) {
            try {
                File upperCased = new File(file.getPath().toUpperCase(Locale.ROOT));
                return !hasContent(upperCased, content);
            } catch (IOException e) {
                // not fully accurate but a sensible fallback
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:39 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/GeneratedSingletonFileTree.java

            // remains the same as the content in the existing file
            private void updateFileOnlyWhenGeneratedContentChanges() {
                byte[] generatedContent = generateContent();
                if (!hasContent(generatedContent, file)) {
                    try {
                        fileGenerationListener.execute(file);
                        Files.write(generatedContent, file);
                    } catch (IOException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7K bytes
    - Viewed (0)
Back to top