Class DtoUtils

java.lang.Object
org.apache.maven.buildcache.xml.DtoUtils

public class DtoUtils extends Object
DtoUtils
  • Constructor Details

    • DtoUtils

      public DtoUtils()
  • Method Details

    • findPropertyValue

      public static String findPropertyValue(String propertyName, CompletedExecution completedExecution)
    • createDto

      public static Artifact createDto(org.apache.maven.artifact.Artifact artifact)
    • createdDigestedByProjectChecksum

      public static DigestItem createdDigestedByProjectChecksum(Artifact artifact, String projectChecksum)
    • createDigestedFile

      public static DigestItem createDigestedFile(org.apache.maven.artifact.Artifact artifact, String fileHash)
    • createDependency

      public static org.apache.maven.model.Dependency createDependency(org.apache.maven.artifact.Artifact artifact)
    • createDependency

      public static org.apache.maven.model.Dependency createDependency(Artifact artifact)
    • addProperty

      @Deprecated public static void addProperty(CompletedExecution execution, String propertyName, Object value, String baseDirPath, boolean tracked)
      Deprecated.
      Kept for binary compatibility, not used by the codebase anymore. Use CacheUtils.addProperty(CompletedExecution, String, Object, Path, boolean)
    • containsAllProperties

      public static boolean containsAllProperties(@Nonnull CompletedExecution cachedExecution, List<TrackedProperty> trackedProperties)
      Checks that all tracked (for reconciliation purposes) properties present in cached build record
      Parameters:
      cachedExecution - mojo execution record (from cache)
      trackedProperties - list of tracked properties (from config)
      Returns:
      true if all tracked properties are listed in the cache record
    • contains

      public static boolean contains(List<PropertyValue> executionProperties, String propertyName)
    • copy

      public static Artifact copy(Artifact artifact)