You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ol...@apache.org on 2019/01/31 10:43:46 UTC
[sling-org-apache-sling-clam] 02/05: SLING-8250 Add started
timestamp to properties
This is an automated email from the ASF dual-hosted git repository.
olli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-clam.git
commit 46f898bf806bb538ec550e022405c14de4e7aa12
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Sun Jan 27 15:33:12 2019 +0100
SLING-8250 Add started timestamp to properties
---
pom.xml | 2 +-
src/main/java/org/apache/sling/clam/internal/ClamUtil.java | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 1682a3d..ea624da 100644
--- a/pom.xml
+++ b/pom.xml
@@ -173,7 +173,7 @@
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.commons.clam</artifactId>
- <version>1.0.2</version>
+ <version>2.0.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
diff --git a/src/main/java/org/apache/sling/clam/internal/ClamUtil.java b/src/main/java/org/apache/sling/clam/internal/ClamUtil.java
index 1a40c35..99a882e 100644
--- a/src/main/java/org/apache/sling/clam/internal/ClamUtil.java
+++ b/src/main/java/org/apache/sling/clam/internal/ClamUtil.java
@@ -72,6 +72,7 @@ public final class ClamUtil {
properties.put("timestamp", scanResult.getTimestamp());
properties.put("message", scanResult.getMessage());
properties.put("status", scanResult.getStatus().name());
+ properties.put("started", scanResult.getStarted());
return properties;
}