Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for hashContent (0.17 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. platforms/jvm/normalization-java/src/main/java/org/gradle/internal/fingerprint/classpath/impl/ClasspathFingerprintingStrategy.java

                    @Override
                    public void visitRegularFile(RegularFileSnapshot fileSnapshot) {
                        HashCode normalizedContentHash = hashContent(fileSnapshot, relativePath);
                        if (normalizedContentHash == null) {
                            return;
                        }
    
                        String absolutePath = snapshot.getAbsolutePath();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/sink/GroupingProgressLogEventGenerator.java

                }
            }
    
            @Override
            void flushOutput() {
                if (shouldForward()) {
                    boolean hasContent = !bufferedLogs.isEmpty();
                    if (!hasForeground() || statusHasChanged()) {
                        if (needHeaderSeparator || hasContent) {
                            listener.onOutput(spacerLine(lastUpdateTime, category));
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 13:28:29 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/AbstractFileCollection.java

         */
        protected static boolean visitAll(FileSystemMirroringFileTree tree) {
            final MutableBoolean hasContent = new MutableBoolean();
            tree.visit(new FileVisitor() {
                @Override
                public void visitDir(FileVisitDetails dirDetails) {
                    dirDetails.getFile();
                    hasContent.set(true);
                }
    
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 07:32:50 UTC 2024
    - 13.5K bytes
    - Viewed (0)
Back to top