Package org.apache.maven.buildcache.xml
Class DtoUtils
- java.lang.Object
-
- org.apache.maven.buildcache.xml.DtoUtils
-
public class DtoUtils extends Object
DtoUtils
-
-
Constructor Summary
Constructors Constructor Description DtoUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addProperty(CompletedExecution execution, String propertyName, Object value, String baseDirPath, boolean tracked)
static boolean
contains(List<PropertyValue> executionProperties, String propertyName)
static boolean
containsAllProperties(CompletedExecution cachedExecution, List<TrackedProperty> trackedProperties)
Checks that all tracked (for reconciliation purposes) properties present in cached build recordstatic Artifact
copy(Artifact artifact)
static DigestItem
createdDigestedByProjectChecksum(Artifact artifact, String projectChecksum)
static org.apache.maven.model.Dependency
createDependency(org.apache.maven.artifact.Artifact artifact)
static org.apache.maven.model.Dependency
createDependency(Artifact artifact)
static DigestItem
createDigestedFile(org.apache.maven.artifact.Artifact artifact, String fileHash)
static Artifact
createDto(org.apache.maven.artifact.Artifact artifact)
static String
findPropertyValue(String propertyName, CompletedExecution completedExecution)
-
-
-
Method Detail
-
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
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
public static boolean contains(List<PropertyValue> executionProperties, String propertyName)
-
-