Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for contentHash (0.15 sec)

  1. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/fingerprint/impl/DefaultFileSystemLocationFingerprint.java

        private final HashCode normalizedContentHash;
        private final String normalizedPath;
    
        public DefaultFileSystemLocationFingerprint(String normalizedPath, FileType type, HashCode contentHash) {
            this.normalizedContentHash = hashForType(type, contentHash);
            this.normalizedPath = normalizedPath;
        }
    
        private static HashCode hashForType(FileType fileType, HashCode hash) {
            switch (fileType) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:35 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/GroovyScriptClassCompiler.java

            private final String contentHash;
    
            public BuildScriptRemapper(ClassVisitor cv, ScriptSource source, String originalClassName, String contentHash) {
                super(AsmConstants.ASM_LEVEL, cv);
                this.scriptSource = source;
                this.originalClassName = originalClassName;
                this.contentHash = contentHash;
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:23:24 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedRelocationIntegrationTest.groovy

                    def originalClassName = type.getMethod('getOriginalClassName').invoke(o)
                    def contentHash = type.getMethod('getContentHash').invoke(o)
                    println "\${title} class name: \${originalClassName} (remapped: \${type.name})"
                    println "\${title} class hash: \${contentHash}"
                }
            """
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/cache/internal/DefaultFileContentCacheFactory.java

                return locationCache.computeIfAbsent(file,
                    location -> fileSystemAccess.readRegularFileContentHash(location.getAbsolutePath())
                        .map(contentHash -> contentCache.get(contentHash, key -> calculator.calculate(location, true))
                    ).orElseGet(
                        () -> calculator.calculate(location, false)
                    ));
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:51:31 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/CrossBuildScriptCachingIntegrationSpec.groovy

                        def contentHash = o.class.getMethod('getContentHash').invoke(o)
                        assert originalClassName
                        assert contentHash
                        println "Action type: ${originalClassName} (remapped name: ${o.class})"
                        println "Action hash: ${contentHash}"
                        if (!seen.add(contentHash)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:32:21 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  6. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/impl/FileSystemSnapshotSerializer.java

                switch (type) {
                    case REGULAR_FILE:
                        HashCode contentHash = readHashCode(decoder);
                        long lastModified = decoder.readSmallLong();
                        long length = decoder.readSmallLong();
                        stack.add(new RegularFileSnapshot(internedAbsolutePath, internedName, contentHash, DefaultFileMetadata.file(lastModified, length, accessType)));
                        break;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 15:45:55 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/internal/classpath/DefaultCachedClasspathTransformer.java

            if (snapshot.getType() == FileType.Missing) {
                return empty();
            }
            if (shouldUseFromCache(original)) {
                final HashCode contentHash = snapshot.getHash();
                if (!seen.add(contentHash)) {
                    // Already seen an entry with the same content hash, ignore it
                    return empty();
                }
                // It's a new content hash, transform it
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/controller/controller.go

    	_ *encryptionconfig.EncryptionConfiguration,
    	configChanged bool,
    	_ error,
    ) {
    	contentHash, err := d.getEncryptionConfigHash(ctx, d.filePath)
    	if err != nil {
    		return nil, false, err
    	}
    
    	// check if encryptionConfig is different from the current. Do nothing if they are the same.
    	if contentHash == d.lastLoadedEncryptionConfigHash {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config.go

    // It does not attempt to decode or load the config, and serves as a cheap check to determine if the file has changed.
    func GetEncryptionConfigHash(filepath string) (string, error) {
    	_, contentHash, err := loadDataAndHash(filepath)
    	return contentHash, err
    }
    
    // prefixTransformersAndProbes creates the set of transformers and KMS probes based on the given resource config.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/objfile.go

    	}
    	w.tmpHash64 = contentHash64(s)
    	w.Bytes(w.tmpHash64[:])
    }
    
    func (w *writer) Hash(s *LSym) {
    	if !s.ContentAddressable() {
    		panic("Hash of non-content-addressable symbol")
    	}
    	w.tmpHash = w.contentHash(s)
    	w.Bytes(w.tmpHash[:])
    }
    
    // contentHashSection returns a mnemonic for s's section.
    // The goal is to prevent content-addressability from moving symbols between sections.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24K bytes
    - Viewed (0)
Back to top