public static boolean containsAllProperties()

in src/main/java/org/apache/maven/buildcache/xml/DtoUtils.java [131:152]


    public static boolean containsAllProperties(
            @Nonnull CompletedExecution cachedExecution, List<TrackedProperty> trackedProperties) {
        if (trackedProperties == null || trackedProperties.isEmpty()) {
            return true;
        }

        if (cachedExecution.getProperties() == null) {
            return false;
        }

        final List<PropertyValue> executionProperties = cachedExecution.getProperties();
        for (TrackedProperty trackedProperty : trackedProperties) {
            if (!contains(executionProperties, trackedProperty.getPropertyName())) {
                LOGGER.warn(
                        "Tracked property `{}` not found in cached build. Execution: {}",
                        trackedProperty.getPropertyName(),
                        cachedExecution.getExecutionKey());
                return false;
            }
        }
        return true;
    }