Package org.apache.maven.buildcache.xml
Class DtoUtils
java.lang.Object
org.apache.maven.buildcache.xml.DtoUtils
DtoUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddProperty(CompletedExecution execution, String propertyName, Object value, String baseDirPath, boolean tracked) static booleancontains(List<PropertyValue> executionProperties, String propertyName) static booleancontainsAllProperties(CompletedExecution cachedExecution, List<TrackedProperty> trackedProperties) Checks that all tracked (for reconciliation purposes) properties present in cached build recordstatic Artifactstatic DigestItemcreatedDigestedByProjectChecksum(Artifact artifact, String projectChecksum) static org.apache.maven.model.DependencycreateDependency(org.apache.maven.artifact.Artifact artifact) static org.apache.maven.model.DependencycreateDependency(Artifact artifact) static DigestItemcreateDigestedFile(org.apache.maven.artifact.Artifact artifact, String fileHash) static ArtifactcreateDto(org.apache.maven.artifact.Artifact artifact) static StringfindPropertyValue(String propertyName, CompletedExecution completedExecution)
-
Constructor Details
-
DtoUtils
public DtoUtils()
-
-
Method Details
-
findPropertyValue
-
createDto
-
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
-
addProperty
public static void addProperty(CompletedExecution execution, String propertyName, Object value, String baseDirPath, boolean tracked) -
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
-
copy
-