Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for applyConfigurationTo (0.7 sec)

  1. subprojects/core/src/main/java/org/gradle/internal/classpath/transforms/CompositeClassTransform.java

            this.first = first;
            this.second = second;
        }
    
        @Override
        public void applyConfigurationTo(Hasher hasher) {
            first.applyConfigurationTo(hasher);
            second.applyConfigurationTo(hasher);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 12 08:17:26 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/internal/classpath/InstrumentingClasspathFileTransformer.java

            gradleCoreInstrumentationTypeRegistry.getUpgradedPropertiesHash().ifPresent(hasher::putHash);
            classpathElementTransformFactory.applyConfigurationTo(hasher);
            transform.applyConfigurationTo(hasher);
            return hasher.hash();
        }
    
        private static ClasspathFileHasher createFileHasherWithConfig(HashCode configHash, ClasspathFileHasher fileHasher) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 27 13:36:38 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/internal/classpath/transforms/ClassTransform.java

    import org.gradle.internal.hash.Hasher;
    import org.objectweb.asm.ClassVisitor;
    
    import java.io.IOException;
    
    /**
     * Transform that modifies a class
     */
    public interface ClassTransform {
        void applyConfigurationTo(Hasher hasher);
    
        Pair<RelativePath, ClassVisitor> apply(ClasspathEntryVisitor.Entry entry, ClassVisitor visitor, ClassData classData) throws IOException;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 12 07:56:59 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/internal/classpath/transforms/ClasspathElementTransformFactoryForAgent.java

            this.classpathBuilder = classpathBuilder;
            this.classpathWalker = classpathWalker;
        }
    
        @Override
        public void applyConfigurationTo(Hasher hasher) {
            hasher.putInt(AGENT_INSTRUMENTATION_VERSION);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 15 08:02:27 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/internal/classpath/transforms/ClasspathElementTransformFactory.java

        /**
         * Updates jar/directory content hash to account for the transform produced by this factory.
         *
         * @param hasher the hasher to modify
         */
        void applyConfigurationTo(Hasher hasher);
    
        /**
         * Returns the transformation to be applied to the given jar/directory.
         *
         * @param file the jar/directory to transform
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 07 20:14:01 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/internal/classpath/transforms/ClasspathElementTransformFactoryForLegacy.java

            this.classpathBuilder = classpathBuilder;
            this.classpathWalker = classpathWalker;
        }
    
        @Override
        public void applyConfigurationTo(Hasher hasher) {
            // Do nothing, this is compatible with the old instrumentation
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 15 08:02:27 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/internal/classpath/DefaultCachedClasspathTransformerTest.groovy

            when:
            def cachedClasspath = transformer.transform(classpath, transform)
    
            then:
            cachedClasspath.asFiles == [cachedFile]
    
            and:
            1 * transform.applyConfigurationTo(_) >> { Hasher hasher -> hasher.putInt(123) }
            1 * transform.apply(_, _, _) >> { entry, visitor, data ->
                assert entry.name == "a.class"
                Pair.of(entry.path, visitor)
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/internal/classpath/transforms/ClasspathElementTransformTest.groovy

            return target
        }
    
        private static class NoOpTransformer implements ClassTransform {
            @Override
            void applyConfigurationTo(Hasher hasher) {
            }
    
            @Override
            Pair<RelativePath, ClassVisitor> apply(ClasspathEntryVisitor.Entry entry, ClassVisitor visitor, ClassData classData) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 14 09:24:02 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/GroovyScriptClassCompiler.java

            String className = origin.getClassName();
            return classpathTransformer.transform(DefaultClassPath.of(genericClassesDir), new ClassTransform() {
                @Override
                public void applyConfigurationTo(Hasher hasher) {
                    hasher.putString(GroovyScriptClassCompiler.class.getSimpleName());
                    hasher.putInt(1); // transformation version
                    hasher.putString(className);
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:23:24 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/internal/classpath/transforms/InstrumentingClassTransform.java

        private static final String CREATE_CALL_SITE_ARRAY_METHOD = "$createCallSiteArray";
    
        private final JvmBytecodeInterceptorSet externalInterceptors;
    
        @Override
        public void applyConfigurationTo(Hasher hasher) {
            hasher.putString(InstrumentingClassTransform.class.getSimpleName());
            hasher.putInt(DECORATION_FORMAT);
        }
    
        public InstrumentingClassTransform() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 20 01:16:36 UTC 2024
    - 32K bytes
    - Viewed (0)
Back to top