aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-01-18 18:07:21 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2012-01-18 18:07:56 +0100
commit3e456a20cd0151d4f3837af375451eed99553885 (patch)
treeaa3d05445278758c5e5042d0679f19d7c3211e08 /sonar-batch
parent0fe7d353897c59bf8663fb31378bf558f9e43951 (diff)
downloadsonarqube-3e456a20cd0151d4f3837af375451eed99553885.tar.gz
sonarqube-3e456a20cd0151d4f3837af375451eed99553885.zip
SONAR-1707 feed the column SNAPSHOTS.BUILD_DATE on files and directories
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/index/DefaultResourcePersister.java1
1 files changed, 1 insertions, 0 deletions
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;