Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for shouldBeIgnored (0.22 sec)

  1. subprojects/core/src/test/groovy/org/gradle/normalization/internal/DefaultRuntimeClasspathNormalizationTest.groovy

            !restoredNormalization.getPropertiesFileFilters()[PropertiesFileFilter.ALL_PROPERTIES].shouldBeIgnored("not.ignored")
            restoredNormalization.getPropertiesFileFilters()["some.properties"].shouldBeIgnored("ignored.in.some")
            !restoredNormalization.getPropertiesFileFilters()["some.properties"].shouldBeIgnored("not.ignored")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Sep 22 13:17:59 UTC 2021
    - 7K bytes
    - Viewed (0)
  2. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/IgnoringResourceFilter.java

            for (String ignore : ignores) {
                hasher.putString(ignore);
            }
        }
    
        @Override
        public boolean shouldBeIgnored(Supplier<String[]> relativePathFactory) {
            if (ignoreMatchers.isEmpty()) {
                return false;
            }
            return shouldBeIgnored(relativePathFactory.get());
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/ResourceFilter.java

            @Override
            public boolean shouldBeIgnored(Supplier<String[]> relativePathFactory) {
                return false;
            }
    
            @Override
            public void appendConfigurationToHasher(Hasher hasher) {
                hasher.putString(getClass().getName());
            }
        };
    
        boolean shouldBeIgnored(Supplier<String[]> relativePathFactory);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/ResourceEntryFilter.java

            @Override
            public boolean shouldBeIgnored(String entry) {
                return false;
            }
    
            @Override
            public void appendConfigurationToHasher(Hasher hasher) {
                hasher.putString(getClass().getName());
            }
        };
    
        boolean shouldBeIgnored(String entry);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/UnionResourceEntryFilter.java

        public UnionResourceEntryFilter(Collection<ResourceEntryFilter> filters) {
            this.filters = filters;
        }
    
        @Override
        public boolean shouldBeIgnored(String entry) {
            return filters.stream().anyMatch(resourceEntryFilter -> resourceEntryFilter.shouldBeIgnored(entry));
        }
    
        @Override
        public void appendConfigurationToHasher(Hasher hasher) {
            hasher.putString(getClass().getName());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  6. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/IgnoringResourceHasher.java

            return resourceFilter.shouldBeIgnored(snapshotContext.getRelativePathSegments()) ? null : delegate.hash(snapshotContext);
        }
    
        @Nullable
        @Override
        public HashCode hash(ZipEntryContext zipEntryContext) throws IOException {
            return resourceFilter.shouldBeIgnored(zipEntryContext.getRelativePathSegments()) ? null : delegate.hash(zipEntryContext);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/IgnoringResourceHasherTest.groovy

            hasher.hash(snapshotContext)
    
            then:
            1 * resourceFilter.shouldBeIgnored(_) >> false
            1 * delegate.hash(snapshotContext)
        }
    
        def "filters resources when resource filter matches"() {
            when:
            def hash = hasher.hash(snapshotContext)
    
            then:
            1 * resourceFilter.shouldBeIgnored(_) >> true
            0 * delegate.hash(_)
    
            and:
            hash == null
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/IgnoringResourceEntryFilter.java

        private final ImmutableSet<String> ignores;
    
        public IgnoringResourceEntryFilter(ImmutableSet<String> ignores) {
            this.ignores = ignores;
        }
    
        @Override
        public boolean shouldBeIgnored(String entry) {
            return ignores.contains(entry);
        }
    
        @Override
        public void appendConfigurationToHasher(Hasher hasher) {
            hasher.putString(getClass().getName());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/MetaInfAwareClasspathResourceHasher.java

                ));
            List<Map.Entry<String, String>> normalizedEntries = entries.
                entrySet()
                .stream()
                .filter(entry -> !attributeResourceFilter.shouldBeIgnored(entry.getKey()))
                .sorted(Map.Entry.comparingByKey())
                .collect(Collectors.toList());
    
            // Short-circuiting when there's no matching entries allows empty manifest sections to be ignored
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  10. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/PropertiesFileAwareClasspathResourceHasher.java

            Map<String, String> entries = Maps.fromProperties(properties);
            entries
                .entrySet()
                .stream()
                .filter(entry ->
                    !propertyResourceFilter.shouldBeIgnored(entry.getKey()))
                .sorted(Map.Entry.comparingByKey())
                .forEach(entry -> {
                    hasher.putString(entry.getKey());
                    hasher.putString(entry.getValue());
                });
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 6.3K bytes
    - Viewed (0)
Back to top