From 3e456a20cd0151d4f3837af375451eed99553885 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 18 Jan 2012 18:07:21 +0100 Subject: [PATCH] SONAR-1707 feed the column SNAPSHOTS.BUILD_DATE on files and directories --- .../java/org/sonar/batch/index/DefaultResourcePersister.java | 1 + 1 file changed, 1 insertion(+) diff --git a/sonar-batch/src/main/java/org/sonar/batch/index/DefaultResourcePersister.java b/sonar-batch/src/main/java/org/sonar/batch/index/DefaultResourcePersister.java index 2c73b5750f3..a6f736eea56 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/index/DefaultResourcePersister.java +++ b/sonar-batch/src/main/java/org/sonar/batch/index/DefaultResourcePersister.java @@ -186,6 +186,7 @@ public final class DefaultResourcePersister implements ResourcePersister { Snapshot parentSnapshot = (Snapshot) ObjectUtils.defaultIfNull(getSnapshot(parentReference), projectSnapshot); Snapshot snapshot = new Snapshot(model, parentSnapshot); + snapshot.setBuildDate(new Date()); snapshot = session.save(snapshot); session.commit(); return snapshot; -- 2.39.5