]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5183 - analysis unsensitive to timezones - snapshots table 67/head
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Wed, 4 Feb 2015 16:18:05 +0000 (17:18 +0100)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Wed, 4 Feb 2015 16:58:21 +0000 (17:58 +0100)
136 files changed:
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/TimeMachineConfigurationPersister.java
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/timeline.html.erb
plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/timemachine/TimeMachineConfigurationPersisterTest/shared.xml
plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/timemachine/TimeMachineConfigurationPersisterTest/shouldSaveConfigurationInSnapshotsTable-result.xml
plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/timemachine/ViolationPersisterDecoratorTest/shared.xml
plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/timemachine/ViolationPersisterDecoratorTest/shouldCopyPermanentIdFromReferenceViolation-result.xml
plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/timemachine/ViolationPersisterDecoratorTest/shouldSaveViolations-result.xml
server/sonar-server/src/main/java/org/sonar/server/component/db/SnapshotDao.java
server/sonar-server/src/main/java/org/sonar/server/computation/AnalysisReportLog.java
server/sonar-server/src/main/java/org/sonar/server/computation/ws/QueueWsAction.java
server/sonar-server/src/main/java/org/sonar/server/db/migrations/DatabaseMigrations.java
server/sonar-server/src/main/java/org/sonar/server/db/migrations/v51/FeedSnapshotsLongDates.java [new file with mode: 0644]
server/sonar-server/src/main/java/org/sonar/server/measure/MeasureFilterRow.java
server/sonar-server/src/main/java/org/sonar/server/measure/MeasureFilterSort.java
server/sonar-server/src/main/java/org/sonar/server/measure/MeasureFilterSql.java
server/sonar-server/src/test/java/org/sonar/server/batch/ProjectRepositoryLoaderMediumTest.java
server/sonar-server/src/test/java/org/sonar/server/component/SnapshotTesting.java
server/sonar-server/src/test/java/org/sonar/server/component/db/SnapshotDaoTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/step/PurgeDatastoresStepMediumTest.java
server/sonar-server/src/test/java/org/sonar/server/db/migrations/v51/FeedSnapshotsLongDatesTest.java [new file with mode: 0644]
server/sonar-server/src/test/java/org/sonar/server/measure/MeasureFilterExecutorTest.java
server/sonar-server/src/test/java/org/sonar/server/rule/RuleTesting.java
server/sonar-server/src/test/resources/org/sonar/server/component/db/ComponentDaoTest/delete-result.xml
server/sonar-server/src/test/resources/org/sonar/server/component/db/ComponentDaoTest/multi-modules.xml
server/sonar-server/src/test/resources/org/sonar/server/component/db/ComponentDaoTest/shared.xml
server/sonar-server/src/test/resources/org/sonar/server/component/db/ComponentDaoTest/shared_views.xml
server/sonar-server/src/test/resources/org/sonar/server/component/db/SnapshotDaoTest/insert-result.xml
server/sonar-server/src/test/resources/org/sonar/server/component/db/SnapshotDaoTest/modules.xml
server/sonar-server/src/test/resources/org/sonar/server/component/db/SnapshotDaoTest/shared.xml
server/sonar-server/src/test/resources/org/sonar/server/component/db/SnapshotDaoTest/snapshots.xml
server/sonar-server/src/test/resources/org/sonar/server/computation/AnalysisReportServiceTest/report-folder/snapshots.xml
server/sonar-server/src/test/resources/org/sonar/server/computation/step/SwitchSnapshotStepTest/snapshots-result.xml
server/sonar-server/src/test/resources/org/sonar/server/computation/step/SwitchSnapshotStepTest/snapshots.xml
server/sonar-server/src/test/resources/org/sonar/server/db/migrations/v51/FeedSnapshotsLongDatesTest/before.xml [new file with mode: 0644]
server/sonar-server/src/test/resources/org/sonar/server/db/migrations/v51/FeedSnapshotsLongDatesTest/schema.sql [new file with mode: 0644]
server/sonar-server/src/test/resources/org/sonar/server/filters/FilterExecutorTest/views.xml
server/sonar-server/src/test/resources/org/sonar/server/measure/MeasureFilterExecutorTest/escape_percent_and_underscore_when_filter_by_component_name_or_key.xml
server/sonar-server/src/test/resources/org/sonar/server/measure/MeasureFilterExecutorTest/ignore_person_measures.xml
server/sonar-server/src/test/resources/org/sonar/server/measure/MeasureFilterExecutorTest/ignore_quality_model_measures.xml
server/sonar-server/src/test/resources/org/sonar/server/measure/MeasureFilterExecutorTest/shared.xml
server/sonar-server/src/test/resources/org/sonar/server/measure/MeasureFilterExecutorTest/sort_by_alert.xml
server/sonar-server/src/test/resources/org/sonar/server/view/index/ViewIndexerTest/index.xml
server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/events_controller.rb
server/sonar-web/src/main/webapp/WEB-INF/app/controllers/project_controller.rb
server/sonar-web/src/main/webapp/WEB-INF/app/models/snapshot.rb
server/sonar-web/src/main/webapp/WEB-INF/db/migrate/775_add_snapshots_long_dates.rb [new file with mode: 0644]
server/sonar-web/src/main/webapp/WEB-INF/db/migrate/776_feed_snapshots_long_dates.rb [new file with mode: 0644]
server/sonar-web/src/main/webapp/WEB-INF/db/migrate/777_rename_snapshots_long_dates.rb [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/DefaultTimeMachine.java
sonar-batch/src/main/java/org/sonar/batch/ProjectConfigurator.java
sonar-batch/src/main/java/org/sonar/batch/components/PastSnapshot.java
sonar-batch/src/main/java/org/sonar/batch/components/PastSnapshotFinderByDate.java
sonar-batch/src/main/java/org/sonar/batch/components/PastSnapshotFinderByDays.java
sonar-batch/src/main/java/org/sonar/batch/components/PastSnapshotFinderByPreviousAnalysis.java
sonar-batch/src/main/java/org/sonar/batch/components/PastSnapshotFinderByPreviousVersion.java
sonar-batch/src/main/java/org/sonar/batch/components/PastSnapshotFinderByVersion.java
sonar-batch/src/main/java/org/sonar/batch/components/PeriodsDefinition.java
sonar-batch/src/main/java/org/sonar/batch/components/TimeMachineConfiguration.java
sonar-batch/src/main/java/org/sonar/batch/index/ResourcePersister.java
sonar-batch/src/main/java/org/sonar/batch/repository/DefaultProjectRepositoriesLoader.java
sonar-batch/src/test/java/org/sonar/batch/ProjectConfiguratorTest.java
sonar-batch/src/test/java/org/sonar/batch/components/PastSnapshotFinderByDaysTest.java
sonar-batch/src/test/java/org/sonar/batch/components/PastSnapshotFinderTest.java
sonar-batch/src/test/java/org/sonar/batch/components/PastSnapshotTest.java
sonar-batch/src/test/resources/org/sonar/batch/DefaultTimeMachineTest/loadMeasuresFromDate.xml
sonar-batch/src/test/resources/org/sonar/batch/ProjectConfiguratorTest/fail_if_not_latest_analysis.xml
sonar-batch/src/test/resources/org/sonar/batch/ProjectConfiguratorTest/set_analysis_date_on_latest_analysis.xml
sonar-batch/src/test/resources/org/sonar/batch/ProjectConfiguratorTest/set_analysis_date_on_latest_analysis_if_never_analysed.xml
sonar-batch/src/test/resources/org/sonar/batch/components/PastMeasuresLoaderTest/shared.xml
sonar-batch/src/test/resources/org/sonar/batch/components/PastSnapshotFinderByDateTest/shared.xml
sonar-batch/src/test/resources/org/sonar/batch/components/PastSnapshotFinderByDaysTest/shared.xml
sonar-batch/src/test/resources/org/sonar/batch/components/PastSnapshotFinderByDaysTest/shouldNotFindSelf.xml
sonar-batch/src/test/resources/org/sonar/batch/components/PastSnapshotFinderByPreviousAnalysisTest/shouldFindPreviousAnalysis.xml
sonar-batch/src/test/resources/org/sonar/batch/components/PastSnapshotFinderByPreviousAnalysisTest/shouldNotFindPreviousAnalysis.xml
sonar-batch/src/test/resources/org/sonar/batch/components/PastSnapshotFinderByPreviousVersionTest/no-previous-version.xml
sonar-batch/src/test/resources/org/sonar/batch/components/PastSnapshotFinderByPreviousVersionTest/with-previous-version-deleted.xml
sonar-batch/src/test/resources/org/sonar/batch/components/PastSnapshotFinderByPreviousVersionTest/with-previous-version.xml
sonar-batch/src/test/resources/org/sonar/batch/components/PastSnapshotFinderByVersionTest/shared.xml
sonar-batch/src/test/resources/org/sonar/batch/components/TimeMachineConfigurationTest/shared.xml
sonar-batch/src/test/resources/org/sonar/batch/index/ResourcePersisterTest/shouldRemoveRootIndexIfResourceIsProject-result.xml
sonar-batch/src/test/resources/org/sonar/batch/index/ResourcePersisterTest/shouldRemoveRootIndexIfResourceIsProject.xml
sonar-batch/src/test/resources/org/sonar/batch/index/ResourcePersisterTest/shouldSaveCopyProject-result.xml
sonar-batch/src/test/resources/org/sonar/batch/index/ResourcePersisterTest/shouldSaveNewDirectory-result.xml
sonar-batch/src/test/resources/org/sonar/batch/index/ResourcePersisterTest/shouldSaveNewLibrary-result.xml
sonar-batch/src/test/resources/org/sonar/batch/index/ResourcePersisterTest/shouldSaveNewMultiModulesProject-result.xml
sonar-batch/src/test/resources/org/sonar/batch/index/ResourcePersisterTest/shouldSaveNewMultiModulesProjectAndLibrary-result.xml
sonar-batch/src/test/resources/org/sonar/batch/index/ResourcePersisterTest/shouldSaveNewProject-result.xml
sonar-batch/src/test/resources/org/sonar/batch/index/ResourcePersisterTest/shouldUpdateExistingResource-result.xml
sonar-batch/src/test/resources/org/sonar/batch/index/ResourcePersisterTest/shouldUpdateExistingResource.xml
sonar-core/src/main/java/org/sonar/core/component/SnapshotDto.java
sonar-core/src/main/java/org/sonar/core/component/db/SnapshotMapper.java
sonar-core/src/main/java/org/sonar/core/persistence/DatabaseVersion.java
sonar-core/src/main/java/org/sonar/core/purge/PurgeableSnapshotDto.java
sonar-core/src/main/java/org/sonar/core/timemachine/Periods.java
sonar-core/src/main/resources/org/sonar/core/component/db/SnapshotMapper.xml
sonar-core/src/main/resources/org/sonar/core/persistence/rows-h2.sql
sonar-core/src/main/resources/org/sonar/core/persistence/schema-h2.ddl
sonar-core/src/test/java/org/sonar/core/component/SnapshotDtoTest.java
sonar-core/src/test/java/org/sonar/core/computation/dbcleaner/DbCleanerTestUtils.java
sonar-core/src/test/java/org/sonar/core/computation/dbcleaner/period/DefaultPeriodCleanerTest.java
sonar-core/src/test/java/org/sonar/core/resource/ResourceDaoTest.java
sonar-core/src/test/java/org/sonar/core/timemachine/PeriodsTest.java
sonar-core/src/test/resources/org/sonar/core/persistence/PreviewDatabaseFactoryTest/should_create_database.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeCommandsTest/shouldDeleteResource.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeCommandsTest/shouldDeleteSnapshot-result.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeCommandsTest/shouldDeleteSnapshot.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeCommandsTest/shouldDeleteWastedMeasuresWhenPurgingSnapshot-result.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeCommandsTest/shouldDeleteWastedMeasuresWhenPurgingSnapshot.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeCommandsTest/shouldPurgeSnapshot-result.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeCommandsTest/shouldPurgeSnapshot.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeDaoTest/delete_file_sources_of_disabled_resources.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeDaoTest/disable_resources_without_last_snapshot-result.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeDaoTest/disable_resources_without_last_snapshot.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeDaoTest/select_purgeable_file_uuids.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeDaoTest/shouldDeleteAbortedBuilds-result.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeDaoTest/shouldDeleteAbortedBuilds.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeDaoTest/shouldDeleteHistoricalDataOfDirectoriesAndFiles-result.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeDaoTest/shouldDeleteHistoricalDataOfDirectoriesAndFiles.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeDaoTest/shouldDeleteProject.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeDaoTest/shouldDeleteSnapshots-result.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeDaoTest/shouldDeleteSnapshots.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeDaoTest/shouldPurgeProject-result.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeDaoTest/shouldPurgeProject.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeDaoTest/shouldSelectPurgeableSnapshots.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeDaoTest/should_delete_all_closed_issues-result.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeDaoTest/should_delete_all_closed_issues.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeDaoTest/should_delete_old_closed_issues-result.xml
sonar-core/src/test/resources/org/sonar/core/purge/PurgeDaoTest/should_delete_old_closed_issues.xml
sonar-core/src/test/resources/org/sonar/core/resource/ResourceDaoTest/fixture-including-ghost-projects-and-technical-project.xml
sonar-core/src/test/resources/org/sonar/core/resource/ResourceDaoTest/fixture.xml
sonar-core/src/test/resources/org/sonar/core/resource/ResourceDaoTest/get_last_snapshot_by_component_uuid.xml
sonar-plugin-api/src/main/java/org/sonar/api/batch/Event.java
sonar-plugin-api/src/main/java/org/sonar/api/database/model/Snapshot.java
sonar-plugin-api/src/main/java/org/sonar/api/utils/DateUtils.java
sonar-plugin-api/src/test/java/org/sonar/api/database/model/SnapshotTest.java
sonar-plugin-api/src/test/java/org/sonar/api/utils/DateUtilsTest.java

index 17cee708dd0996ed33f998c234b03a257fb6dd7b..13f1a85efbf8f0329b26cb5259c21e14bff4ec55 100644 (file)
@@ -34,6 +34,8 @@ import org.sonar.batch.index.ResourceCache;
 
 import java.util.List;
 
+import static org.sonar.api.utils.DateUtils.dateToLong;
+
 @DependedUpon(DecoratorBarriers.END_OF_TIME_MACHINE)
 public final class TimeMachineConfigurationPersister implements Decorator {
 
@@ -75,6 +77,6 @@ public final class TimeMachineConfigurationPersister implements Decorator {
     int periodIndex = pastSnapshot.getIndex();
     snapshot.setPeriodMode(periodIndex, pastSnapshot.getMode());
     snapshot.setPeriodModeParameter(periodIndex, pastSnapshot.getModeParameter());
-    snapshot.setPeriodDate(periodIndex, pastSnapshot.getDate());
+    snapshot.setPeriodDate(periodIndex, dateToLong(pastSnapshot.getDate()));
   }
 }
index 6e5c662f1041efad4bc785198e6d39a36a02443b..200a48fd8a7bf1a816423d610e3d4440ada4f856 100644 (file)
@@ -53,9 +53,7 @@
          metric_data_map[metric_id].each() do |metric_data|
            # for every metric value, we need to check that the corresponding snapshot has values for each metric
            if metric_count_per_snapshot_id[metric_data[:sid]]==total_number_of_metrics
-             m_date = metric_data[:date]
-             # Only Oracle returns a Time object, so let's parse this string if it's not a Time instance
-             m_date = Time.parse(metric_data[:date]) unless m_date.is_a? Time
+             m_date = Time.at(metric_data[:date]/1000)
              m_value = sprintf("%0.02f", metric_data[:value])
              m_value_localized = ProjectMeasure.new(:metric => metric_map[metric_id]).format_numeric_value(metric_data[:value], {})
              js_data += "{x:d("
@@ -99,9 +97,7 @@
        unless from_date
          # find the oldest date
          metric_data_map.values.each() do |metric_data_array|
-           first_date = metric_data_array[0][:date]
-           # Only Oracle returns a Time object, so let's parse this string if it's not a Time instance
-           first_date = Time.parse(metric_data_array[0][:date]) unless first_date.is_a? Time
+           first_date = Time.at(metric_data_array[0][:date]/1000)
            from_date = first_date if !from_date || from_date > first_date
          end
        end
index a4286611e65f78bfb8e9cb24f0306222ac195069..70c8178d4e897b932cffe16ad35b51de732cb41d 100644 (file)
@@ -6,7 +6,7 @@
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              id="100" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-01 13:58:00.00" build_date="2008-11-01 13:58:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225544280000" build_date="1225544280000" version="[null]" path=""
              status="P" islast="false" depth="0" />
 
   <snapshots purge_status="[null]"
@@ -16,7 +16,7 @@
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              id="200" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-12-15 13:58:00.00" build_date="2008-12-15 13:58:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1229345880000" build_date="1229345880000" version="[null]" path=""
              status="P" islast="false" depth="0" />
 
   <!-- Snapshot of previous version -->
@@ -27,7 +27,7 @@
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              id="300" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-12-13 13:58:00.00" build_date="2008-12-13 13:58:00.00" version="1.2.3" path=""
+             scope="PRJ" qualifier="TRK" created_at="1229173080000" build_date="1229173080000" version="1.2.3" path=""
              status="P" islast="false" depth="0" />
 
   <snapshots purge_status="[null]"
@@ -37,6 +37,6 @@
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              id="1000" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2009-02-25 13:58:00.00" build_date="2009-02-25 13:58:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1235566680000" build_date="1235566680000" version="[null]" path=""
              status="P" islast="false" depth="0" />
 </dataset>
index 63545d72ec0e12cc30c21f9b8d9d2e3306996671..34fdf2d4d32c852c11a37b63edf623346659a2ac 100644 (file)
@@ -6,7 +6,7 @@
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              id="100" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-01 13:58:00.00" build_date="2008-11-01 13:58:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225544280000" build_date="1225544280000" version="[null]" path=""
              status="P" islast="false" depth="0" />
 
   <snapshots purge_status="[null]"
@@ -16,7 +16,7 @@
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              id="200" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-12-15 13:58:00.00" build_date="2008-12-15 13:58:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1229345880000" build_date="1229345880000" version="[null]" path=""
              status="P" islast="false" depth="0" />
 
   <!-- Snapshot of previous version -->
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              id="300" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-12-13 13:58:00.00" build_date="2008-12-13 13:58:00.00" version="1.2.3" path=""
+             scope="PRJ" qualifier="TRK" created_at="1229173080000" build_date="1229173080000" version="1.2.3" path=""
              status="P" islast="false" depth="0" />
 
   <snapshots purge_status="[null]"
-             period1_mode="days" period1_param="30" period1_date="2008-11-01 13:58:00.00"
+             period1_mode="days" period1_param="30" period1_date="1225544280000"
              period2_mode="[null]" period2_param="[null]" period2_date="[null]"
-             period3_mode="version" period3_param="1.2.3" period3_date="2008-12-13 13:58:00.0"
+             period3_mode="version" period3_param="1.2.3" period3_date="1229173080000"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              id="1000" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2009-02-25 13:58:00.00" build_date="2009-02-25 13:58:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1235566680000" build_date="1235566680000" version="[null]" path=""
              status="P" islast="false" depth="0" />
 </dataset>
index 5800859154cf44e3065369ea20c1557167f52498..519ce8d5157770971ebe049125ad10dd4e832015 100644 (file)
@@ -15,7 +15,7 @@
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]"
              period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              id="1000" project_id="200" parent_snapshot_id="[null]" root_project_id="100" root_snapshot_id="[null]"
-             scope="FIL" qualifier="CLA" created_at="2008-11-01 13:58:00.00" build_date="2008-11-01 13:58:00.00" version="[null]" path=""
+             scope="FIL" qualifier="CLA" created_at="1225544280000" build_date="1225544280000" version="[null]" path=""
              status="U" islast="false" depth="3"/>
 
 </dataset>
index f0d25f8474ad6988c233be4739df86ca7c201119..061041849aa25cf0706e7bf28e481d7ed986c885 100644 (file)
@@ -15,7 +15,7 @@
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]"
              period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1000" project_id="200"
              parent_snapshot_id="[null]" root_project_id="100" root_snapshot_id="[null]"
-             scope="FIL" qualifier="CLA" created_at="2008-11-01 13:58:00.00" build_date="2008-11-01 13:58:00.00" version="[null]" path=""
+             scope="FIL" qualifier="CLA" created_at="1225544280000" build_date="1225544280000" version="[null]" path=""
              status="U" islast="false" depth="3"/>
 
 </dataset>
index 9f3c7d89b524854cb68e45eeb63f332d38f4e413..f1bbc0bda6f73b69cce6604eb875038a11b9da47 100644 (file)
@@ -14,7 +14,7 @@
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]"
              period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1000" project_id="200"
              parent_snapshot_id="[null]" root_project_id="100" root_snapshot_id="[null]"
-             scope="FIL" qualifier="CLA" created_at="2008-11-01 13:58:00.00" build_date="2008-11-01 13:58:00.00" version="[null]" path=""
+             scope="FIL" qualifier="CLA" created_at="1225544280000" build_date="1225544280000" version="[null]" path=""
              status="U" islast="false" depth="3"/>
 
 </dataset>
index 5379396bcae59d86cb551d2223621aeef945e604..3acc948b70ef78c6ff33f5aba8c90c1c2dc454c5 100644 (file)
 
 package org.sonar.server.component.db;
 
-import org.sonar.api.ServerComponent;
 import org.sonar.api.resources.Scopes;
 import org.sonar.api.utils.System2;
 import org.sonar.core.component.SnapshotDto;
 import org.sonar.core.component.db.SnapshotMapper;
 import org.sonar.core.persistence.DaoComponent;
 import org.sonar.core.persistence.DbSession;
-import org.sonar.server.db.BaseDao;
+import org.sonar.server.exceptions.NotFoundException;
 
 import javax.annotation.CheckForNull;
 import javax.annotation.Nullable;
-
 import java.util.List;
 
-public class SnapshotDao extends BaseDao<SnapshotMapper, SnapshotDto, Long> implements ServerComponent, DaoComponent {
+public class SnapshotDao implements DaoComponent {
+
+  private final System2 system2;
 
   public SnapshotDao(System2 system) {
-    super(SnapshotMapper.class, system);
+    this.system2 = system;
   }
 
-  @Override
   @CheckForNull
-  protected SnapshotDto doGetNullableByKey(DbSession session, Long id) {
+  public SnapshotDto getNullableByKey(DbSession session, Long id) {
     return mapper(session).selectByKey(id);
   }
 
-  @Override
-  protected SnapshotDto doInsert(DbSession session, SnapshotDto item) {
+  public SnapshotDto getByKey(DbSession session, Long key) {
+    SnapshotDto value = getNullableByKey(session, key);
+    if (value == null) {
+      throw new NotFoundException(String.format("Key '%s' not found", key));
+    }
+
+    return value;
+  }
+
+  public SnapshotDto insert(DbSession session, SnapshotDto item) {
+    if (item.getCreatedAt() == null) {
+      item.setCreatedAt(system2.now());
+    }
     mapper(session).insert(item);
     return item;
   }
@@ -83,6 +93,10 @@ public class SnapshotDao extends BaseDao<SnapshotMapper, SnapshotDto, Long> impl
   }
 
   public boolean isLast(SnapshotDto snapshotTested, @Nullable SnapshotDto previousLastSnapshot) {
-    return previousLastSnapshot == null || previousLastSnapshot.getCreatedAt().before(snapshotTested.getCreatedAt());
+    return previousLastSnapshot == null || previousLastSnapshot.getCreatedAt() < snapshotTested.getCreatedAt();
+  }
+
+  private SnapshotMapper mapper(DbSession session) {
+    return session.getMapper(SnapshotMapper.class);
   }
 }
index bf61b9b38df5c40e0a20a8bff0fbea0281cb8919..1b307d691718f28d6e18252318a9063b6b159c17 100644 (file)
@@ -28,7 +28,7 @@ import org.sonar.core.computation.db.AnalysisReportDto;
 import java.util.Map;
 
 import static org.sonar.api.utils.DateUtils.formatDateTimeNullSafe;
-import static org.sonar.api.utils.DateUtils.timeToDate;
+import static org.sonar.api.utils.DateUtils.longToDate;
 
 public class AnalysisReportLog implements ActivityLog {
 
@@ -50,9 +50,9 @@ public class AnalysisReportLog implements ActivityLog {
       .put("projectName", project.name())
       .put("projectUuid", project.uuid())
       .put("status", String.valueOf(report.getStatus()))
-      .put("submittedAt", formatDateTimeNullSafe(timeToDate(report.getCreatedAt())))
-      .put("startedAt", formatDateTimeNullSafe(timeToDate(report.getStartedAt())))
-      .put("finishedAt", formatDateTimeNullSafe(timeToDate(report.getFinishedAt())))
+      .put("submittedAt", formatDateTimeNullSafe(longToDate(report.getCreatedAt())))
+      .put("startedAt", formatDateTimeNullSafe(longToDate(report.getStartedAt())))
+      .put("finishedAt", formatDateTimeNullSafe(longToDate(report.getFinishedAt())))
       .build();
   }
 
index 29175569e69174fed0c404e8fa8e33997deba9a2..cf9f54029cc37a032b16187f25e1a2682c32932e 100644 (file)
@@ -30,7 +30,7 @@ import org.sonar.server.computation.AnalysisReportQueue;
 
 import java.util.List;
 
-import static org.sonar.api.utils.DateUtils.timeToDate;
+import static org.sonar.api.utils.DateUtils.longToDate;
 
 /**
  * @since 5.0
@@ -69,9 +69,9 @@ public class QueueWsAction implements ComputationWsAction, RequestHandler {
       json.prop("key", report.getId());
       json.prop("projectKey", report.getProjectKey());
       json.prop("projectName", report.getProjectKey());
-      json.propDateTime("startedAt", timeToDate(report.getStartedAt()));
-      json.propDateTime("finishedAt", timeToDate(report.getFinishedAt()));
-      json.propDateTime("submittedAt", timeToDate(report.getCreatedAt()));
+      json.propDateTime("startedAt", longToDate(report.getStartedAt()));
+      json.propDateTime("finishedAt", longToDate(report.getFinishedAt()));
+      json.propDateTime("submittedAt", longToDate(report.getCreatedAt()));
       json.prop("status", report.getStatus().toString());
       json.endObject();
     }
index 03703c13776de810864097d644f971276e674d24..4f0a00b3f38378278ee61d90ab62c7f4374efc1a 100644 (file)
@@ -84,6 +84,7 @@ public interface DatabaseMigrations {
     FeedIssueChangesLongDates.class,
     FeedAnalysisReportsLongDates.class,
     UpdateProjectsModuleUuidPath.class,
+    FeedSnapshotsLongDates.class,
     FeedIssueComponentUuids.class,
     RemoveRuleMeasuresOnIssues.class
     );
diff --git a/server/sonar-server/src/main/java/org/sonar/server/db/migrations/v51/FeedSnapshotsLongDates.java b/server/sonar-server/src/main/java/org/sonar/server/db/migrations/v51/FeedSnapshotsLongDates.java
new file mode 100644 (file)
index 0000000..09998ea
--- /dev/null
@@ -0,0 +1,65 @@
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ */
+
+package org.sonar.server.db.migrations.v51;
+
+import org.sonar.api.utils.System2;
+import org.sonar.core.persistence.Database;
+import org.sonar.server.db.migrations.BaseDataChange;
+import org.sonar.server.db.migrations.MassUpdate;
+import org.sonar.server.db.migrations.Select;
+import org.sonar.server.db.migrations.SqlStatement;
+
+import java.sql.SQLException;
+
+public class FeedSnapshotsLongDates extends BaseDataChange {
+
+  private final System2 system2;
+
+  public FeedSnapshotsLongDates(Database db, System2 system2) {
+    super(db);
+    this.system2 = system2;
+  }
+
+  @Override
+  public void execute(Context context) throws SQLException {
+    final long now = system2.now();
+    MassUpdate massUpdate = context.prepareMassUpdate();
+    massUpdate
+      .select("SELECT s.created_at, s.build_date, s.period1_date, s.period2_date, s.period3_date, s.period4_date, s.period5_date, s.id FROM snapshots s WHERE created_at_ms IS NULL");
+    massUpdate
+      .update("UPDATE snapshots SET created_at_ms=?, build_date_ms=?, period1_date_ms=?, period2_date_ms=?, period3_date_ms=?, period4_date_ms=?, period5_date_ms=? WHERE id=?");
+    massUpdate.rowPluralName("snapshots");
+    massUpdate.execute(new MassUpdate.Handler() {
+      @Override
+      public boolean handle(Select.Row row, SqlStatement update) throws SQLException {
+        for (int i = 1; i <= 7; i++) {
+          update.setLong(i, row.getDate(i) == null ? null : Math.min(now, row.getDate(i).getTime()));
+        }
+
+        Long id = row.getLong(8);
+        update.setLong(8, id);
+
+        return true;
+      }
+    });
+  }
+
+}
index bff50112501d5baaed5b7da8fc2253760f09988e..990f6344512a8b4273644c62441da308823c6e07 100644 (file)
@@ -21,14 +21,12 @@ package org.sonar.server.measure;
 
 import org.apache.commons.lang.StringUtils;
 
-import java.sql.Timestamp;
-
 public class MeasureFilterRow {
   private final long snapshotId;
   private final long resourceId;
   private final long resourceRootId;
   private String sortText = null;
-  private Timestamp sortDate = null;
+  private Long sortDate = null;
   private Double sortDouble = null;
 
   MeasureFilterRow(long snapshotId, long resourceId, long resourceRootId) {
@@ -57,11 +55,11 @@ public class MeasureFilterRow {
     this.sortText = StringUtils.defaultString(s);
   }
 
-  Timestamp getSortDate() {
+  Long getSortDate() {
     return sortDate;
   }
 
-  void setSortDate(Timestamp sortDate) {
+  void setSortDate(Long sortDate) {
     this.sortDate = sortDate;
   }
 
index 0cbc114f775c9e2e279b35c5d18df372fc8ece9c..584234f1e3acc013bd49e10739dcbd76b7a13369 100644 (file)
@@ -23,19 +23,10 @@ import org.sonar.api.measures.CoreMetrics;
 import org.sonar.api.measures.Metric;
 
 class MeasureFilterSort {
-  public static enum Field {
-    KEY, NAME, VERSION, METRIC, SHORT_NAME, DESCRIPTION,
-    // Sort by last analysis date
-    DATE,
-    // Sort by project creation date
-    PROJECT_CREATION_DATE
-  }
-
   private Field field = Field.NAME;
   private Metric metric = null;
   private Integer period = null;
   private boolean asc = true;
-
   MeasureFilterSort() {
   }
 
@@ -56,10 +47,6 @@ class MeasureFilterSort {
     this.period = period;
   }
 
-  void setAsc(boolean asc) {
-    this.asc = asc;
-  }
-
   public Field field() {
     return field;
   }
@@ -81,7 +68,11 @@ class MeasureFilterSort {
   }
 
   boolean isOnDate() {
-    return Field.DATE.equals(field) || Field.PROJECT_CREATION_DATE.equals(field);
+    return Field.PROJECT_CREATION_DATE.equals(field);
+  }
+
+  boolean isOnTime() {
+    return Field.DATE.equals(field);
   }
 
   boolean isOnAlert() {
@@ -92,6 +83,10 @@ class MeasureFilterSort {
     return asc;
   }
 
+  void setAsc(boolean asc) {
+    this.asc = asc;
+  }
+
   String column() {
     // only numeric metrics can be sorted by database, else results are sorted programmatically.
     String column;
@@ -126,11 +121,19 @@ class MeasureFilterSort {
     return column;
   }
 
-  private String getMetricColumn(){
+  private String getMetricColumn() {
     if (metric.isNumericType()) {
       return period != null ? "pmsort.variation_value_" + period : "pmsort.value";
     } else {
       return "pmsort.text_value";
     }
   }
+
+  public static enum Field {
+    KEY, NAME, VERSION, METRIC, SHORT_NAME, DESCRIPTION,
+    // Sort by last analysis date
+    DATE,
+    // Sort by project creation date
+    PROJECT_CREATION_DATE
+  }
 }
index 26f1b337f53957aa3e6e402d8facaf61b4911524..28bdc861d91bf400bb78bbacc6aea2b8cffd6b03 100644 (file)
@@ -37,6 +37,8 @@ import java.sql.*;
 import java.util.Comparator;
 import java.util.List;
 
+import static org.sonar.api.utils.DateUtils.dateToLong;
+
 class MeasureFilterSql {
 
   private final Database database;
@@ -57,7 +59,7 @@ class MeasureFilterSql {
     ResultSet rs = null;
     try {
       for (int index = 0; index < dateParameters.size(); index++) {
-        statement.setDate(index + 1, dateParameters.get(index));
+        statement.setLong(index + 1, dateToLong(dateParameters.get(index)));
       }
       rs = statement.executeQuery();
       return process(rs);
@@ -191,6 +193,8 @@ class MeasureFilterSql {
       rowProcessor = new NumericSortRowProcessor();
     } else if (filter.sort().isOnDate()) {
       rowProcessor = new DateSortRowProcessor();
+    } else if (filter.sort().isOnTime()) {
+      rowProcessor = new LongSortRowProcessor();
     } else if (filter.sort().isOnAlert()) {
       rowProcessor = new AlertSortRowProcessor();
     } else {
@@ -220,11 +224,11 @@ class MeasureFilterSql {
   /**
    * Replace escape percent and underscore by adding a slash just before
    */
-  private String escapePercentAndUnderscrore(String value){
+  private String escapePercentAndUnderscrore(String value) {
     return value.replaceAll("%", "\\\\%").replaceAll("_", "\\\\_");
   }
 
-  private void appendEscapeForSomeDb(StringBuilder sb){
+  private void appendEscapeForSomeDb(StringBuilder sb) {
     if (database.getDialect().getId().equals(Oracle.ID) || database.getDialect().getId().equals(MsSql.ID)) {
       sb.append(" ESCAPE '\\'");
     }
@@ -323,15 +327,39 @@ class MeasureFilterSql {
     @Override
     MeasureFilterRow fetch(ResultSet rs) throws SQLException {
       MeasureFilterRow row = new MeasureFilterRow(rs.getLong(1), rs.getLong(2), rs.getLong(3));
-      row.setSortDate(rs.getTimestamp(4));
+      row.setSortDate(rs.getTimestamp(4).getTime());
+      return row;
+    }
+
+    @Override
+    Function sortFieldFunction() {
+      return new Function<MeasureFilterRow, Long>() {
+        @Override
+        public Long apply(MeasureFilterRow row) {
+          return row.getSortDate();
+        }
+      };
+    }
+
+    @Override
+    Ordering sortFieldOrdering(boolean ascending) {
+      return newObjectOrdering(ascending);
+    }
+  }
+
+  static class LongSortRowProcessor extends RowProcessor {
+    @Override
+    MeasureFilterRow fetch(ResultSet rs) throws SQLException {
+      MeasureFilterRow row = new MeasureFilterRow(rs.getLong(1), rs.getLong(2), rs.getLong(3));
+      row.setSortDate(rs.getLong(4));
       return row;
     }
 
     @Override
     Function sortFieldFunction() {
-      return new Function<MeasureFilterRow, Timestamp>() {
+      return new Function<MeasureFilterRow, Long>() {
         @Override
-        public Timestamp apply(MeasureFilterRow row) {
+        public Long apply(MeasureFilterRow row) {
           return row.getSortDate();
         }
       };
index aa7a7c4d2087870653062be7204d226f79e2acf3..17fa759880e263e61db4df1d73966ad78a9f8df7 100644 (file)
@@ -755,8 +755,8 @@ public class ProjectRepositoryLoaderMediumTest {
       .setData(",,,,,,,,,,,,,,,unchanged&#13;&#10;,,,,,,,,,,,,,,,content&#13;&#10;")
       .setDataHash("0263047cd758c68c27683625f072f010")
       .setLineHashes("8d7b3d6b83c0a517eac07e1aac94b773")
-      .setCreatedAt(new Date().getTime())
-      .setUpdatedAt(new Date().getTime())
+      .setCreatedAt(System.currentTimeMillis())
+      .setUpdatedAt(System.currentTimeMillis())
       .setSrcHash("123456");
   }
 
index 57db17ac178efa76183263144ceb86240e38a8cb..d5785121522608349839bb985d4d6cdd2080eb39 100644 (file)
@@ -23,8 +23,6 @@ package org.sonar.server.component;
 import org.sonar.core.component.ComponentDto;
 import org.sonar.core.component.SnapshotDto;
 
-import java.util.Date;
-
 public class SnapshotTesting {
 
   /**
@@ -42,7 +40,7 @@ public class SnapshotTesting {
       .setParentId(parentSnapshot.getId())
       .setPath(parentSnapshot.getPath() == null ? Long.toString(parentSnapshot.getId()) + "." : parentSnapshot.getPath() + Long.toString(parentSnapshot.getId()) + ".")
       .setLast(true)
-      .setBuildDate(new Date());
+      .setBuildDate(System.currentTimeMillis());
   }
 
   public static SnapshotDto createForProject(ComponentDto project) {
@@ -54,7 +52,7 @@ public class SnapshotTesting {
       .setScope(project.scope())
       .setPath("")
       .setLast(true)
-      .setBuildDate(new Date());
+      .setBuildDate(System.currentTimeMillis());
   }
 
 }
index 4b175bf8f449eeaad1b824bd79dea0329b437db0..443ad6d6a79f92de3a6b980a05292dd3437fdbf7 100644 (file)
@@ -78,22 +78,22 @@ public class SnapshotDaoTest extends AbstractDaoTestCase {
 
     assertThat(result.getPeriodMode(1)).isEqualTo("days1");
     assertThat(result.getPeriodModeParameter(1)).isEqualTo("30");
-    assertThat(result.getPeriodDate(1)).isEqualTo(DateUtils.parseDate("2011-09-24"));
+    assertThat(result.getPeriodDate(1)).isEqualTo(1316815200000L);
     assertThat(result.getPeriodMode(2)).isEqualTo("days2");
     assertThat(result.getPeriodModeParameter(2)).isEqualTo("31");
-    assertThat(result.getPeriodDate(2)).isEqualTo(DateUtils.parseDate("2011-09-25"));
+    assertThat(result.getPeriodDate(2)).isEqualTo(1316901600000L);
     assertThat(result.getPeriodMode(3)).isEqualTo("days3");
     assertThat(result.getPeriodModeParameter(3)).isEqualTo("32");
-    assertThat(result.getPeriodDate(3)).isEqualTo(DateUtils.parseDate("2011-09-26"));
+    assertThat(result.getPeriodDate(3)).isEqualTo(1316988000000L);
     assertThat(result.getPeriodMode(4)).isEqualTo("days4");
     assertThat(result.getPeriodModeParameter(4)).isEqualTo("33");
-    assertThat(result.getPeriodDate(4)).isEqualTo(DateUtils.parseDate("2011-09-27"));
+    assertThat(result.getPeriodDate(4)).isEqualTo(1317074400000L);
     assertThat(result.getPeriodMode(5)).isEqualTo("days5");
     assertThat(result.getPeriodModeParameter(5)).isEqualTo("34");
-    assertThat(result.getPeriodDate(5)).isEqualTo(DateUtils.parseDate("2011-09-28"));
+    assertThat(result.getPeriodDate(5)).isEqualTo(1317160800000L);
 
-    assertThat(result.getCreatedAt()).isEqualTo(DateUtils.parseDate("2008-12-02"));
-    assertThat(result.getBuildDate()).isEqualTo(DateUtils.parseDate("2011-09-29"));
+    assertThat(result.getCreatedAt()).isEqualTo(1228172400000L);
+    assertThat(result.getBuildDate()).isEqualTo(1317247200000L);
 
     assertThat(sut.getNullableByKey(session, 999L)).isNull();
   }
@@ -102,7 +102,7 @@ public class SnapshotDaoTest extends AbstractDaoTestCase {
   public void insert() {
     setupData("empty");
 
-    when(system2.now()).thenReturn(DateUtils.parseDate("2014-06-18").getTime());
+    when(system2.now()).thenReturn(1403042400000L);
 
     SnapshotDto dto = defaultSnapshot();
 
@@ -155,7 +155,7 @@ public class SnapshotDaoTest extends AbstractDaoTestCase {
     setupData("snapshots");
 
     SnapshotDto referenceSnapshot = defaultSnapshot().setResourceId(1L);
-    referenceSnapshot.setCreatedAt(DateUtils.parseDate("2008-12-03"));
+    referenceSnapshot.setCreatedAt(DateUtils.parseDate("2008-12-03").getTime());
     SnapshotDto snapshot = sut.getLastSnapshotOlderThan(session, referenceSnapshot);
 
     assertThat(snapshot).isNotNull();
@@ -167,7 +167,7 @@ public class SnapshotDaoTest extends AbstractDaoTestCase {
     setupData("snapshots");
 
     SnapshotDto referenceSnapshot = defaultSnapshot().setResourceId(1L);
-    referenceSnapshot.setCreatedAt(DateUtils.parseDate("2008-12-01"));
+    referenceSnapshot.setCreatedAt(DateUtils.parseDate("2008-12-01").getTime());
     SnapshotDto snapshot = sut.getLastSnapshotOlderThan(session, referenceSnapshot);
 
     assertThat(snapshot).isNull();
@@ -226,8 +226,8 @@ public class SnapshotDaoTest extends AbstractDaoTestCase {
     Date today = new Date();
     Date yesterday = DateUtils.addDays(today, -1);
 
-    SnapshotDto snapshot = defaultSnapshot().setCreatedAt(today);
-    SnapshotDto previousLastSnapshot = defaultSnapshot().setCreatedAt(yesterday);
+    SnapshotDto snapshot = defaultSnapshot().setCreatedAt(today.getTime());
+    SnapshotDto previousLastSnapshot = defaultSnapshot().setCreatedAt(yesterday.getTime());
 
     boolean isLast = sut.isLast(snapshot, previousLastSnapshot);
 
@@ -239,8 +239,8 @@ public class SnapshotDaoTest extends AbstractDaoTestCase {
     Date today = new Date();
     Date yesterday = DateUtils.addDays(today, -1);
 
-    SnapshotDto snapshot = defaultSnapshot().setCreatedAt(yesterday);
-    SnapshotDto previousLastSnapshot = defaultSnapshot().setCreatedAt(today);
+    SnapshotDto snapshot = defaultSnapshot().setCreatedAt(yesterday.getTime());
+    SnapshotDto previousLastSnapshot = defaultSnapshot().setCreatedAt(today.getTime());
 
     boolean isLast = sut.isLast(snapshot, previousLastSnapshot);
 
@@ -271,11 +271,11 @@ public class SnapshotDaoTest extends AbstractDaoTestCase {
       .setPeriodParam(3, "32")
       .setPeriodParam(4, "33")
       .setPeriodParam(5, "34")
-      .setPeriodDate(1, DateUtils.parseDate("2011-09-24"))
-      .setPeriodDate(2, DateUtils.parseDate("2011-09-25"))
-      .setPeriodDate(3, DateUtils.parseDate("2011-09-26"))
-      .setPeriodDate(4, DateUtils.parseDate("2011-09-27"))
-      .setPeriodDate(5, DateUtils.parseDate("2011-09-28"))
-      .setBuildDate(DateUtils.parseDate("2011-09-29"));
+      .setPeriodDate(1, DateUtils.parseDate("2011-09-24").getTime())
+      .setPeriodDate(2, DateUtils.parseDate("2011-09-25").getTime())
+      .setPeriodDate(3, DateUtils.parseDate("2011-09-26").getTime())
+      .setPeriodDate(4, DateUtils.parseDate("2011-09-27").getTime())
+      .setPeriodDate(5, DateUtils.parseDate("2011-09-28").getTime())
+      .setBuildDate(DateUtils.parseDate("2011-09-29").getTime());
   }
 }
index a21e9b2955ff52d49f94f224c1ea10a98780b145..004265d841c2e0b7c65ff9876bff6dc2e0551a2e 100644 (file)
@@ -83,8 +83,7 @@ public class PurgeDatastoresStepMediumTest {
     dbClient.componentDao().insert(dbSession, project);
 
     SnapshotDto snapshot = SnapshotTesting.createForProject(project)
-      .setCreatedAt(aWeekAgo)
-      .setUpdatedAt(aWeekAgo);
+      .setCreatedAt(aWeekAgo.getTime());
     dbClient.snapshotDao().insert(dbSession, snapshot);
 
     AnalysisReportDto report = AnalysisReportDto.newForTests(1L)
@@ -118,8 +117,7 @@ public class PurgeDatastoresStepMediumTest {
     dbClient.componentDao().insert(dbSession, project);
 
     SnapshotDto snapshot = SnapshotTesting.createForProject(project)
-      .setCreatedAt(twoWeeksAgo)
-      .setUpdatedAt(twoWeeksAgo)
+      .setCreatedAt(twoWeeksAgo.getTime())
       .setStatus("P")
       .setLast(true);
 
diff --git a/server/sonar-server/src/test/java/org/sonar/server/db/migrations/v51/FeedSnapshotsLongDatesTest.java b/server/sonar-server/src/test/java/org/sonar/server/db/migrations/v51/FeedSnapshotsLongDatesTest.java
new file mode 100644 (file)
index 0000000..24f2e73
--- /dev/null
@@ -0,0 +1,84 @@
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ */
+
+package org.sonar.server.db.migrations.v51;
+
+import org.junit.ClassRule;
+import org.junit.Test;
+import org.sonar.api.utils.System2;
+import org.sonar.core.persistence.DbTester;
+import org.sonar.server.db.migrations.DatabaseMigration;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.when;
+import static org.sonar.api.utils.DateUtils.parseDate;
+
+public class FeedSnapshotsLongDatesTest {
+  @ClassRule
+  public static DbTester db = new DbTester().schema(FeedSnapshotsLongDatesTest.class, "schema.sql");
+
+  @Test
+  public void execute() throws Exception {
+    db.prepareDbUnit(getClass(), "before.xml");
+
+    DatabaseMigration migration = new FeedSnapshotsLongDates(db.database(), System2.INSTANCE);
+    migration.execute();
+
+    int count = db
+      .countSql("select count(*) from snapshots where created_at_ms is not null " +
+        "and build_date_ms is not null " +
+        "and period1_date_ms is not null " +
+        "and period2_date_ms is not null " +
+        "and period3_date_ms is not null " +
+        "and period4_date_ms is not null " +
+        "and period5_date_ms is not null");
+    assertThat(count).isEqualTo(2);
+  }
+
+  @Test
+  public void take_now_if_date_in_the_future() throws Exception {
+    db.prepareDbUnit(getClass(), "before.xml");
+    System2 system2 = mock(System2.class);
+    when(system2.now()).thenReturn(0L);
+
+    DatabaseMigration migration = new FeedSnapshotsLongDates(db.database(), mock(System2.class));
+    migration.execute();
+
+    int count = db
+      .countSql("select count(*) from snapshots where " +
+        "created_at_ms = 0");
+    assertThat(count).isEqualTo(1);
+  }
+
+  @Test
+  public void take_snapshot_date_if_in_the_past() throws Exception {
+    db.prepareDbUnit(getClass(), "before.xml");
+    long snapshotTime = parseDate("2014-09-25").getTime();
+
+    DatabaseMigration migration = new FeedSnapshotsLongDates(db.database(), System2.INSTANCE);
+    migration.execute();
+
+    int count = db
+      .countSql("select count(*) from snapshots where " +
+        "created_at_ms=" + snapshotTime);
+    assertThat(count).isEqualTo(1);
+  }
+}
index 860bf9ef7d123b7b2d93db7e97ab90a69e81bdff..3b868800768cacd9dd7a43fa5a88ed6fce53edf1 100644 (file)
@@ -34,6 +34,7 @@ import org.sonar.test.DbTests;
 
 import java.sql.SQLException;
 import java.util.Arrays;
+import java.util.Date;
 import java.util.List;
 
 import static com.google.common.collect.Lists.newArrayList;
@@ -55,11 +56,9 @@ public class MeasureFilterExecutorTest {
   private static final Metric METRIC_PROFILE = new Metric.Builder("profile", "Profile", Metric.ValueType.STRING).create().setId(2);
   private static final Metric METRIC_COVERAGE = new Metric.Builder("coverage", "Coverage", Metric.ValueType.FLOAT).create().setId(3);
   private static final Metric METRIC_UNKNOWN = new Metric.Builder("unknown", "Unknown", Metric.ValueType.FLOAT).create().setId(4);
-
-  private MeasureFilterExecutor executor;
-
   @ClassRule
   public static DbTester db = new DbTester();
+  private MeasureFilterExecutor executor;
 
   @Before
   public void before() {
@@ -212,7 +211,7 @@ public class MeasureFilterExecutorTest {
     List<MeasureFilterRow> rows = executor.execute(filter, new MeasureFilterContext());
 
     assertThat(rows).hasSize(2);
-    verifyPhpProject(rows.get(0));//php way
+    verifyPhpProject(rows.get(0));// php way
     verifyJavaProject(rows.get(1));// Sonar way
   }
 
@@ -224,7 +223,7 @@ public class MeasureFilterExecutorTest {
 
     assertThat(rows).hasSize(2);
     verifyJavaProject(rows.get(0));// Sonar way
-    verifyPhpProject(rows.get(1));//php way
+    verifyPhpProject(rows.get(1));// php way
   }
 
   @Test
@@ -234,7 +233,7 @@ public class MeasureFilterExecutorTest {
     MeasureFilter filter = new MeasureFilter().setResourceQualifiers(Arrays.asList("CLA")).setSortOnMetric(METRIC_PROFILE);
     List<MeasureFilterRow> rows = executor.execute(filter, new MeasureFilterContext());
 
-    assertThat(rows).hasSize(2);//2 files randomly sorted
+    assertThat(rows).hasSize(2);// 2 files randomly sorted
   }
 
   @Test
@@ -348,9 +347,9 @@ public class MeasureFilterExecutorTest {
     List<MeasureFilterRow> rows = executor.execute(filter, new MeasureFilterContext());
 
     verifyJavaProject(rows.get(0));// 2008
-    assertThat(DateUtils.formatDate(rows.get(0).getSortDate())).isEqualTo("2008-12-19");
+    assertThat(DateUtils.formatDate(new Date(rows.get(0).getSortDate()))).isEqualTo("2008-12-19");
     verifyPhpProject(rows.get(1));// 2012
-    assertThat(DateUtils.formatDate(rows.get(1).getSortDate())).isEqualTo("2012-12-12");
+    assertThat(DateUtils.formatDate(new Date(rows.get(1).getSortDate()))).isEqualTo("2012-12-12");
   }
 
   @Test
@@ -360,9 +359,9 @@ public class MeasureFilterExecutorTest {
     List<MeasureFilterRow> rows = executor.execute(filter, new MeasureFilterContext());
 
     verifyPhpProject(rows.get(0));// 2012
-    assertThat(DateUtils.formatDate(rows.get(0).getSortDate())).isEqualTo("2012-12-12");
+    assertThat(DateUtils.formatDate(new Date(rows.get(0).getSortDate()))).isEqualTo("2012-12-12");
     verifyJavaProject(rows.get(1));// 2008
-    assertThat(DateUtils.formatDate(rows.get(1).getSortDate())).isEqualTo("2008-12-19");
+    assertThat(DateUtils.formatDate(new Date(rows.get(1).getSortDate()))).isEqualTo("2008-12-19");
   }
 
   @Test
@@ -530,7 +529,8 @@ public class MeasureFilterExecutorTest {
   @Test
   public void filter_by_parent_without_children() throws Exception {
     db.prepareDbUnit(getClass(), "shared.xml");
-    MeasureFilter filter = new MeasureFilter().setResourceQualifiers(Arrays.asList("TRK", "PAC", "CLA")).setBaseResourceKey("java_project:org.sonar.foo.Big").setOnBaseResourceChildren(true);
+    MeasureFilter filter = new MeasureFilter().setResourceQualifiers(Arrays.asList("TRK", "PAC", "CLA")).setBaseResourceKey("java_project:org.sonar.foo.Big")
+      .setOnBaseResourceChildren(true);
     List<MeasureFilterRow> rows = executor.execute(filter, new MeasureFilterContext());
 
     assertThat(rows).isEmpty();
@@ -552,7 +552,7 @@ public class MeasureFilterExecutorTest {
     db.prepareDbUnit(getClass(), "ignore_person_measures.xml");
     MeasureFilter filter = new MeasureFilter().setResourceQualifiers(Arrays.asList("TRK")).addCondition(
       new MeasureFilterCondition(new Metric("ncloc").setId(1), MeasureFilterCondition.Operator.GREATER, 0.0)
-    );
+      );
     List<MeasureFilterRow> rows = executor.execute(filter, new MeasureFilterContext().setUserId(50L));
 
     assertThat(rows).hasSize(1);
@@ -574,7 +574,7 @@ public class MeasureFilterExecutorTest {
     db.prepareDbUnit(getClass(), "ignore_quality_model_measures.xml");
     MeasureFilter filter = new MeasureFilter().setResourceQualifiers(Arrays.asList("TRK")).addCondition(
       new MeasureFilterCondition(new Metric("ncloc").setId(1), MeasureFilterCondition.Operator.GREATER, 0.0)
-    );
+      );
     List<MeasureFilterRow> rows = executor.execute(filter, new MeasureFilterContext().setUserId(50L));
 
     assertThat(rows).hasSize(1);
@@ -591,7 +591,6 @@ public class MeasureFilterExecutorTest {
     assertThat(rows.get(0).getSnapshotId()).isEqualTo(101L);
   }
 
-
   private void verifyJavaProject(MeasureFilterRow row) {
     verifyProject(row, JAVA_PROJECT_SNAPSHOT_ID, JAVA_PROJECT_ID, JAVA_PROJECT_ID);
   }
index 0cba9544e0bc5c83890c2e7d3afb47374b03e7b0..c25b9b8dc98fae06430c55dc2951ea1da9e86218 100644 (file)
@@ -27,8 +27,6 @@ import org.sonar.api.server.debt.DebtRemediationFunction;
 import org.sonar.core.rule.RuleDto;
 import org.sonar.core.rule.RuleDto.Format;
 
-import java.util.Date;
-
 /**
  * Utility class for tests involving rules
  */
@@ -91,7 +89,7 @@ public class RuleTesting {
   }
 
   public static RuleDto newCustomRule(RuleDto templateRule){
-    return newDto(RuleKey.of(templateRule.getRepositoryKey(), templateRule.getRuleKey() + "_" + new Date().getTime()))
+    return newDto(RuleKey.of(templateRule.getRepositoryKey(), templateRule.getRuleKey() + "_" + System.currentTimeMillis()))
       .setTemplateId(templateRule.getId());
   }
 
index 1f5a52ba71d5ef6fe9b24a469fb5d5421be88715..3794b036623d9b5bcba57273a95801d1ba70da24 100644 (file)
@@ -16,7 +16,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
   <snapshots id="10" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
              status="P" islast="[false]" purge_status="[null]"
@@ -25,7 +25,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-01 13:58:00.00" build_date="2008-12-01 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228136280000" build_date="1228136280000"
              version="[null]" path=""/>
 
   <!-- module -->
@@ -40,7 +40,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="BRC" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="BRC" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path="1."/>
 
   <!-- directory -->
@@ -56,7 +56,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="DIR" qualifier="PAC" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="DIR" qualifier="PAC" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path="1.2."/>
 
   <!-- file -->
@@ -73,7 +73,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="FIL" qualifier="CLA" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="FIL" qualifier="CLA" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path="1.2.3."/>
 
   <projects id="10" root_id="[null]" scope="PRJ" qualifier="TRK" kee="org.disabled.project" name="Disabled Project"
index 12f2f9cd493f7bf1bdfc3cdcd6c1cdcf7f5c1e80..9ba70bee6f45f49848cc976913e34a037634a097 100644 (file)
@@ -12,7 +12,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
   <snapshots id="10" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
              status="P" islast="[false]" purge_status="[null]"
@@ -21,7 +21,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-01 13:58:00.00" build_date="2008-12-01 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228136280000" build_date="1228136280000"
              version="[null]" path=""/>
 
   <!-- module -->
@@ -36,7 +36,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="BRC" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="BRC" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path="1."/>
 
   <!-- sub module -->
@@ -51,7 +51,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="BRC" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="BRC" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path="1.2."/>
 
   <!-- directory -->
@@ -67,7 +67,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="DIR" qualifier="PAC" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="DIR" qualifier="PAC" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path="1.2.3."/>
 
   <!-- file -->
@@ -84,7 +84,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="FIL" qualifier="CLA" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="FIL" qualifier="CLA" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path="1.2.3.4."/>
 
 </dataset>
index d29c981b67de6e8f165d0643fe52dda44dbde604..4474f2ebdea9075cf8dfd362bc2d0fae31ec8a2a 100644 (file)
@@ -16,7 +16,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
   <snapshots id="10" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
              status="P" islast="[false]" purge_status="[null]"
@@ -25,7 +25,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-01 13:58:00.00" build_date="2008-12-01 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228136280000" build_date="1228136280000"
              version="[null]" path=""/>
 
   <!-- module -->
@@ -40,7 +40,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="BRC" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="BRC" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path="1."/>
 
   <!-- directory -->
@@ -56,7 +56,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="DIR" qualifier="PAC" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="DIR" qualifier="PAC" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path="1.2."/>
 
   <!-- file -->
@@ -73,7 +73,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="FIL" qualifier="CLA" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="FIL" qualifier="CLA" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path="1.2.3."/>
 
   <!-- Disabled projects -->
index eaa1b6de4c0b26a7593d64ae46be0abf9029c26d..be3bfa4e5ea75e364e591d45ddbc94bab812c591 100644 (file)
@@ -5,14 +5,14 @@
             kee="MASTER_PROJECT" scope="PRJ" qualifier="VW" name="All projects" path="[null]"/>
   <snapshots id="10" project_id="10" parent_snapshot_id="[null]" root_project_id="10" root_snapshot_id="[null]"
              status="P" islast="[true]" purge_status="[null]"
-             depth="[null]" scope="PRJ" qualifier="VW" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="VW" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
 
   <projects id="110" uuid="BCDE" project_uuid="ABCD" module_uuid="ABCD" module_uuid_path=".ABCD." copy_resource_id="100" enabled="[true]"
             kee="MASTER_PROJECTorg.struts:struts" scope="FIL" qualifier="TRK" name="Struts" path="[null]"/>
   <snapshots id="110" project_id="110" parent_snapshot_id="[null]" root_project_id="110" root_snapshot_id="[null]"
              status="P" islast="[true]" purge_status="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
 
   <!-- View with sub view -->
             kee="LANGUAGE_VIEW" scope="PRJ" qualifier="VW" name="By Language" path="[null]"/>
   <snapshots id="11" project_id="11" parent_snapshot_id="[null]" root_project_id="11" root_snapshot_id="[null]"
              status="P" islast="[true]" purge_status="[null]"
-             depth="[null]" scope="PRJ" qualifier="VW" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="VW" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
   <projects id="112" uuid="GHIJ" project_uuid="EFGH" module_uuid="EFGH" module_uuid_path=".EFGH." copy_resource_id="101" enabled="[true]"
             kee="VIEW2org.elasticsearch:elasticsearch" scope="FIL" qualifier="TRK" name="SSLR" path="[null]"/>
   <snapshots id="112" project_id="112" parent_snapshot_id="[null]" root_project_id="112" root_snapshot_id="[null]"
              status="P" islast="[true]" purge_status="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
 
   <!-- Sub view -->
             kee="JAVA_PROJECTS" scope="PRJ" qualifier="SVW" name="Java projects" path="[null]"/>
   <snapshots id="13" project_id="13" parent_snapshot_id="[null]" root_project_id="13" root_snapshot_id="[null]"
              status="P" islast="[true]" purge_status="[null]"
-             depth="[null]" scope="PRJ" qualifier="SVW" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="SVW" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
 
   <projects id="113" uuid="HIJK" project_uuid="EFGH" module_uuid="FGHI" module_uuid_path=".EFGH.FGHI." copy_resource_id="100" enabled="[true]"
             kee="VIEW2org.struts:struts" scope="FIL" qualifier="TRK" name="Struts" path="[null]"/>
   <snapshots id="113" project_id="113" parent_snapshot_id="[null]" root_project_id="113" root_snapshot_id="[null]"
              status="P" islast="[true]" purge_status="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
 
   <!-- View without project -->
@@ -49,7 +49,7 @@
             kee="OTHER" scope="PRJ" qualifier="VW" name="Other projects" path="[null]"/>
   <snapshots id="14" project_id="14" parent_snapshot_id="[null]" root_project_id="14" root_snapshot_id="[null]"
              status="P" islast="[true]" purge_status="[null]"
-             depth="[null]" scope="PRJ" qualifier="VW" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="VW" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
 
   <!-- Real projects -->
@@ -59,7 +59,7 @@
             enabled="[true]" copy_resource_id="[null]" path="[null]"/>
   <snapshots id="100" project_id="100" parent_snapshot_id="[null]" root_project_id="100" root_snapshot_id="[null]"
              status="P" islast="[true]" purge_status="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
 
   <projects id="101" scope="PRJ" qualifier="TRK" kee="org.elasticsearch:elasticsearch" name="Elasticsearch"
@@ -67,7 +67,7 @@
             enabled="[true]" copy_resource_id="[null]" path="[null]"/>
   <snapshots id="101" project_id="101" parent_snapshot_id="[null]" root_project_id="101" root_snapshot_id="[null]"
              status="P" islast="[true]" purge_status="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
 
 </dataset>
index 2dfd09d5b684b16e6e1d0cb7cfc668a8a79ea6b4..094c6be6cb42deb4ab4282bbf916910e3d240a79 100644 (file)
@@ -2,12 +2,12 @@
 
   <snapshots id="1" project_id="3" parent_snapshot_id="2" root_project_id="1" root_snapshot_id="1"
              status="P" islast="[true]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2014-06-18" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1403042400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
 
 </dataset>
index 12f2f9cd493f7bf1bdfc3cdcd6c1cdcf7f5c1e80..9ba70bee6f45f49848cc976913e34a037634a097 100644 (file)
@@ -12,7 +12,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
   <snapshots id="10" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
              status="P" islast="[false]" purge_status="[null]"
@@ -21,7 +21,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-01 13:58:00.00" build_date="2008-12-01 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228136280000" build_date="1228136280000"
              version="[null]" path=""/>
 
   <!-- module -->
@@ -36,7 +36,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="BRC" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="BRC" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path="1."/>
 
   <!-- sub module -->
@@ -51,7 +51,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="BRC" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="BRC" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path="1.2."/>
 
   <!-- directory -->
@@ -67,7 +67,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="DIR" qualifier="PAC" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="DIR" qualifier="PAC" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path="1.2.3."/>
 
   <!-- file -->
@@ -84,7 +84,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="FIL" qualifier="CLA" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="FIL" qualifier="CLA" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path="1.2.3.4."/>
 
 </dataset>
index b651e75ffc269c4258b05dfe7d07201890257a29..a52b271da32c123f07541e5d55d6c1598b8ade7c 100644 (file)
@@ -2,12 +2,12 @@
 
   <snapshots id="3" project_id="3" parent_snapshot_id="2" root_project_id="1" root_snapshot_id="1"
              status="P" islast="[true]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
 
 </dataset>
index 7cfc057296de49393cea7c49e08944b4f20d94ef..4c18e257396bd336ac211339e2e1cfda06a8cbc0 100644 (file)
@@ -3,63 +3,63 @@
   <!-- PROJECT_ID = 1 -->
   <snapshots id="1" project_id="1" parent_snapshot_id="2" root_project_id="1" root_snapshot_id="1"
              status="P" islast="[true]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="PRJ" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="PRJ" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <snapshots id="2" project_id="1" parent_snapshot_id="2" root_project_id="1" root_snapshot_id="3"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <snapshots id="3" project_id="1" parent_snapshot_id="2" root_project_id="1" root_snapshot_id="3"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
 
 
   <!-- PROJECT_ID = 2 -->
   <snapshots id="4" project_id="2" parent_snapshot_id="2" root_project_id="1" root_snapshot_id="3"
              status="P" islast="[true]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
 
   <!-- PROJECT_ID = 3 - no last snapshot -->
   <snapshots id="5" project_id="3" parent_snapshot_id="2" root_project_id="1" root_snapshot_id="3"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
 
   <!-- Child of snapshot id=1 -->
   <snapshots id="6" project_id="55" parent_snapshot_id="2" root_project_id="1" root_snapshot_id="1"
              status="P" islast="[true]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="PRJ" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="PRJ" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
 </dataset>
index 965eb1081aaff96f14fc704473916dd00edf1c03..6bc85fcec052ed5d06c3ae471a791af8126a2454 100644 (file)
   <!-- NEW SNAPSHOT -->
   <snapshots id="1" project_id="123" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="1"
              status="U" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="PRJ" qualifier="PAC" created_at="2008-12-03" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="PRJ" qualifier="PAC" created_at="1228258800000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <snapshots id="2" project_id="1" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="1"
              status="U" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-03" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228258800000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <snapshots id="3" project_id="1" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="1"
              status="U" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-03" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228258800000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <!-- PROJECT_ID = 3 - no last snapshot -->
   <snapshots id="4" project_id="3" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="1"
              status="U" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-03" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228258800000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <!-- Child of snapshot id=1 -->
   <snapshots id="5" project_id="55" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="1"
              status="U" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="PRJ" qualifier="PAC" created_at="2008-12-03" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="PRJ" qualifier="PAC" created_at="1228258800000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
 
   <!-- LAST FLAGGED SNAPSHOT -->
   <snapshots id="21" project_id="123" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="21"
              status="P" islast="[true]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="PRJ" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="PRJ" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <snapshots id="22" project_id="1" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="21"
              status="P" islast="[true]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <snapshots id="23" project_id="1" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="21"
              status="P" islast="[true]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <!-- PROJECT_ID = 3 - no last snapshot -->
   <snapshots id="24" project_id="3" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="21"
              status="P" islast="[true]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <!-- Child of snapshot id=1 -->
   <snapshots id="25" project_id="55" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="21"
              status="P" islast="[true]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="PRJ" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="PRJ" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
 
   <!-- OLD SNAPSHOT -->
   <snapshots id="46" project_id="123" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="46"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="PRJ" qualifier="PAC" created_at="2008-12-01" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="PRJ" qualifier="PAC" created_at="1228086000000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <snapshots id="47" project_id="1" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="46"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-01" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228086000000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <snapshots id="48" project_id="1" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="46"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-01" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228086000000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <!-- PROJECT_ID = 3 - no last snapshot -->
   <snapshots id="49" project_id="3" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="46"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-01" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228086000000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <!-- Child of snapshot id=1 -->
   <snapshots id="50" project_id="55" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="46"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="PRJ" qualifier="PAC" created_at="2008-12-01" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="PRJ" qualifier="PAC" created_at="1228086000000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
 </dataset>
index 86714d163a052c3bb259c0e4505a59e1ac10ed9c..f92f776ff1a1d256cfbd16216bdd3f2ade2a59a6 100644 (file)
   <!-- NEW SNAPSHOT -->
   <snapshots id="1" project_id="123" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="1"
              status="P" islast="[true]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="PRJ" qualifier="PAC" created_at="2008-12-03" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="PRJ" qualifier="PAC" created_at="1228258800000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <snapshots id="2" project_id="1" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="1"
              status="P" islast="[true]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-03" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228258800000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <snapshots id="3" project_id="1" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="1"
              status="P" islast="[true]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-03" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228258800000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <!-- PROJECT_ID = 3 - no last snapshot -->
   <snapshots id="4" project_id="3" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="1"
              status="P" islast="[true]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-03" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228258800000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <!-- Child of snapshot id=1 -->
   <snapshots id="5" project_id="55" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="1"
              status="P" islast="[true]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="PRJ" qualifier="PAC" created_at="2008-12-03" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="PRJ" qualifier="PAC" created_at="1228258800000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
 
   <!-- LAST FLAGGED SNAPSHOT -->
   <snapshots id="21" project_id="123" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="21"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="PRJ" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="PRJ" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <snapshots id="22" project_id="1" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="21"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <snapshots id="23" project_id="1" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="21"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <!-- PROJECT_ID = 3 - no last snapshot -->
   <snapshots id="24" project_id="3" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="21"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <!-- Child of snapshot id=1 -->
   <snapshots id="25" project_id="55" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="21"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="PRJ" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="PRJ" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
 
   <!-- OLD SNAPSHOT -->
   <snapshots id="46" project_id="123" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="46"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="PRJ" qualifier="PAC" created_at="2008-12-01" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="PRJ" qualifier="PAC" created_at="1228086000000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <snapshots id="47" project_id="1" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="46"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-01" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228086000000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <snapshots id="48" project_id="1" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="46"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-01" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228086000000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <!-- PROJECT_ID = 3 - no last snapshot -->
   <snapshots id="49" project_id="3" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="46"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-01" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228086000000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <!-- Child of snapshot id=1 -->
   <snapshots id="50" project_id="55" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="46"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="PRJ" qualifier="PAC" created_at="2008-12-01" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="PRJ" qualifier="PAC" created_at="1228086000000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
 </dataset>
index 965eb1081aaff96f14fc704473916dd00edf1c03..6bc85fcec052ed5d06c3ae471a791af8126a2454 100644 (file)
   <!-- NEW SNAPSHOT -->
   <snapshots id="1" project_id="123" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="1"
              status="U" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="PRJ" qualifier="PAC" created_at="2008-12-03" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="PRJ" qualifier="PAC" created_at="1228258800000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <snapshots id="2" project_id="1" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="1"
              status="U" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-03" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228258800000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <snapshots id="3" project_id="1" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="1"
              status="U" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-03" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228258800000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <!-- PROJECT_ID = 3 - no last snapshot -->
   <snapshots id="4" project_id="3" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="1"
              status="U" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-03" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228258800000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <!-- Child of snapshot id=1 -->
   <snapshots id="5" project_id="55" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="1"
              status="U" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="PRJ" qualifier="PAC" created_at="2008-12-03" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="PRJ" qualifier="PAC" created_at="1228258800000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
 
   <!-- LAST FLAGGED SNAPSHOT -->
   <snapshots id="21" project_id="123" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="21"
              status="P" islast="[true]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="PRJ" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="PRJ" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <snapshots id="22" project_id="1" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="21"
              status="P" islast="[true]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <snapshots id="23" project_id="1" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="21"
              status="P" islast="[true]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <!-- PROJECT_ID = 3 - no last snapshot -->
   <snapshots id="24" project_id="3" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="21"
              status="P" islast="[true]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <!-- Child of snapshot id=1 -->
   <snapshots id="25" project_id="55" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="21"
              status="P" islast="[true]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="PRJ" qualifier="PAC" created_at="2008-12-02" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="PRJ" qualifier="PAC" created_at="1228172400000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
 
   <!-- OLD SNAPSHOT -->
   <snapshots id="46" project_id="123" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="46"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="PRJ" qualifier="PAC" created_at="2008-12-01" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="PRJ" qualifier="PAC" created_at="1228086000000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <snapshots id="47" project_id="1" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="46"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-01" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228086000000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <snapshots id="48" project_id="1" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="46"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-01" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228086000000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <!-- PROJECT_ID = 3 - no last snapshot -->
   <snapshots id="49" project_id="3" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="46"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="DIR" qualifier="PAC" created_at="2008-12-01" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="DIR" qualifier="PAC" created_at="1228086000000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
   <!-- Child of snapshot id=1 -->
   <snapshots id="50" project_id="55" parent_snapshot_id="2" root_project_id="123" root_snapshot_id="46"
              status="P" islast="[false]" purge_status="1"
-             period1_mode="days1" period1_param="30" period1_date="2011-09-24"
-             period2_mode="days2" period2_param="31" period2_date="2011-09-25"
-             period3_mode="days3" period3_param="32" period3_date="2011-09-26"
-             period4_mode="days4" period4_param="33" period4_date="2011-09-27"
-             period5_mode="days5" period5_param="34" period5_date="2011-09-28"
-             depth="1" scope="PRJ" qualifier="PAC" created_at="2008-12-01" build_date="2011-09-29"
+             period1_mode="days1" period1_param="30" period1_date="1316815200000"
+             period2_mode="days2" period2_param="31" period2_date="1316901600000"
+             period3_mode="days3" period3_param="32" period3_date="1316988000000"
+             period4_mode="days4" period4_param="33" period4_date="1317074400000"
+             period5_mode="days5" period5_param="34" period5_date="1317160800000"
+             depth="1" scope="PRJ" qualifier="PAC" created_at="1228086000000" build_date="1317247200000"
              version="2.1-SNAPSHOT" path="1.2."/>
 </dataset>
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/db/migrations/v51/FeedSnapshotsLongDatesTest/before.xml b/server/sonar-server/src/test/resources/org/sonar/server/db/migrations/v51/FeedSnapshotsLongDatesTest/before.xml
new file mode 100644 (file)
index 0000000..73c4e0e
--- /dev/null
@@ -0,0 +1,61 @@
+<dataset>
+  <!-- new migration -->
+  <snapshots
+      id="1"
+      project_id="1"
+      created_at="2014-09-25"
+      created_at_ms="[null]"
+      build_date="2014-09-25"
+      build_date_ms="[null]"
+      period1_date="2014-09-25"
+      period1_date_ms="[null]"
+      period2_date="2014-09-25"
+      period2_date_ms="[null]"
+      period3_date="2014-09-25"
+      period3_date_ms="[null]"
+      period4_date="2014-09-25"
+      period4_date_ms="[null]"
+      period5_date="2014-09-25"
+      period5_date_ms="[null]"
+      />
+
+  <!-- re-entrant migration - ignore the issues that are already fed with new dates -->
+  <snapshots
+      id="2"
+      project_id="1"
+      created_at="2014-09-25"
+      created_at_ms="1500000000"
+      build_date="2014-09-25"
+      build_date_ms="1500000000"
+      period1_date="2014-09-25"
+      period1_date_ms="1500000000"
+      period2_date="2014-09-25"
+      period2_date_ms="1500000000"
+      period3_date="2014-09-25"
+      period3_date_ms="1500000000"
+      period4_date="2014-09-25"
+      period4_date_ms="1500000000"
+      period5_date="2014-09-25"
+      period5_date_ms="1500000000"
+      />
+
+  <!-- NULL dates -->
+  <snapshots
+      id="3"
+      project_id="1"
+      created_at="[null]"
+      created_at_ms="[null]"
+      build_date="[null]"
+      build_date_ms="[null]"
+      period1_date="[null]"
+      period1_date_ms="[null]"
+      period2_date="[null]"
+      period2_date_ms="[null]"
+      period3_date="[null]"
+      period3_date_ms="[null]"
+      period4_date="[null]"
+      period4_date_ms="[null]"
+      period5_date="[null]"
+      period5_date_ms="[null]"
+      />
+</dataset>
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/db/migrations/v51/FeedSnapshotsLongDatesTest/schema.sql b/server/sonar-server/src/test/resources/org/sonar/server/db/migrations/v51/FeedSnapshotsLongDatesTest/schema.sql
new file mode 100644 (file)
index 0000000..318169c
--- /dev/null
@@ -0,0 +1,18 @@
+CREATE TABLE "SNAPSHOTS" (
+  "ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
+  "CREATED_AT" TIMESTAMP,
+  "CREATED_AT_MS" BIGINT,
+  "BUILD_DATE" TIMESTAMP,
+  "BUILD_DATE_MS" BIGINT,
+  "PROJECT_ID" INTEGER NOT NULL,
+  "PERIOD1_DATE" TIMESTAMP,
+  "PERIOD1_DATE_MS" BIGINT,
+  "PERIOD2_DATE" TIMESTAMP,
+  "PERIOD2_DATE_MS" BIGINT,
+  "PERIOD3_DATE" TIMESTAMP,
+  "PERIOD3_DATE_MS" BIGINT,
+  "PERIOD4_DATE" TIMESTAMP,
+  "PERIOD4_DATE_MS" BIGINT,
+  "PERIOD5_DATE" TIMESTAMP,
+  "PERIOD5_DATE_MS" BIGINT
+);
index 2b6a20367172b649f8d3c509750e1db95d159cb2..8c199a80d8b22a251912de7f6cd32b03d1d36a26 100644 (file)
 
 
   <!-- snapshots -->
-  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1" created_at="2008-12-25 01:00:00.00" build_date="2008-12-25 01:00:00.00" version="1.0" project_id="1" scope="PRJ" qualifier="TRK"
+  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1" created_at="1230163200000" build_date="1230163200000" version="1.0" project_id="1" scope="PRJ" qualifier="TRK"
              root_project_id="1" root_snapshot_id="[null]" parent_snapshot_id="[null]" STATUS="P" ISLAST="true"
              path=""
              depth="0"/>
 
-  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="2" created_at="2008-12-25 01:00:01.00" build_date="2008-12-25 01:00:01.00" version="1.0" project_id="3" scope="PRJ" qualifier="VW"
+  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="2" created_at="1230163201000" build_date="1230163201000" version="1.0" project_id="3" scope="PRJ" qualifier="VW"
              root_project_id="2" root_snapshot_id="[null]" parent_snapshot_id="[null]" STATUS="P" ISLAST="true"
              path=""
              depth="0"/>
 
-  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3" created_at="2008-12-25 01:00:01.00" build_date="2008-12-25 01:00:01.00" version="1.0" project_id="3" scope="PRJ" qualifier="SVW"
+  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3" created_at="1230163201000" build_date="1230163201000" version="1.0" project_id="3" scope="PRJ" qualifier="SVW"
              root_project_id="2" root_snapshot_id="2" parent_snapshot_id="2" STATUS="P" ISLAST="true"
              path="2."
              depth="1"/>
 
-  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="4" created_at="2008-12-25 01:00:00.00" build_date="2008-12-25 01:00:00.00" version="1.0" project_id="4" scope="FIL" qualifier="TRK"
+  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="4" created_at="1230163200000" build_date="1230163200000" version="1.0" project_id="4" scope="FIL" qualifier="TRK"
              root_project_id="2" root_snapshot_id="2" parent_snapshot_id="3" STATUS="P" ISLAST="true"
              path="2.3."
              depth="2"/>
 
 
-</dataset>
\ No newline at end of file
+</dataset>
index c2e8480b194f4f281d24b27473c52c7ddf3c94a5..81112762aabe2b9eb31a1b4c22ded4b089afca71 100644 (file)
@@ -28,7 +28,7 @@
              period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]"
              period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]"
              period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             created_at="2008-12-20 00:00:00.00" build_date="2008-12-20 00:00:00.00"
+             created_at="1229727600000" build_date="1229727600000"
              version="1.0" status="P" islast="[true]"/>
 
   <snapshots id="102" project_id="2" root_project_id="1" root_snapshot_id="101" parent_snapshot_id="101"
@@ -37,7 +37,7 @@
              period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]"
              period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]"
              period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             created_at="2008-12-20 00:00:00.00" build_date="2008-12-20 00:00:00.00"
+             created_at="1229727600000" build_date="1229727600000"
              version="1.0" status="P" islast="[true]"/>
 
   <snapshots id="103" project_id="3" root_project_id="1" root_snapshot_id="101" parent_snapshot_id="102"
@@ -46,7 +46,7 @@
              period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]"
              period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]"
              period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             created_at="2008-12-20 00:00:00.00" build_date="2008-12-20 00:00:00.00"
+             created_at="1229727600000" build_date="1229727600000"
              version="1.0" status="P" islast="[true]"/>
 
   <snapshots id="104" project_id="4" root_project_id="1" root_snapshot_id="101" parent_snapshot_id="102"
@@ -55,7 +55,7 @@
              period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]"
              period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]"
              period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             created_at="2008-12-20 00:00:00.00" build_date="2008-12-20 00:00:00.00"
+             created_at="1229727600000" build_date="1229727600000"
              version="1.0" status="P" islast="[true]"/>
 
   <resource_index id="1" kee="java class1" position="0" name_size="12" resource_id="1" root_project_id="1" qualifier="CLA"/>
index fdecec73505df23bf68436a4f82aa1e2378cef6e..06a16b28952d2db87bd4478ff507c60970d1c036 100644 (file)
@@ -14,7 +14,7 @@
              period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]"
              period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]"
              period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             created_at="2008-12-20 00:00:00.00" build_date="2008-12-20 00:00:00.00"
+             created_at="1229727600000" build_date="1229727600000"
              version="1.0" status="P" islast="[true]"/>
 
 
index 005439eeaffb28b69c2210118455017405f98dd1..53d8b4876e2dac8b309fa076ab70fb2c8f200208 100644 (file)
@@ -14,7 +14,7 @@
              period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]"
              period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]"
              period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             created_at="2008-12-20 00:00:00.00" build_date="2008-12-20 00:00:00.00"
+             created_at="1229727600000" build_date="1229727600000"
              version="1.0" status="P" islast="[true]"/>
 
 
index 346ef1ae1fd5098a2aeb1a1da4ec9b0fbe3ec582..430e1de1a7c4793f7ad54e25281284bdb7c89c83 100644 (file)
@@ -50,7 +50,7 @@
              period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]"
              period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]"
              period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             created_at="2008-12-20 00:00:00.00" build_date="2008-12-20 00:00:00.00"
+             created_at="1229727600000" build_date="1229727600000"
              version="1.0" status="P" islast="[true]"/>
 
   <snapshots id="102" project_id="2" root_project_id="1" root_snapshot_id="101" parent_snapshot_id="101"
@@ -59,7 +59,7 @@
              period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]"
              period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]"
              period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             created_at="2008-12-20 00:00:00.00" build_date="2008-12-20 00:00:00.00"
+             created_at="1229727600000" build_date="1229727600000"
              version="1.0" status="P" islast="[true]"/>
 
   <snapshots id="103" project_id="3" root_project_id="1" root_snapshot_id="101" parent_snapshot_id="102"
@@ -68,7 +68,7 @@
              period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]"
              period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]"
              period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             created_at="2008-12-20 00:00:00.00" build_date="2008-12-20 00:00:00.00"
+             created_at="1229727600000" build_date="1229727600000"
              version="1.0" status="P" islast="[true]"/>
 
   <snapshots id="104" project_id="4" root_project_id="1" root_snapshot_id="101" parent_snapshot_id="102"
@@ -77,7 +77,7 @@
              period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]"
              period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]"
              period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             created_at="2008-12-20 00:00:00.00" build_date="2008-12-20 00:00:00.00"
+             created_at="1229727600000" build_date="1229727600000"
              version="1.0" status="P" islast="[true]"/>
 
 
              period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]"
              period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]"
              period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             created_at="2012-12-13 04:06:00.00" build_date="2012-12-13 04:06:00.00"
+             created_at="1355367960000" build_date="1355367960000"
              version="3.0" status="P" islast="[true]"/>
 
   <!-- lines, many new lines during period 5 -->
index afcc9f3a1eaa61b838c94810ce06f5638d4cc0e2..98ef01efcb5596ca56521bd969f25beedc3a9dee 100644 (file)
@@ -17,7 +17,7 @@
              period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]"
              period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]"
              period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             created_at="2008-12-20 00:00:00.00" build_date="2008-12-20 00:00:00.00"
+             created_at="1229727600000" build_date="1229727600000"
              version="1.0" status="P" islast="[true]"/>
 
 
@@ -42,7 +42,7 @@
              period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]"
              period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]"
              period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             created_at="2012-12-13 04:06:00.00" build_date="2012-12-13 04:06:00.00"
+             created_at="1355367960000" build_date="1355367960000"
              version="3.0" status="P" islast="[true]"/>
 
   <!-- alert -->
@@ -66,7 +66,7 @@
              period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]"
              period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]"
              period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             created_at="2012-12-13 04:06:00.00" build_date="2012-12-13 04:06:00.00"
+             created_at="1355367960000" build_date="1355367960000"
              version="3.0" status="P" islast="[true]"/>
 
   <!-- alert -->
index eaa1b6de4c0b26a7593d64ae46be0abf9029c26d..be3bfa4e5ea75e364e591d45ddbc94bab812c591 100644 (file)
@@ -5,14 +5,14 @@
             kee="MASTER_PROJECT" scope="PRJ" qualifier="VW" name="All projects" path="[null]"/>
   <snapshots id="10" project_id="10" parent_snapshot_id="[null]" root_project_id="10" root_snapshot_id="[null]"
              status="P" islast="[true]" purge_status="[null]"
-             depth="[null]" scope="PRJ" qualifier="VW" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="VW" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
 
   <projects id="110" uuid="BCDE" project_uuid="ABCD" module_uuid="ABCD" module_uuid_path=".ABCD." copy_resource_id="100" enabled="[true]"
             kee="MASTER_PROJECTorg.struts:struts" scope="FIL" qualifier="TRK" name="Struts" path="[null]"/>
   <snapshots id="110" project_id="110" parent_snapshot_id="[null]" root_project_id="110" root_snapshot_id="[null]"
              status="P" islast="[true]" purge_status="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
 
   <!-- View with sub view -->
             kee="LANGUAGE_VIEW" scope="PRJ" qualifier="VW" name="By Language" path="[null]"/>
   <snapshots id="11" project_id="11" parent_snapshot_id="[null]" root_project_id="11" root_snapshot_id="[null]"
              status="P" islast="[true]" purge_status="[null]"
-             depth="[null]" scope="PRJ" qualifier="VW" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="VW" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
   <projects id="112" uuid="GHIJ" project_uuid="EFGH" module_uuid="EFGH" module_uuid_path=".EFGH." copy_resource_id="101" enabled="[true]"
             kee="VIEW2org.elasticsearch:elasticsearch" scope="FIL" qualifier="TRK" name="SSLR" path="[null]"/>
   <snapshots id="112" project_id="112" parent_snapshot_id="[null]" root_project_id="112" root_snapshot_id="[null]"
              status="P" islast="[true]" purge_status="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
 
   <!-- Sub view -->
             kee="JAVA_PROJECTS" scope="PRJ" qualifier="SVW" name="Java projects" path="[null]"/>
   <snapshots id="13" project_id="13" parent_snapshot_id="[null]" root_project_id="13" root_snapshot_id="[null]"
              status="P" islast="[true]" purge_status="[null]"
-             depth="[null]" scope="PRJ" qualifier="SVW" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="SVW" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
 
   <projects id="113" uuid="HIJK" project_uuid="EFGH" module_uuid="FGHI" module_uuid_path=".EFGH.FGHI." copy_resource_id="100" enabled="[true]"
             kee="VIEW2org.struts:struts" scope="FIL" qualifier="TRK" name="Struts" path="[null]"/>
   <snapshots id="113" project_id="113" parent_snapshot_id="[null]" root_project_id="113" root_snapshot_id="[null]"
              status="P" islast="[true]" purge_status="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
 
   <!-- View without project -->
@@ -49,7 +49,7 @@
             kee="OTHER" scope="PRJ" qualifier="VW" name="Other projects" path="[null]"/>
   <snapshots id="14" project_id="14" parent_snapshot_id="[null]" root_project_id="14" root_snapshot_id="[null]"
              status="P" islast="[true]" purge_status="[null]"
-             depth="[null]" scope="PRJ" qualifier="VW" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="VW" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
 
   <!-- Real projects -->
@@ -59,7 +59,7 @@
             enabled="[true]" copy_resource_id="[null]" path="[null]"/>
   <snapshots id="100" project_id="100" parent_snapshot_id="[null]" root_project_id="100" root_snapshot_id="[null]"
              status="P" islast="[true]" purge_status="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
 
   <projects id="101" scope="PRJ" qualifier="TRK" kee="org.elasticsearch:elasticsearch" name="Elasticsearch"
@@ -67,7 +67,7 @@
             enabled="[true]" copy_resource_id="[null]" path="[null]"/>
   <snapshots id="101" project_id="101" parent_snapshot_id="[null]" root_project_id="101" root_snapshot_id="[null]"
              status="P" islast="[true]" purge_status="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
 
 </dataset>
index bb6189a6fad2dbd2c8e7277734ce4edccc44b99f..ebf29970d0959c4869d1f4e19be07d772310e0a6 100644 (file)
@@ -130,7 +130,7 @@ class Api::EventsController < Api::ApiController
       if (params[:dateTime])
         # try to find a snapshot on that day
         date = parse_datetime(params[:dateTime], true)
-        root_snapshot = Snapshot.find(:last, :conditions => ["project_id = ? AND created_at >= ? AND created_at <= ?", @resource.id, date, date + 1.day], :order => :created_at)
+        root_snapshot = Snapshot.find(:last, :conditions => ["project_id = ? AND created_at >= ? AND created_at <= ?", @resource.id, date.to_i*1000, (date + 1.day).to_i*1000], :order => :created_at)
         raise "No snapshot exists for given date" unless root_snapshot
       else
         root_snapshot = Snapshot.find(:last, :conditions => ["project_id = ?", @resource.id], :order => :created_at)
index ec55ef129042ba1dde9c247e16c2b77215c02284..5bcc25b9c4e0f4f525f0c84c71c25cfc235880a5 100644 (file)
@@ -324,7 +324,7 @@ class ProjectController < ApplicationController
     access_denied unless is_admin?(parent_snapshot)
 
     # We update all the related snapshots to have the same version as the next snapshot
-    next_snapshot = Snapshot.find(:first, :conditions => ['created_at>? and project_id=?', parent_snapshot.created_at, parent_snapshot.project_id], :order => 'created_at asc')
+    next_snapshot = Snapshot.find(:first, :conditions => ['created_at>? and project_id=?', parent_snapshot.created_at.to_i*1000, parent_snapshot.project_id], :order => 'created_at asc')
     snapshots = find_project_snapshots(parent_snapshot.id)
     snapshots.each do |snapshot|
       snapshot.version = next_snapshot.version
index 52192c35289d9042bf09f276b695e828aa90c69a..3e43cf885f2ff3d15b5dfb30cbcc0c862aab69bc 100644 (file)
@@ -36,6 +36,39 @@ class Snapshot < ActiveRecord::Base
 
   STATUS_UNPROCESSED = 'U'
   STATUS_PROCESSED = 'P'
+  
+  def created_at
+    long_to_date(:created_at)
+  end
+  
+  def build_date
+    long_to_date(:build_date)
+  end
+  
+  def period1_date
+    long_to_date(:period1_date)
+  end
+  
+  def period2_date
+    long_to_date(:period2_date)
+  end
+  
+  def period3_date
+    long_to_date(:period3_date)
+  end
+  
+  def period4_date
+    long_to_date(:period4_date)
+  end
+  
+  def period5_date
+    long_to_date(:period5_date)
+  end
+  
+  def long_to_date(attribute)
+    date_in_long = read_attribute(attribute)
+    Time.at(date_in_long/1000) if date_in_long
+  end
 
   def self.for_timemachine_matrix(resource)
     # http://jira.codehaus.org/browse/SONAR-1850
@@ -185,7 +218,7 @@ class Snapshot < ActiveRecord::Base
 
   def self.snapshot_by_date(resource_id, date)
     if resource_id && date
-      Snapshot.find(:first, :conditions => ['created_at>=? and created_at<? and project_id=?', date.beginning_of_day, date.end_of_day, resource_id], :order => 'created_at desc')
+      Snapshot.find(:first, :conditions => ['created_at>=? and created_at<? and project_id=?', date.beginning_of_day.to_i*1000, date.end_of_day.to_i*1000, resource_id], :order => 'created_at desc')
     else
       nil
     end
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/775_add_snapshots_long_dates.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/775_add_snapshots_long_dates.rb
new file mode 100644 (file)
index 0000000..389046f
--- /dev/null
@@ -0,0 +1,34 @@
+#
+# SonarQube, open source software quality management tool.
+# Copyright (C) 2008-2014 SonarSource
+# mailto:contact AT sonarsource DOT com
+#
+# SonarQube is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 3 of the License, or (at your option) any later version.
+#
+# SonarQube is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+#
+
+#
+# SonarQube 5.1
+#
+class AddSnapshotsLongDates < ActiveRecord::Migration
+  def self.up
+    add_column 'snapshots', :created_at_ms, :big_integer, :null => true
+    add_column 'snapshots', :build_date_ms, :big_integer, :null => true
+    add_column 'snapshots', :period1_date_ms, :big_integer, :null => true
+    add_column 'snapshots', :period2_date_ms, :big_integer, :null => true
+    add_column 'snapshots', :period3_date_ms, :big_integer, :null => true
+    add_column 'snapshots', :period4_date_ms, :big_integer, :null => true
+    add_column 'snapshots', :period5_date_ms, :big_integer, :null => true
+  end
+end
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/776_feed_snapshots_long_dates.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/776_feed_snapshots_long_dates.rb
new file mode 100644 (file)
index 0000000..42e272f
--- /dev/null
@@ -0,0 +1,29 @@
+#
+# SonarQube, open source software quality management tool.
+# Copyright (C) 2008-2014 SonarSource
+# mailto:contact AT sonarsource DOT com
+#
+# SonarQube is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 3 of the License, or (at your option) any later version.
+#
+# SonarQube is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+#
+
+#
+# SonarQube 5.1
+#
+class FeedSnapshotsLongDates < ActiveRecord::Migration
+  def self.up
+    execute_java_migration('org.sonar.server.db.migrations.v51.FeedSnapshotsLongDates')
+  end
+end
+
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/777_rename_snapshots_long_dates.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/777_rename_snapshots_long_dates.rb
new file mode 100644 (file)
index 0000000..9f35dd5
--- /dev/null
@@ -0,0 +1,42 @@
+#
+# SonarQube, open source software quality management tool.
+# Copyright (C) 2008-2014 SonarSource
+# mailto:contact AT sonarsource DOT com
+#
+# SonarQube is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 3 of the License, or (at your option) any later version.
+#
+# SonarQube is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+#
+
+#
+# SonarQube 5.1
+#
+class RenameSnapshotsLongDates < ActiveRecord::Migration
+  def self.up
+    remove_column 'snapshots', 'created_at'
+    remove_column 'snapshots', 'build_date'
+    remove_column 'snapshots', 'period1_date'
+    remove_column 'snapshots', 'period2_date'
+    remove_column 'snapshots', 'period3_date'
+    remove_column 'snapshots', 'period4_date'
+    remove_column 'snapshots', 'period5_date'
+    rename_column 'snapshots', 'created_at_ms', 'created_at'
+    rename_column 'snapshots', 'build_date_ms', 'build_date'
+    rename_column 'snapshots', 'period1_date_ms', 'period1_date'
+    rename_column 'snapshots', 'period2_date_ms', 'period2_date'
+    rename_column 'snapshots', 'period3_date_ms', 'period3_date'
+    rename_column 'snapshots', 'period4_date_ms', 'period4_date'
+    rename_column 'snapshots', 'period5_date_ms', 'period5_date'
+  end
+end
+
index 648b624bfa4aec690b1b1745dee855b7e67b07ff..d026bfbb596bfba4b18c4d60c7975d1a3678f884 100644 (file)
@@ -38,12 +38,10 @@ import org.sonar.batch.index.DefaultIndex;
 import javax.annotation.Nullable;
 import javax.persistence.Query;
 
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Date;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
+import java.util.*;
+
+import static org.sonar.api.utils.DateUtils.dateToLong;
+import static org.sonar.api.utils.DateUtils.longToDate;
 
 public class DefaultTimeMachine implements TimeMachine {
 
@@ -71,7 +69,7 @@ public class DefaultTimeMachine implements TimeMachine {
       Integer characteristicId = model.getCharacteristicId();
       Characteristic characteristic = techDebtModel.characteristicById(characteristicId);
       Measure measure = toMeasure(model, metricById.get(model.getMetricId()), characteristic);
-      measure.setDate((Date) object[1]);
+      measure.setDate(longToDate((Long) object[1]));
       result.add(measure);
     }
     return result;
@@ -126,15 +124,15 @@ public class DefaultTimeMachine implements TimeMachine {
 
     } else if (query.getFrom() != null) {
       sb.append(" AND s.createdAt>=:from ");
-      params.put("from", query.getFrom());
+      params.put("from", dateToLong(query.getFrom()));
     }
     if (query.isToCurrentAnalysis()) {
       sb.append(" AND s.createdAt<=:to ");
-      params.put("to", index.getProject().getAnalysisDate());
+      params.put("to", dateToLong(index.getProject().getAnalysisDate()));
 
     } else if (query.getTo() != null) {
       sb.append(" AND s.createdAt<=:to ");
-      params.put("to", query.getTo());
+      params.put("to", dateToLong(query.getTo()));
     }
     if (query.isOnlyLastAnalysis()) {
       sb.append(" AND s.last=:last ");
index 75b4ce1722cbf88cb599c4787dc765c70c31d64e..4447bf9e4b4e1d702da13f7a6adbd30cf75e1308 100644 (file)
@@ -31,7 +31,6 @@ import org.sonar.api.database.DatabaseSession;
 import org.sonar.api.database.model.ResourceModel;
 import org.sonar.api.database.model.Snapshot;
 import org.sonar.api.resources.Project;
-import org.sonar.api.utils.DateUtils;
 import org.sonar.api.utils.SonarException;
 import org.sonar.api.utils.System2;
 
@@ -39,13 +38,15 @@ import javax.annotation.Nullable;
 
 import java.util.Date;
 
+import static org.sonar.api.utils.DateUtils.formatDateTime;
+import static org.sonar.api.utils.DateUtils.longToDate;
+
 public class ProjectConfigurator implements BatchComponent {
 
   private static final Logger LOG = LoggerFactory.getLogger(ProjectConfigurator.class);
-
+  private final System2 system2;
   private DatabaseSession databaseSession;
   private Settings settings;
-  private final System2 system2;
 
   public ProjectConfigurator(@Nullable DatabaseSession databaseSession, Settings settings, System2 system2) {
     this.databaseSession = databaseSession;
@@ -94,11 +95,12 @@ public class ProjectConfigurator implements BatchComponent {
       ResourceModel persistedProject = databaseSession.getSingleResult(ResourceModel.class, "key", projectKey, "enabled", true);
       if (persistedProject != null) {
         Snapshot lastSnapshot = databaseSession.getSingleResult(Snapshot.class, "resourceId", persistedProject.getId(), "last", true);
-        if (lastSnapshot != null && !lastSnapshot.getCreatedAt().before(analysisDate)) {
+        boolean analysisBeforeLastSnapshot = lastSnapshot != null && analysisDate.getTime() <= lastSnapshot.getCreatedAt();
+        if (analysisBeforeLastSnapshot) {
           throw new IllegalArgumentException(
             "'sonar.projectDate' property cannot be older than the date of the last known quality snapshot on this project. Value: '" +
               settings.getString(CoreProperties.PROJECT_DATE_PROPERTY) + "'. " +
-              "Latest quality snapshot: '" + DateUtils.formatDateTime(lastSnapshot.getCreatedAt())
+              "Latest quality snapshot: '" + formatDateTime(longToDate(lastSnapshot.getCreatedAt()))
               + "'. This property may only be used to rebuild the past in a chronological order.");
         }
       }
index 378dffff16fcc899accafdc7d3a1b608f70e73c8..aaaca92897027843c2149480a8609642408f5905 100644 (file)
@@ -26,10 +26,11 @@ import org.sonar.api.database.model.Snapshot;
 import org.sonar.api.utils.DateUtils;
 
 import javax.annotation.Nullable;
-
 import java.util.Calendar;
 import java.util.Date;
 
+import static org.sonar.api.utils.DateUtils.longToDate;
+
 public class PastSnapshot {
 
   private int index;
@@ -74,7 +75,7 @@ public class PastSnapshot {
   }
 
   public Date getDate() {
-    return projectSnapshot != null ? projectSnapshot.getCreatedAt() : null;
+    return projectSnapshot != null ? longToDate(projectSnapshot.getCreatedAt()) : null;
   }
 
   public PastSnapshot setMode(String mode) {
@@ -111,7 +112,7 @@ public class PastSnapshot {
     return targetDate;
   }
 
-  public PastSnapshot clonePastSnapshot(){
+  public PastSnapshot clonePastSnapshot() {
     PastSnapshot clone = new PastSnapshot(mode, targetDate, projectSnapshot);
     clone.setIndex(index);
     clone.setModeParameter(modeParameter);
index 057122d76d674c8927b929825d11bca1473d484b..fbae4382e43e290e623e5c9abf91fe52bbec2e7f 100644 (file)
@@ -31,6 +31,8 @@ import java.text.SimpleDateFormat;
 import java.util.Date;
 import java.util.List;
 
+import static org.sonar.api.utils.DateUtils.dateToLong;
+
 public class PastSnapshotFinderByDate implements BatchExtension {
 
   private DatabaseSession session;
@@ -57,12 +59,12 @@ public class PastSnapshotFinderByDate implements BatchExtension {
   private Snapshot findSnapshot(Integer projectId, Date date) {
     String hql = "from " + Snapshot.class.getSimpleName() + " where createdAt>=:date AND resourceId=:resourceId AND status=:status AND qualifier<>:lib order by createdAt asc";
     List<Snapshot> snapshots = session.createQuery(hql)
-        .setParameter("date", date)
-        .setParameter("resourceId", projectId)
-        .setParameter("status", Snapshot.STATUS_PROCESSED)
-        .setParameter("lib", Qualifiers.LIBRARY)
-        .setMaxResults(1)
-        .getResultList();
+      .setParameter("date", dateToLong(date))
+      .setParameter("resourceId", projectId)
+      .setParameter("status", Snapshot.STATUS_PROCESSED)
+      .setParameter("lib", Qualifiers.LIBRARY)
+      .setMaxResults(1)
+      .getResultList();
 
     return snapshots.isEmpty() ? null : snapshots.get(0);
   }
index 07bc1e86342c452f80f8015879019cb3f02bcf41..a3aa8b8387f28be2b77cbae3d23615f495c7bcfb 100644 (file)
@@ -30,6 +30,8 @@ import javax.annotation.CheckForNull;
 import java.util.Date;
 import java.util.List;
 
+import static org.sonar.api.utils.DateUtils.longToDate;
+
 public class PastSnapshotFinderByDays implements BatchExtension {
 
   private DatabaseSession session;
@@ -39,14 +41,14 @@ public class PastSnapshotFinderByDays implements BatchExtension {
   }
 
   PastSnapshot findFromDays(Snapshot projectSnapshot, int days) {
-    Date targetDate = DateUtils.addDays(projectSnapshot.getCreatedAt(), -days);
+    Date targetDate = DateUtils.addDays(longToDate(projectSnapshot.getCreatedAt()), -days);
     String hql = "from " + Snapshot.class.getSimpleName() + " where resourceId=:resourceId AND status=:status AND createdAt<:date AND qualifier<>:lib order by createdAt asc";
     List<Snapshot> snapshots = session.createQuery(hql)
-        .setParameter("date", projectSnapshot.getCreatedAt())
-        .setParameter("resourceId", projectSnapshot.getResourceId())
-        .setParameter("status", Snapshot.STATUS_PROCESSED)
-        .setParameter("lib", Qualifiers.LIBRARY)
-        .getResultList();
+      .setParameter("date", projectSnapshot.getCreatedAt())
+      .setParameter("resourceId", projectSnapshot.getResourceId())
+      .setParameter("status", Snapshot.STATUS_PROCESSED)
+      .setParameter("lib", Qualifiers.LIBRARY)
+      .getResultList();
 
     Snapshot snapshot = getNearestToTarget(snapshots, targetDate);
     return new PastSnapshot(CoreProperties.TIMEMACHINE_MODE_DAYS, targetDate, snapshot).setModeParameter(String.valueOf(days));
@@ -63,7 +65,7 @@ public class PastSnapshotFinderByDays implements BatchExtension {
     long bestDistance = Long.MAX_VALUE;
     Snapshot nearest = null;
     for (Snapshot snapshot : snapshots) {
-      long distance = distance(snapshot.getCreatedAt(), targetDate);
+      long distance = distance(longToDate(snapshot.getCreatedAt()), targetDate);
       if (distance <= bestDistance) {
         bestDistance = distance;
         nearest = snapshot;
index 750146974af5ef60d64ad21062d4e9f8f15886ed..627e1943b0cd858d87bce3179bc8593a154b1e9d 100644 (file)
@@ -30,6 +30,8 @@ import java.text.SimpleDateFormat;
 import java.util.Date;
 import java.util.List;
 
+import static org.sonar.api.utils.DateUtils.longToDate;
+
 public class PastSnapshotFinderByPreviousAnalysis implements BatchExtension {
 
   private DatabaseSession session;
@@ -54,7 +56,7 @@ public class PastSnapshotFinderByPreviousAnalysis implements BatchExtension {
       return new PastSnapshot(CoreProperties.TIMEMACHINE_MODE_PREVIOUS_ANALYSIS);
     }
     Snapshot snapshot = snapshots.get(0);
-    Date targetDate = snapshot.getCreatedAt();
+    Date targetDate = longToDate(snapshot.getCreatedAt());
     SimpleDateFormat format = new SimpleDateFormat(DateUtils.DATE_FORMAT);
     return new PastSnapshot(CoreProperties.TIMEMACHINE_MODE_PREVIOUS_ANALYSIS, targetDate, snapshot).setModeParameter(format.format(targetDate));
   }
index ca7f9c5ea89b55552eb02c349d4dd4cda002a5d0..85fc0f855da018ece6d7fc541495d43073d94835 100644 (file)
@@ -27,6 +27,8 @@ import org.sonar.api.database.model.Snapshot;
 
 import java.util.List;
 
+import static org.sonar.api.utils.DateUtils.longToDate;
+
 public class PastSnapshotFinderByPreviousVersion implements BatchExtension {
 
   private final DatabaseSession session;
@@ -55,7 +57,7 @@ public class PastSnapshotFinderByPreviousVersion implements BatchExtension {
     Event previousVersionEvent = events.get(0);
     Snapshot snapshot = session.getSingleResult(Snapshot.class, "id", previousVersionEvent.getSnapshot().getId());
 
-    return new PastSnapshot(CoreProperties.TIMEMACHINE_MODE_PREVIOUS_VERSION, snapshot.getCreatedAt(), snapshot).setModeParameter(snapshot.getVersion());
+    return new PastSnapshot(CoreProperties.TIMEMACHINE_MODE_PREVIOUS_VERSION, longToDate(snapshot.getCreatedAt()), snapshot).setModeParameter(snapshot.getVersion());
   }
 
 }
index 050ab1a4b78be06af0ad57a227d0d691f2205647..3995c2cb69de81ee9351a195ff2fcc4ed57559a6 100644 (file)
@@ -28,6 +28,8 @@ import org.sonar.api.resources.Qualifiers;
 import java.util.Date;
 import java.util.List;
 
+import static org.sonar.api.utils.DateUtils.longToDate;
+
 public class PastSnapshotFinderByVersion implements BatchExtension {
 
   private final DatabaseSession session;
@@ -51,7 +53,7 @@ public class PastSnapshotFinderByVersion implements BatchExtension {
       result = new PastSnapshot(CoreProperties.TIMEMACHINE_MODE_VERSION);
     } else {
       Snapshot snapshot = snapshots.get(0);
-      Date targetDate = snapshot.getCreatedAt();
+      Date targetDate = longToDate(snapshot.getCreatedAt());
       result = new PastSnapshot(CoreProperties.TIMEMACHINE_MODE_VERSION, targetDate, snapshot).setModeParameter(version);
     }
     return result;
index 392180d4fb42d9815a1118cc3c9f8efb1f318208..9f75d86fcb639c82192152390d5d496be86c2111 100644 (file)
@@ -28,11 +28,10 @@ import org.sonar.api.resources.Qualifiers;
 import org.sonar.batch.ProjectTree;
 
 import javax.persistence.Query;
-
-import java.util.Date;
 import java.util.List;
 
 import static com.google.common.collect.Lists.newLinkedList;
+import static org.sonar.api.utils.DateUtils.dateToLong;
 
 public class PeriodsDefinition implements BatchComponent {
 
@@ -80,8 +79,8 @@ public class PeriodsDefinition implements BatchComponent {
     if (projectId != null) {
       snapshot = new Snapshot();
       snapshot.setResourceId(projectId.intValue());
-      snapshot.setCreatedAt(projectTree.getRootProject().getAnalysisDate());
-      snapshot.setBuildDate(new Date());
+      snapshot.setCreatedAt(dateToLong(projectTree.getRootProject().getAnalysisDate()));
+      snapshot.setBuildDate(System.currentTimeMillis());
       snapshot.setVersion(projectTree.getRootProject().getAnalysisVersion());
     }
     return snapshot;
index f568585249762d810598df5cd013abbf203e238b..28c4957d89f178f185ac4b7edf673bd76b23be4a 100644 (file)
  */
 package org.sonar.batch.components;
 
-import org.sonar.api.batch.RequiresDB;
-
 import org.apache.commons.lang.StringUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.sonar.api.BatchComponent;
+import org.sonar.api.batch.RequiresDB;
 import org.sonar.api.database.DatabaseSession;
 import org.sonar.api.database.model.Snapshot;
 import org.sonar.api.resources.Qualifiers;
 
 import javax.annotation.CheckForNull;
-
 import java.util.List;
 
 import static com.google.common.collect.Lists.newLinkedList;
+import static org.sonar.api.utils.DateUtils.longToDate;
 
 @RequiresDB
 public class TimeMachineConfiguration implements BatchComponent {
@@ -61,7 +60,7 @@ public class TimeMachineConfiguration implements BatchComponent {
       PastSnapshot pastSnapshot = projectPastSnapshot.clonePastSnapshot();
       modulePastSnapshots.add(pastSnapshot);
       // When no snapshot is found, date of the period is null
-      periods.add(new Period(pastSnapshot.getIndex(), snapshot != null ? snapshot.getCreatedAt() : null));
+      periods.add(new Period(pastSnapshot.getIndex(), snapshot != null ? longToDate(snapshot.getCreatedAt()) : null));
       log(pastSnapshot);
     }
   }
index d4a56676b581c590ecb625650c8849e7fb85504d..7373053e2c057f62dd96e108fa584aebceae6dae 100644 (file)
@@ -24,13 +24,7 @@ import org.apache.commons.lang.StringUtils;
 import org.sonar.api.database.DatabaseSession;
 import org.sonar.api.database.model.ResourceModel;
 import org.sonar.api.database.model.Snapshot;
-import org.sonar.api.resources.Language;
-import org.sonar.api.resources.Library;
-import org.sonar.api.resources.Project;
-import org.sonar.api.resources.Qualifiers;
-import org.sonar.api.resources.Resource;
-import org.sonar.api.resources.ResourceUtils;
-import org.sonar.api.resources.Scopes;
+import org.sonar.api.resources.*;
 import org.sonar.api.security.ResourcePermissions;
 import org.sonar.api.utils.SonarException;
 import org.sonar.api.utils.internal.Uuids;
@@ -40,10 +34,11 @@ import org.sonar.core.component.ScanGraph;
 import javax.annotation.Nullable;
 import javax.persistence.NonUniqueResultException;
 import javax.persistence.Query;
-
 import java.util.Date;
 import java.util.List;
 
+import static org.sonar.api.utils.DateUtils.dateToLong;
+
 public class ResourcePersister implements ScanPersister {
 
   private static final String RESOURCE_ID = "resourceId";
@@ -140,8 +135,8 @@ public class ResourcePersister implements ScanPersister {
 
     Snapshot snapshot = new Snapshot(model, parentSnapshot);
     snapshot.setVersion(project.getAnalysisVersion());
-    snapshot.setCreatedAt(project.getAnalysisDate());
-    snapshot.setBuildDate(new Date());
+    snapshot.setCreatedAt(dateToLong(project.getAnalysisDate()));
+    snapshot.setBuildDate(System.currentTimeMillis());
     snapshot = session.save(snapshot);
     session.commit();
 
@@ -175,8 +170,8 @@ public class ResourcePersister implements ScanPersister {
     Snapshot snapshot = findLibrarySnapshot(model.getId(), library.getVersion());
     if (snapshot == null) {
       snapshot = new Snapshot(model, null);
-      snapshot.setCreatedAt(analysisDate);
-      snapshot.setBuildDate(new Date());
+      snapshot.setCreatedAt(dateToLong(analysisDate));
+      snapshot.setBuildDate(System.currentTimeMillis());
       snapshot.setVersion(library.getVersion());
       snapshot.setStatus(Snapshot.STATUS_PROCESSED);
 
@@ -224,7 +219,7 @@ public class ResourcePersister implements ScanPersister {
     }
 
     Snapshot snapshot = new Snapshot(model, parentSnapshot);
-    snapshot.setBuildDate(new Date());
+    snapshot.setBuildDate(System.currentTimeMillis());
     snapshot = session.save(snapshot);
     session.commit();
     return snapshot;
index 87cc1f19954c727b3bb1285a009c9f7aaa65079c..a4c455178f9a076a150081d81290a3708fa84dfc 100644 (file)
@@ -41,13 +41,14 @@ import org.sonar.batch.rule.ModuleQProfiles;
 import javax.annotation.CheckForNull;
 import javax.persistence.NoResultException;
 import javax.persistence.Query;
-
 import java.util.Arrays;
 import java.util.Date;
 import java.util.List;
 import java.util.Map;
 import java.util.Map.Entry;
 
+import static org.sonar.api.utils.DateUtils.longToDate;
+
 public class DefaultProjectRepositoriesLoader implements ProjectRepositoriesLoader {
 
   private static final Logger LOG = LoggerFactory.getLogger(DefaultProjectRepositoriesLoader.class);
@@ -169,7 +170,7 @@ public class DefaultProjectRepositoriesLoader implements ProjectRepositoriesLoad
       jpaQuery.setParameter(entry.getKey(), entry.getValue());
     }
     try {
-      return (Date) jpaQuery.getSingleResult();
+      return longToDate((Long) jpaQuery.getSingleResult());
     } catch (NoResultException e) {
       return null;
     }
index d07a94a44d8fad44a1cbd6489e2c47d5d21c13b4..c13593a9bbaa13b9463e67f407fb1af947c8ce03 100644 (file)
@@ -28,7 +28,6 @@ import org.sonar.api.utils.System2;
 import org.sonar.jpa.test.AbstractDbUnitTestCase;
 
 import java.text.SimpleDateFormat;
-import java.util.Date;
 
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.junit.Assert.fail;
@@ -46,7 +45,7 @@ public class ProjectConfiguratorTest extends AbstractDbUnitTestCase {
 
   @Test
   public void analysis_is_today_by_default() {
-    Long now = new Date().getTime();
+    Long now = System.currentTimeMillis();
     when(system2.now()).thenReturn(now);
 
     Project project = new Project("key");
index 096a3d6180b921d17933683b12575042d14b47f7..44b69304b4513e3e7f3510e3f711c99c80f6d2c7 100644 (file)
@@ -107,7 +107,7 @@ public class PastSnapshotFinderByDaysTest extends AbstractDbUnitTestCase {
   private Snapshot newSnapshot(int id, String date) throws ParseException {
     Snapshot snapshot = new Snapshot();
     snapshot.setId(id);
-    snapshot.setCreatedAt(dateFormat.parse(date));
+    snapshot.setCreatedAt(dateFormat.parse(date).getTime());
     return snapshot;
   }
 }
index 7f914256695c1189a5b7ad399e660edb8766438f..f821e63057f4665af99e95465ec58492526c2f0c 100644 (file)
@@ -27,6 +27,7 @@ import org.mockito.MockitoAnnotations;
 import org.sonar.api.CoreProperties;
 import org.sonar.api.config.Settings;
 import org.sonar.api.database.model.Snapshot;
+import org.sonar.api.utils.DateUtils;
 
 import java.text.ParseException;
 import java.text.SimpleDateFormat;
@@ -145,10 +146,9 @@ public class PastSnapshotFinderTest {
 
   @Test
   public void should_find_by_previous_analysis() throws ParseException {
-    final SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
-    final Date date = format.parse("2010-05-18");
+    final Date date = DateUtils.parseDate("2010-05-18");
     Snapshot snapshot = new Snapshot();
-    snapshot.setCreatedAt(date);
+    snapshot.setCreatedAt(date.getTime());
     when(finderByPreviousAnalysis.findByPreviousAnalysis(null)).thenReturn(new PastSnapshot(CoreProperties.TIMEMACHINE_MODE_PREVIOUS_ANALYSIS, date, snapshot));
 
     PastSnapshot variationSnapshot = finder.find(null, 2, CoreProperties.TIMEMACHINE_MODE_PREVIOUS_ANALYSIS);
@@ -175,7 +175,7 @@ public class PastSnapshotFinderTest {
     final SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
     final Date date = format.parse("2010-05-18");
     Snapshot snapshot = new Snapshot();
-    snapshot.setCreatedAt(date);
+    snapshot.setCreatedAt(date.getTime());
     when(finderByPreviousVersion.findByPreviousVersion(null)).thenReturn(new PastSnapshot(CoreProperties.TIMEMACHINE_MODE_PREVIOUS_VERSION, date, snapshot));
 
     PastSnapshot variationSnapshot = finder.find(null, 2, CoreProperties.TIMEMACHINE_MODE_PREVIOUS_VERSION);
index 26fcd948d188b3def463e22f27a69d90dbd0bfeb..4113cfc069c9445d9318bf8e38e2c7b83552ba90 100644 (file)
@@ -32,7 +32,7 @@ public class PastSnapshotTest {
 
   @Test
   public void test_some_setters_and_getters() {
-    Snapshot snapshot = new Snapshot().setQualifier(Qualifiers.FILE).setCreatedAt(new Date());
+    Snapshot snapshot = new Snapshot().setQualifier(Qualifiers.FILE).setCreatedAt(System.currentTimeMillis());
     snapshot.setId(10);
     PastSnapshot pastSnapshot = new PastSnapshot(CoreProperties.TIMEMACHINE_MODE_VERSION, new Date(),
       snapshot)
@@ -57,7 +57,7 @@ public class PastSnapshotTest {
 
   @Test
   public void testToStringForVersion() {
-    PastSnapshot pastSnapshot = new PastSnapshot(CoreProperties.TIMEMACHINE_MODE_VERSION, new Date(), new Snapshot().setCreatedAt(new Date())).setModeParameter("2.3");
+    PastSnapshot pastSnapshot = new PastSnapshot(CoreProperties.TIMEMACHINE_MODE_VERSION, new Date(), new Snapshot().setCreatedAt(System.currentTimeMillis())).setModeParameter("2.3");
     assertThat(pastSnapshot.toString()).startsWith("Compare to version 2.3");
   }
 
@@ -75,7 +75,7 @@ public class PastSnapshotTest {
 
   @Test
   public void testToStringForNumberOfDaysWithSnapshot() {
-    PastSnapshot pastSnapshot = new PastSnapshot(CoreProperties.TIMEMACHINE_MODE_DAYS, new Date(), new Snapshot().setCreatedAt(new Date())).setModeParameter("30");
+    PastSnapshot pastSnapshot = new PastSnapshot(CoreProperties.TIMEMACHINE_MODE_DAYS, new Date(), new Snapshot().setCreatedAt(System.currentTimeMillis())).setModeParameter("30");
     assertThat(pastSnapshot.toString()).startsWith("Compare over 30 days (");
   }
 
@@ -87,13 +87,13 @@ public class PastSnapshotTest {
 
   @Test
   public void testToStringForDateWithSnapshot() {
-    PastSnapshot pastSnapshot = new PastSnapshot(CoreProperties.TIMEMACHINE_MODE_DATE, new Date(), new Snapshot().setCreatedAt(new Date()));
+    PastSnapshot pastSnapshot = new PastSnapshot(CoreProperties.TIMEMACHINE_MODE_DATE, new Date(), new Snapshot().setCreatedAt(System.currentTimeMillis()));
     assertThat(pastSnapshot.toString()).startsWith("Compare to date ");
   }
 
   @Test
   public void testToStringForPreviousAnalysis() {
-    PastSnapshot pastSnapshot = new PastSnapshot(CoreProperties.TIMEMACHINE_MODE_PREVIOUS_ANALYSIS, new Date(), new Snapshot().setCreatedAt(new Date()));
+    PastSnapshot pastSnapshot = new PastSnapshot(CoreProperties.TIMEMACHINE_MODE_PREVIOUS_ANALYSIS, new Date(), new Snapshot().setCreatedAt(System.currentTimeMillis()));
     assertThat(pastSnapshot.toString()).startsWith("Compare to previous analysis ");
   }
 
index fef06b0f60d69ed5e24925bce1560b9f485b0dd5..a66341b5366ff4b0ad6d86a76e2ef29ce10a4bcb 100644 (file)
 
 
   <!-- Project : 3 snapshots -->
-  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1" created_at="2008-12-25 00:00:00.00" build_date="2008-12-25 00:00:00.00" version="1.0" project_id="1" scope="PRJ" qualifier="TRK"
+  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1" created_at="1230159600000" build_date="1230159600000" version="1.0" project_id="1" scope="PRJ" qualifier="TRK"
              root_project_id="[null]" root_snapshot_id="[null]" parent_snapshot_id="[null]" STATUS="P" ISLAST="false"
              path=""
              depth="0"/>
-  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="2" created_at="2009-02-25 13:58:00.00" build_date="2009-02-25 13:58:00.00" version="2.0" project_id="1" scope="PRJ" qualifier="TRK"
+  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="2" created_at="1235566680000" build_date="1235566680000" version="2.0" project_id="1" scope="PRJ" qualifier="TRK"
              root_project_id="[null]" root_snapshot_id="[null]" parent_snapshot_id="[null]" STATUS="P" ISLAST="false"
              path=""
              depth="0"/>
-  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3" created_at="2009-02-26 15:00:00.00" build_date="2009-02-26 15:00:00.00" version="[null]" project_id="1" scope="PRJ" qualifier="TRK"
+  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3" created_at="1235656800000" build_date="1235656800000" version="[null]" project_id="1" scope="PRJ" qualifier="TRK"
              root_project_id="[null]" root_snapshot_id="[null]" parent_snapshot_id="[null]" STATUS="P" ISLAST="true"
              path="" depth="0"/>
 
   <!-- unprocessed snapshot -->
-  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="4" created_at="2009-02-28 15:00:00.00" build_date="2009-02-28 15:00:00.00" version="[null]" project_id="1" scope="PRJ" qualifier="TRK"
+  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="4" created_at="1235829600000" build_date="1235829600000" version="[null]" project_id="1" scope="PRJ" qualifier="TRK"
              root_project_id="[null]" root_snapshot_id="[null]" parent_snapshot_id="[null]" STATUS="U" ISLAST="false"
              path="" depth="0"/>
 
@@ -62,4 +62,4 @@
                     RULE_ID="[null]" text_value="[null]" tendency="[null]" measure_date="[null]" project_id="[null]"
                     alert_status="[null]" description="[null]"/>
 
-</dataset>
\ No newline at end of file
+</dataset>
index 6658daa1b47750d196e8efcebc3cce1a8c1b4c0c..27d0ef4bac046a54dc8c0fde058c926db4df429d 100644 (file)
@@ -5,11 +5,11 @@
             description="[null]"
             enabled="true" language="java" copy_resource_id="[null]" person_id="[null]"/>
 
-  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" depth="[null]" id="30" scope="PRJ" qualifier="TRK" created_at="2010-11-01 13:58:00.00" build_date="2010-11-01 13:58:00.00" version="[null]"
+  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" depth="[null]" id="30" scope="PRJ" qualifier="TRK" created_at="1288616280000" build_date="1288616280000" version="[null]"
              project_id="5" parent_snapshot_id="[null]" root_project_id="[null]" root_snapshot_id="[null]" status="P" islast="false"
              path="[null]"/>
 
-  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" depth="[null]" id="50" scope="PRJ" qualifier="TRK" created_at="2010-12-02 13:58:00.00" build_date="2010-12-02 13:58:00.00" version="[null]"
+  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" depth="[null]" id="50" scope="PRJ" qualifier="TRK" created_at="1291294680000" build_date="1291294680000" version="[null]"
              project_id="5" parent_snapshot_id="[null]" root_project_id="[null]" root_snapshot_id="[null]" status="P" islast="true"
              path="[null]"/>
 </dataset>
\ No newline at end of file
index de187166907f51ede00592ff8e4672aa5d59f319..06e7901251a6807f24a3c99c97a5aa858b4f3c3e 100644 (file)
@@ -5,11 +5,11 @@
             description="[null]"
             enabled="true" language="java" copy_resource_id="[null]" person_id="[null]"/>
 
-  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" depth="[null]" id="30" scope="PRJ" qualifier="TRK" created_at="2008-11-01 13:58:00.00" build_date="2008-11-01 13:58:00.00" version="[null]"
+  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" depth="[null]" id="30" scope="PRJ" qualifier="TRK" created_at="1225544280000" build_date="1225544280000" version="[null]"
              project_id="5" parent_snapshot_id="[null]" root_project_id="[null]" root_snapshot_id="[null]" status="P" islast="false"
              path="[null]"/>
 
-  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" depth="[null]" id="50" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]"
+  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" depth="[null]" id="50" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]"
              project_id="5" parent_snapshot_id="[null]" root_project_id="[null]" root_snapshot_id="[null]" status="P" islast="true"
              path="[null]"/>
 </dataset>
\ No newline at end of file
index a26c76aa43ad94b751b54a5f86bf103d2609102e..4879a225eecb77eba4225f7455809885930c4f3d 100644 (file)
@@ -6,7 +6,7 @@
             description="[null]"
             enabled="true" language="java" copy_resource_id="[null]" person_id="[null]"/>
 
-  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" depth="[null]" id="50" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]"
+  <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" depth="[null]" id="50" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]"
              project_id="5" parent_snapshot_id="[null]" root_project_id="[null]" root_snapshot_id="[null]" status="P" islast="true"
              path="[null]"/>
 </dataset>
\ No newline at end of file
index 04dff250c1f67841bb105a7101dfffc751a87d0f..eb661e9f02b123a0fdbd0176e92f3a8b4edd46f6 100644 (file)
 
   <!-- snapshots -->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1000" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-01 13:58:00.00" build_date="2008-11-01 13:58:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225544280000" build_date="1225544280000" version="[null]" path=""
              status="P" islast="false" depth="0" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1001" project_id="2" parent_snapshot_id="1000" root_project_id="1" root_snapshot_id="1000"
-             scope="DIR" qualifier="PAC" created_at="2008-11-01 13:58:00.00" build_date="2008-11-01 13:58:00.00" version="[null]" path="1000."
+             scope="DIR" qualifier="PAC" created_at="1225544280000" build_date="1225544280000" version="[null]" path="1000."
              status="P" islast="false" depth="1" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1002" project_id="3" parent_snapshot_id="1001" root_project_id="1" root_snapshot_id="1000"
-             scope="FIL" qualifier="CLA" created_at="2008-11-01 13:58:00.00" build_date="2008-11-01 13:58:00.00" version="[null]" path="1000.1001."
+             scope="FIL" qualifier="CLA" created_at="1225544280000" build_date="1225544280000" version="[null]" path="1000.1001."
              status="P" islast="false" depth="2" />
 
 
index 2d07a1dda777f2bce3a9fdb9b175c51a2532e505..d794c3a242223519704ab49c8af2f7f41e2ad862 100644 (file)
@@ -9,34 +9,34 @@
   <!-- 2008-11-01 -->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1000"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-01 13:58:00.00" build_date="2008-11-01 13:58:00.00" version="1.1-SNAPSHOT" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225544280000" build_date="1225544280000" version="1.1-SNAPSHOT" path=""
              status="P" islast="false" depth="0" />
 
 
   <!-- 2008-11-12 -->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1003"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-12 13:58:00.00" build_date="2008-11-12 13:58:00.00" version="1.1-SNAPSHOT" path=""
+             scope="PRJ" qualifier="TRK" created_at="1226494680000" build_date="1226494680000" version="1.1-SNAPSHOT" path=""
              status="P" islast="true" depth="0" />
 
 
   <!-- 2008-11-22 -->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1006"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-22 13:58:00.00" build_date="2008-11-22 13:58:00.00" version="1.1" path=""
+             scope="PRJ" qualifier="TRK" created_at="1227358680000" build_date="1227358680000" version="1.1" path=""
              status="P" islast="false" depth="0" />
 
 
   <!-- 2008-11-25-->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1009"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-25 13:58:00.00" build_date="2008-11-25 13:58:00.00" version="1.1" path=""
+             scope="PRJ" qualifier="TRK" created_at="1227617880000" build_date="1227617880000" version="1.1" path=""
              status="P" islast="false" depth="0" />
 
   <!-- current analysis -->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1010"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-27 13:58:00.00" build_date="2008-11-27 13:58:00.00" version="1.2-SNAPSHOT" path=""
+             scope="PRJ" qualifier="TRK" created_at="1227790680000" build_date="1227790680000" version="1.2-SNAPSHOT" path=""
              status="U" islast="false" depth="0" />
 
-</dataset>
\ No newline at end of file
+</dataset>
index 4a2fc84eb3c243cc22cad5d6fb69c1b6a6afd1af..119f7399b4d39d1552410be2aa96ba7e6a7394e1 100644 (file)
 
   <!-- first analysis : 2008-11-01-->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1000" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-01 13:58:00.00" build_date="2008-11-01 13:58:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225544280000" build_date="1225544280000" version="[null]" path=""
              status="P" islast="false" depth="0" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1001" project_id="2" parent_snapshot_id="1000" root_project_id="1" root_snapshot_id="1000"
-             scope="DIR" qualifier="PAC" created_at="2008-11-01 13:58:00.00" build_date="2008-11-01 13:58:00.00" version="[null]" path="1000."
+             scope="DIR" qualifier="PAC" created_at="1225544280000" build_date="1225544280000" version="[null]" path="1000."
              status="P" islast="false" depth="1" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1002" project_id="3" parent_snapshot_id="1001" root_project_id="1" root_snapshot_id="1000"
-             scope="FIL" qualifier="CLA" created_at="2008-11-01 13:58:00.00" build_date="2008-11-01 13:58:00.00" version="[null]" path="1000.1001."
+             scope="FIL" qualifier="CLA" created_at="1225544280000" build_date="1225544280000" version="[null]" path="1000.1001."
              status="P" islast="false" depth="2" />
 
 
   <!-- second unprocessed analysis - to ignore: 2008-11-12 -->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1003" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-12 13:58:00.00" build_date="2008-11-12 13:58:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1226494680000" build_date="1226494680000" version="[null]" path=""
              status="U" islast="false" depth="0" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1004" project_id="2" parent_snapshot_id="1003" root_project_id="1" root_snapshot_id="1003"
-             scope="DIR" qualifier="PAC" created_at="2008-11-12 13:58:00.00" build_date="2008-11-12 13:58:00.00" version="[null]" path="1003."
+             scope="DIR" qualifier="PAC" created_at="1226494680000" build_date="1226494680000" version="[null]" path="1003."
              status="U" islast="false" depth="1" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1005" project_id="3" parent_snapshot_id="1004" root_project_id="1" root_snapshot_id="1003"
-             scope="FIL" qualifier="CLA" created_at="2008-11-12 13:58:00.00" build_date="2008-11-12 13:58:00.00" version="[null]" path="1003.1004."
+             scope="FIL" qualifier="CLA" created_at="1226494680000" build_date="1226494680000" version="[null]" path="1003.1004."
              status="P" islast="false" depth="2" />
 
 
   <!-- second analysis : 2008-11-13-->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1006" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-13 13:58:00.00" build_date="2008-11-13 13:58:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1226581080000" build_date="1226581080000" version="[null]" path=""
              status="P" islast="true" depth="0" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1007" project_id="2" parent_snapshot_id="1006" root_project_id="1" root_snapshot_id="1006"
-             scope="DIR" qualifier="PAC" created_at="2008-11-13 13:58:00.00" build_date="2008-11-13 13:58:00.00" version="[null]" path="1006."
+             scope="DIR" qualifier="PAC" created_at="1226581080000" build_date="1226581080000" version="[null]" path="1006."
              status="P" islast="true" depth="1" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1008" project_id="3" parent_snapshot_id="1007" root_project_id="1" root_snapshot_id="1006"
-             scope="FIL" qualifier="CLA" created_at="2008-11-13 13:58:00.00" build_date="2008-11-13 13:58:00.00" version="[null]" path="1006.1007."
+             scope="FIL" qualifier="CLA" created_at="1226581080000" build_date="1226581080000" version="[null]" path="1006.1007."
              status="P" islast="true" depth="2" />
 
 
   <!-- current analysis : 2008-11-16 -->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1009" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-16 13:58:00.00" build_date="2008-11-16 13:58:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1226840280000" build_date="1226840280000" version="[null]" path=""
              status="U" islast="false" depth="0" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1010" project_id="2" parent_snapshot_id="1009" root_project_id="1" root_snapshot_id="1009"
-             scope="DIR" qualifier="PAC" created_at="2008-11-16 13:58:00.00" build_date="2008-11-16 13:58:00.00" version="[null]" path="1009."
+             scope="DIR" qualifier="PAC" created_at="1226840280000" build_date="1226840280000" version="[null]" path="1009."
              status="U" islast="false" depth="1" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1011" project_id="3" parent_snapshot_id="1010" root_project_id="1" root_snapshot_id="1009"
-             scope="FIL" qualifier="CLA" created_at="2008-11-16 13:58:00.00" build_date="2008-11-16 13:58:00.00" version="[null]" path="1009.1010."
+             scope="FIL" qualifier="CLA" created_at="1226840280000" build_date="1226840280000" version="[null]" path="1009.1010."
              status="U" islast="false" depth="2" />
-</dataset>
\ No newline at end of file
+</dataset>
index a62a55c49dd501e577dbeac51b8a725779d2f8df..166f7c18ea8e35568e5b6500d09478e7342d0a89 100644 (file)
 
   <!-- current analysis : 2008-11-16 -->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1009" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-16 13:58:00.00" build_date="2008-11-16 13:58:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1226840280000" build_date="1226840280000" version="[null]" path=""
              status="U" islast="false" depth="0" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1010" project_id="2" parent_snapshot_id="1009" root_project_id="1" root_snapshot_id="1009"
-             scope="DIR" qualifier="PAC" created_at="2008-11-16 13:58:00.00" build_date="2008-11-16 13:58:00.00" version="[null]" path="1009."
+             scope="DIR" qualifier="PAC" created_at="1226840280000" build_date="1226840280000" version="[null]" path="1009."
              status="U" islast="false" depth="1" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1011" project_id="3" parent_snapshot_id="1010" root_project_id="1" root_snapshot_id="1009"
-             scope="FIL" qualifier="CLA" created_at="2008-11-16 13:58:00.00" build_date="2008-11-16 13:58:00.00" version="[null]" path="1009.1010."
+             scope="FIL" qualifier="CLA" created_at="1226840280000" build_date="1226840280000" version="[null]" path="1009.1010."
              status="U" islast="false" depth="2" />
 </dataset>
\ No newline at end of file
index f6e905101a674051cd12acb4094c85620391c933..eb5136dc8088fd8f287f742483106f434b38bed7 100644 (file)
@@ -7,20 +7,20 @@
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1006"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-22 13:58:00.00" build_date="2008-11-22 13:58:00.00" version="1.1" path=""
+             scope="PRJ" qualifier="TRK" created_at="1227358680000" build_date="1227358680000" version="1.1" path=""
              status="P" islast="false" depth="0" />
 
 
   <!-- last analysis -->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1009"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-25 13:58:00.00" build_date="2008-11-25 13:58:00.00" version="1.1" path=""
+             scope="PRJ" qualifier="TRK" created_at="1227617880000" build_date="1227617880000" version="1.1" path=""
              status="P" islast="true" depth="0" />
 
   <!-- current analysis -->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1010"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-27 13:58:00.00" build_date="2008-11-27 13:58:00.00" version="1.2-SNAPSHOT" path=""
+             scope="PRJ" qualifier="TRK" created_at="1227790680000" build_date="1227790680000" version="1.2-SNAPSHOT" path=""
              status="U" islast="false" depth="0" />
 
 </dataset>
\ No newline at end of file
index 3c1bad25f37031e073417f1f14e31e7cc617ccb4..5809598e5d75b727f89e1ece0ef61d0ff27f47f5 100644 (file)
@@ -9,13 +9,13 @@
   <!-- unprocessed analysis -->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1009"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-25 13:58:00.00" build_date="2008-11-25 13:58:00.00" version="1.1" path=""
+             scope="PRJ" qualifier="TRK" created_at="1227617880000" build_date="1227617880000" version="1.1" path=""
              status="U" islast="false" depth="0" />
 
   <!-- current analysis -->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1010"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-27 13:58:00.00" build_date="2008-11-27 13:58:00.00" version="1.2-SNAPSHOT" path=""
+             scope="PRJ" qualifier="TRK" created_at="1227790680000" build_date="1227790680000" version="1.2-SNAPSHOT" path=""
              status="U" islast="false" depth="0" />
 
 </dataset>
\ No newline at end of file
index eca7da3d44491419c1706eb592bc2eaa627db288..2f01f86b9898660019c4c5db6c61886ebceaa1a8 100644 (file)
@@ -9,25 +9,25 @@
   <!-- version 1.0 -->
   <snapshots id="1000" purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-02 13:58:00.00" build_date="2008-11-02 13:58:00.00" version="1.0" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225630680000" build_date="1225630680000" version="1.0" path=""
              status="P" islast="false" depth="0" />
 
   <!-- version 1.1 -->
   <snapshots id="1001" purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-04 13:58:00.00" build_date="2008-11-04 13:58:00.00" version="1.1" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225803480000" build_date="1225803480000" version="1.1" path=""
              status="P" islast="false" depth="0" />
 
   <!-- version 1.2-SNAPSHOT -->
   <snapshots id="1002" purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-06 13:58:00.00" build_date="2008-11-06 13:58:00.00" version="1.2-SNAPSHOT" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225976280000" build_date="1225976280000" version="1.2-SNAPSHOT" path=""
              status="P" islast="false" depth="0" />
 
   <!-- version 1.2-SNAPSHOT, current analysis -->
   <snapshots id="1003" purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-09 13:58:00.00" build_date="2008-11-09 13:58:00.00" version="1.2-SNAPSHOT" path=""
+             scope="PRJ" qualifier="TRK" created_at="1226235480000" build_date="1226235480000" version="1.2-SNAPSHOT" path=""
              status="U" islast="true" depth="0" />
   
   <events id="2" name="Foo" resource_id="1" snapshot_id="1000" category="Other" event_date="2008-11-03 13:58:00.00" created_at="2008-11-03 13:58:00.00" description=""
index 0612f65e11f72c476dcd5323b20876d3e0792812..d990e648414c0623247731aa1b2bd6e1c52b573e 100644 (file)
@@ -9,25 +9,25 @@
   <!-- version 1.0 -->
   <snapshots id="1000" purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-02 13:58:00.00" build_date="2008-11-02 13:58:00.00" version="1.0" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225630680000" build_date="1225630680000" version="1.0" path=""
              status="P" islast="false" depth="0" />
 
   <!-- version 1.1 -->
   <snapshots id="1001" purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-04 13:58:00.00" build_date="2008-11-04 13:58:00.00" version="1.1" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225803480000" build_date="1225803480000" version="1.1" path=""
              status="P" islast="false" depth="0" />
 
   <!-- version 1.2-SNAPSHOT -->
   <snapshots id="1002" purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-06 13:58:00.00" build_date="2008-11-06 13:58:00.00" version="1.2-SNAPSHOT" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225976280000" build_date="1225976280000" version="1.2-SNAPSHOT" path=""
              status="P" islast="false" depth="0" />
 
   <!-- version 1.2-SNAPSHOT, current analysis -->
   <snapshots id="1003" purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-09 13:58:00.00" build_date="2008-11-09 13:58:00.00" version="1.2-SNAPSHOT" path=""
+             scope="PRJ" qualifier="TRK" created_at="1226235480000" build_date="1226235480000" version="1.2-SNAPSHOT" path=""
              status="U" islast="true" depth="0" />
   
   <events id="1" name="1.0" resource_id="1" snapshot_id="1000" category="Version" event_date="2008-11-02 13:58:00.00" created_at="2008-11-02 13:58:00.00" description=""
index a708a476c077955484db591a285e41fd9376a6cb..5ecbc2fa9598d370dcf881915e6ffbe832656315 100644 (file)
@@ -9,25 +9,25 @@
   <!-- version 1.0 -->
   <snapshots id="1000" purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-02 13:58:00.00" build_date="2008-11-02 13:58:00.00" version="1.0" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225630680000" build_date="1225630680000" version="1.0" path=""
              status="P" islast="false" depth="0" />
 
   <!-- version 1.1 -->
   <snapshots id="1001" purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-04 13:58:00.00" build_date="2008-11-04 13:58:00.00" version="1.1" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225803480000" build_date="1225803480000" version="1.1" path=""
              status="P" islast="false" depth="0" />
 
   <!-- version 1.2-SNAPSHOT -->
   <snapshots id="1002" purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-06 13:58:00.00" build_date="2008-11-06 13:58:00.00" version="1.2-SNAPSHOT" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225976280000" build_date="1225976280000" version="1.2-SNAPSHOT" path=""
              status="P" islast="false" depth="0" />
 
   <!-- version 1.2-SNAPSHOT, current analysis -->
   <snapshots id="1003" purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-09 13:58:00.00" build_date="2008-11-09 13:58:00.00" version="1.2-SNAPSHOT" path=""
+             scope="PRJ" qualifier="TRK" created_at="1226235480000" build_date="1226235480000" version="1.2-SNAPSHOT" path=""
              status="U" islast="true" depth="0" />
   
   <events id="1" name="1.0" resource_id="1" snapshot_id="1000" category="Version" event_date="2008-11-02 13:58:00.00" created_at="2008-11-02 13:58:00.00" description="" event_data="[null]"/>
index 98c40a5fc53707fd93cfd62cec91268ba6d3427c..289a362f781135c3d31a61ba4e05cd41c7927f3e 100644 (file)
@@ -9,34 +9,34 @@
   <!-- version 1.1-SNAPSHOT -->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1000"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-01 13:58:00.00" build_date="2008-11-01 13:58:00.00" version="1.1-SNAPSHOT" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225544280000" build_date="1225544280000" version="1.1-SNAPSHOT" path=""
              status="P" islast="false" depth="0" />
 
 
   <!-- version 1.1-SNAPSHOT -->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1003"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-02 13:58:00.00" build_date="2008-11-02 13:58:00.00" version="1.1-SNAPSHOT" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225630680000" build_date="1225630680000" version="1.1-SNAPSHOT" path=""
              status="P" islast="true" depth="0" />
 
 
   <!-- unprocessed version 1.1 (to ignore) -->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1006"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-03 13:58:00.00" build_date="2008-11-03 13:58:00.00" version="1.1" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225717080000" build_date="1225717080000" version="1.1" path=""
              status="U" islast="false" depth="0" />
 
 
   <!-- version 1.1 -->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1009"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-04 13:58:00.00" build_date="2008-11-04 13:58:00.00" version="1.1" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225803480000" build_date="1225803480000" version="1.1" path=""
              status="P" islast="false" depth="0" />
 
   <!-- current analysis -->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="1010"
              project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-05 13:58:00.00" build_date="2008-11-05 13:58:00.00" version="1.2-SNAPSHOT" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225889880000" build_date="1225889880000" version="1.2-SNAPSHOT" path=""
              status="U" islast="false" depth="0" />
 
-</dataset>
\ No newline at end of file
+</dataset>
index 2d267fb2963e709843facb986232a23d1201c15e..c77134454794adaa1aaf8a9b7f84425cbe68a7a5 100644 (file)
@@ -3,13 +3,13 @@
   <!-- Project -->
   <snapshots id="1010" purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              project_id="1" parent_snapshot_id="[null]" root_project_id="[null]" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-27 13:58:00.00" build_date="2008-11-27 13:58:00.00" version="1.2-SNAPSHOT" path=""
+             scope="PRJ" qualifier="TRK" created_at="1227790680000" build_date="1227790680000" version="1.2-SNAPSHOT" path=""
              status="U" islast="false" depth="0" />
 
   <!-- Module -->
   <snapshots id="1011" purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              project_id="2" parent_snapshot_id="1010" root_project_id="1" root_snapshot_id="1010"
-             scope="PRJ" qualifier="BRC" created_at="2008-11-27 13:58:00.00" build_date="2008-11-27 13:58:00.00" version="1.2-SNAPSHOT" path=""
+             scope="PRJ" qualifier="BRC" created_at="1227790680000" build_date="1227790680000" version="1.2-SNAPSHOT" path=""
              status="U" islast="false" depth="0" />
 
 </dataset>
index 9b7ee4aad2e3a3099c092bd6f3427843e7060e80..32f00a7d0d8926cc655f6f13b20283a44be6557d 100644 (file)
@@ -6,12 +6,12 @@
 
   <!-- old snapshot -->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3001" project_id="1001" parent_snapshot_id="[null]" root_project_id="1001" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2010-12-23 00:00:00.00" build_date="2010-12-23 00:00:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1293058800000" build_date="1293058800000" version="[null]" path=""
              status="U" islast="false" depth="0" />
 
   <!-- new snapshot -->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3002" project_id="1001" parent_snapshot_id="[null]" root_project_id="1001" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1293231600000" build_date="1293231600000" version="[null]" path=""
              status="U" islast="false" depth="0" />
 
 </dataset>
index 81d3d9530790b5d7a62e95e18ca53868e871c262..fb8b855c622d6548a8922bd6a3dfce07f4091926 100644 (file)
@@ -6,7 +6,7 @@
             enabled="true" language="java" copy_resource_id="[null]" person_id="[null]" created_at="[null]" path="[null]" deprecated_kee="foo"/>
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3001" project_id="1001" parent_snapshot_id="[null]" root_project_id="1001" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2010-12-23 00:00:00.00" build_date="2010-12-23 00:00:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1293058800000" build_date="1293058800000" version="[null]" path=""
              status="U" islast="false" depth="0" />
 
 </dataset>
index 833ebcd543854e1061af6ad5abf65add6e10247c..3142a88d3f30f5f2fcd426f59d441554fda1c352 100644 (file)
@@ -6,7 +6,7 @@
             enabled="true" language="java" copy_resource_id="[null]" person_id="[null]" path="[null]" deprecated_kee="my:key" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3000" project_id="1000" parent_snapshot_id="[null]" root_project_id="1000" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-01 13:58:00.00" build_date="2008-11-01 13:58:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225544280000" build_date="1225544280000" version="[null]" path=""
              status="P" islast="false" depth="0" />
 
 
@@ -16,7 +16,7 @@
             enabled="true" language="[null]" copy_resource_id="10" person_id="[null]" path="[null]" deprecated_kee="foo" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3001" project_id="1001" parent_snapshot_id="[null]" root_project_id="1001" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1293231600000" build_date="1293231600000" version="[null]" path=""
              status="U" islast="false" depth="0" />
 
 </dataset>
index 4ac03aed3768d2b335f051c73e25a4a5d7e4a82b..509c84c797e58ae2367c1682bf010968d7d48d37 100644 (file)
@@ -6,7 +6,7 @@
             enabled="true" language="java" copy_resource_id="[null]" person_id="[null]" path="[null]" deprecated_kee="my:key" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3000" project_id="1000" parent_snapshot_id="[null]" root_project_id="1000" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-01 13:58:00.00" build_date="2008-11-01 13:58:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225544280000" build_date="1225544280000" version="[null]" path=""
              status="P" islast="false" depth="0"/>
 
 
             enabled="true" language="[null]" copy_resource_id="[null]" person_id="[null]" path="src/main/java/org/foo" deprecated_kee="[null]" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3001" project_id="1001" parent_snapshot_id="[null]" root_project_id="1001" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1293231600000" build_date="1293231600000" version="[null]" path=""
              status="U" islast="false" depth="0"/>
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3002" project_id="1002" parent_snapshot_id="3001" root_project_id="1001" root_snapshot_id="3001"
-             scope="DIR" qualifier="DIR" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="[null]" path="3001."
+             scope="DIR" qualifier="DIR" created_at="1293231600000" build_date="1293231600000" version="[null]" path="3001."
              status="U" islast="false" depth="1"/>
 
 </dataset>
index 1f2478a3fc3ccb5cb104130fb3bad4bd7f289235..1fa430d877b751e1ec20585c342cf5abf3d33553 100644 (file)
@@ -6,7 +6,7 @@
             enabled="true" language="java" copy_resource_id="[null]" person_id="[null]" path="[null]" deprecated_kee="my:key" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3000" project_id="1000" parent_snapshot_id="[null]" root_project_id="1000" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-01 13:58:00.00" build_date="2008-11-01 13:58:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225544280000" build_date="1225544280000" version="[null]" path=""
              status="P" islast="false" depth="0" />
 
 
             enabled="true" language="[null]" copy_resource_id="[null]" person_id="[null]" deprecated_kee="[null]" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3001" project_id="1001" parent_snapshot_id="[null]" root_project_id="1001" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1293231600000" build_date="1293231600000" version="[null]" path=""
              status="U" islast="false" depth="0" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3002" project_id="1002" parent_snapshot_id="[null]" root_project_id="1002" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="LIB" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="4.8.2" path=""
+             scope="PRJ" qualifier="LIB" created_at="1293231600000" build_date="1293231600000" version="4.8.2" path=""
              status="P" islast="false" depth="0" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3003" project_id="1002" parent_snapshot_id="[null]" root_project_id="1002" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="LIB" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="3.2" path=""
+             scope="PRJ" qualifier="LIB" created_at="1293231600000" build_date="1293231600000" version="3.2" path=""
              status="P" islast="false" depth="0" />
 
 </dataset>
index f25ce3cbece7aef5132f718c48b86d8edaaa0a60..bed6ddbad3dda1bbfff05ddcbc99053fa78ed06d 100644 (file)
@@ -6,7 +6,7 @@
             enabled="true" language="java" copy_resource_id="[null]" person_id="[null]" path="[null]" deprecated_kee="my:key" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3000" project_id="1000" parent_snapshot_id="[null]" root_project_id="1000" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-01 13:58:00.00" build_date="2008-11-01 13:58:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225544280000" build_date="1225544280000" version="[null]" path=""
              status="P" islast="false" depth="0" />
 
   <!-- new project -->
             enabled="true" language="[null]" copy_resource_id="[null]" person_id="[null]" path="src/main/java/org/Foo.java" deprecated_kee="[null]" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3001" project_id="1001" root_project_id="1001" parent_snapshot_id="[null]"  root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1293231600000" build_date="1293231600000" version="[null]" path=""
              status="U" islast="false" depth="0" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3002" project_id="1002" root_project_id="1001" parent_snapshot_id="3001" root_snapshot_id="3001"
-             scope="PRJ" qualifier="BRC" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="[null]" path="3001."
+             scope="PRJ" qualifier="BRC" created_at="1293231600000" build_date="1293231600000" version="[null]" path="3001."
              status="U" islast="false" depth="1" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3003" project_id="1003" root_project_id="1001" parent_snapshot_id="3001" root_snapshot_id="3001"
-             scope="PRJ" qualifier="BRC" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="[null]" path="3001."
+             scope="PRJ" qualifier="BRC" created_at="1293231600000" build_date="1293231600000" version="[null]" path="3001."
              status="U" islast="false" depth="1" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3004" project_id="1004" root_project_id="1001" parent_snapshot_id="3003" root_snapshot_id="3001"
-             scope="PRJ" qualifier="BRC" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="[null]" path="3001.3003."
+             scope="PRJ" qualifier="BRC" created_at="1293231600000" build_date="1293231600000" version="[null]" path="3001.3003."
              status="U" islast="false" depth="2" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3005" project_id="1005" root_project_id="1001" parent_snapshot_id="3004" root_snapshot_id="3001"
-             scope="DIR" qualifier="DIR" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="[null]" path="3001.3003.3004."
+             scope="DIR" qualifier="DIR" created_at="1293231600000" build_date="1293231600000" version="[null]" path="3001.3003.3004."
              status="U" islast="false" depth="3" />
              
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3006" project_id="1006" root_project_id="1001" parent_snapshot_id="3005" root_snapshot_id="3001"
-             scope="FIL" qualifier="FIL" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="[null]" path="3001.3003.3004.3005."
+             scope="FIL" qualifier="FIL" created_at="1293231600000" build_date="1293231600000" version="[null]" path="3001.3003.3004.3005."
              status="U" islast="false" depth="4" />
 
 </dataset>
index c16c139570f587a4285a6b4c0f4e59ca5c9f4fd2..86b94e2762207b52eac7f74b8fa6527570a50c39 100644 (file)
@@ -6,7 +6,7 @@
             enabled="true" language="java" copy_resource_id="[null]" person_id="[null]" path="[null]" deprecated_kee="my:key" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3000" project_id="1000" parent_snapshot_id="[null]" root_project_id="1000" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-01 13:58:00.00" build_date="2008-11-01 13:58:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225544280000" build_date="1225544280000" version="[null]" path=""
              status="P" islast="false" depth="0" />
 
   <!-- new project -->
             enabled="true" language="[null]" copy_resource_id="[null]" person_id="[null]" path="src/main/java/org/Foo.java" deprecated_kee="[null]" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3001" project_id="1001" root_project_id="1001" parent_snapshot_id="[null]"  root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1293231600000" build_date="1293231600000" version="[null]" path=""
              status="U" islast="false" depth="0" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3002" project_id="1002" root_project_id="1001" parent_snapshot_id="3001" root_snapshot_id="3001"
-             scope="PRJ" qualifier="BRC" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="[null]" path="3001."
+             scope="PRJ" qualifier="BRC" created_at="1293231600000" build_date="1293231600000" version="[null]" path="3001."
              status="U" islast="false" depth="1" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3003" project_id="1003" root_project_id="1001" parent_snapshot_id="3001" root_snapshot_id="3001"
-             scope="PRJ" qualifier="BRC" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="[null]" path="3001."
+             scope="PRJ" qualifier="BRC" created_at="1293231600000" build_date="1293231600000" version="[null]" path="3001."
              status="U" islast="false" depth="1" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3004" project_id="1004" root_project_id="1001" parent_snapshot_id="3003" root_snapshot_id="3001"
-             scope="PRJ" qualifier="BRC" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="[null]" path="3001.3003."
+             scope="PRJ" qualifier="BRC" created_at="1293231600000" build_date="1293231600000" version="[null]" path="3001.3003."
              status="U" islast="false" depth="2" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3005" project_id="1005" root_project_id="1001" parent_snapshot_id="3004" root_snapshot_id="3001"
-             scope="DIR" qualifier="DIR" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="[null]" path="3001.3003.3004."
+             scope="DIR" qualifier="DIR" created_at="1293231600000" build_date="1293231600000" version="[null]" path="3001.3003.3004."
              status="U" islast="false" depth="3" />
              
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3006" project_id="1006" root_project_id="1001" parent_snapshot_id="3005" root_snapshot_id="3001"
-             scope="FIL" qualifier="FIL" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="[null]" path="3001.3003.3004.3005."
+             scope="FIL" qualifier="FIL" created_at="1293231600000" build_date="1293231600000" version="[null]" path="3001.3003.3004.3005."
              status="U" islast="false" depth="4" />
              
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3007" project_id="1002" parent_snapshot_id="[null]" root_project_id="1002" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="LIB" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="1.0" path=""
+             scope="PRJ" qualifier="LIB" created_at="1293231600000" build_date="1293231600000" version="1.0" path=""
              status="P" islast="false" depth="0" />          
 
 </dataset>
index 7b0e006507abe55de8f1f9d3a362b39cea328209..2f047d09640f032eb0ad96d85692de16a151780c 100644 (file)
@@ -6,7 +6,7 @@
             enabled="true" language="java" copy_resource_id="[null]" person_id="[null]" path="[null]" deprecated_kee="my:key"/>
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3000" project_id="1000" parent_snapshot_id="[null]" root_project_id="1000" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-11-01 13:58:00.00" build_date="2008-11-01 13:58:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1225544280000" build_date="1225544280000" version="[null]" path=""
              status="P" islast="false" depth="0" />
 
 
@@ -16,7 +16,7 @@
             enabled="true" language="[null]" copy_resource_id="[null]" person_id="[null]" path="[null]" deprecated_kee="foo" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3001" project_id="1001" parent_snapshot_id="[null]" root_project_id="1001" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1293231600000" build_date="1293231600000" version="[null]" path=""
              status="U" islast="false" depth="0" />
 
 </dataset>
index 14edf7cb5fa92695d867450cb1824b9399a44d35..b38cce164ff584d3ac2603fb5ed4b245111e01ef 100644 (file)
@@ -6,12 +6,12 @@
 
   <!-- old snapshot -->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3001" project_id="1001" parent_snapshot_id="[null]" root_project_id="1001" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2010-12-23 00:00:00.00" build_date="2010-12-23 00:00:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1293058800000" build_date="1293058800000" version="[null]" path=""
              status="U" islast="false" depth="0" />
 
   <!-- new snapshot -->
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3002" project_id="1001" parent_snapshot_id="[null]" root_project_id="1001" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2010-12-25 00:00:00.00" build_date="2010-12-25 00:00:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1293231600000" build_date="1293231600000" version="[null]" path=""
              status="U" islast="false" depth="0" />
 
 </dataset>
index 674397123dd8a9c4ccbfb4b53ce51d709cde06c1..859be16f7fd9b83f9d296fc76b5ef240b10b2ee0 100644 (file)
@@ -5,7 +5,7 @@
             enabled="true" language="java" copy_resource_id="[null]" person_id="[null]" path="[null]" />
 
   <snapshots purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]" period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]" period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]" id="3001" project_id="1001" parent_snapshot_id="[null]" root_project_id="1001" root_snapshot_id="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2010-12-23 00:00:00.00" build_date="2010-12-23 00:00:00.00" version="[null]" path=""
+             scope="PRJ" qualifier="TRK" created_at="1293058800000" build_date="1293058800000" version="[null]" path=""
              status="U" islast="false" depth="0" />
 
 </dataset>
index a9b5aaa5a56c32cb570fe46f859e747a69b319ee..c575cc58f0dc0848624fa6876809515c4b5646f9 100644 (file)
  */
 package org.sonar.core.component;
 
-import org.sonar.core.persistence.Dto;
-
-import java.util.Date;
-
-public final class SnapshotDto extends Dto<Long> {
+public final class SnapshotDto {
 
   /**
    * This status is set on the snapshot at the beginning of the batch
@@ -38,7 +34,8 @@ public final class SnapshotDto extends Dto<Long> {
   private Long rootId;
   private Long rootProjectId;
 
-  private Date buildDate;
+  private Long createdAt;
+  private Long buildDate;
   private Long resourceId;
   private String status = STATUS_UNPROCESSED;
   private Integer purgeStatus;
@@ -61,11 +58,11 @@ public final class SnapshotDto extends Dto<Long> {
   private String period4Param;
   private String period5Param;
 
-  private Date period1Date;
-  private Date period2Date;
-  private Date period3Date;
-  private Date period4Date;
-  private Date period5Date;
+  private Long period1Date;
+  private Long period2Date;
+  private Long period3Date;
+  private Long period4Date;
+  private Long period5Date;
 
   public Long getId() {
     return id;
@@ -94,11 +91,11 @@ public final class SnapshotDto extends Dto<Long> {
     return this;
   }
 
-  public Date getBuildDate() {
+  public Long getBuildDate() {
     return buildDate;
   }
 
-  public SnapshotDto setBuildDate(Date buildDate) {
+  public SnapshotDto setBuildDate(Long buildDate) {
     this.buildDate = buildDate;
     return this;
   }
@@ -273,22 +270,22 @@ public final class SnapshotDto extends Dto<Long> {
     }
   }
 
-  public SnapshotDto setPeriodDate(int index, Date d) {
+  public SnapshotDto setPeriodDate(int index, Long date) {
     switch (index) {
       case 1:
-        period1Date = d;
+        period1Date = date;
         break;
       case 2:
-        period2Date = d;
+        period2Date = date;
         break;
       case 3:
-        period3Date = d;
+        period3Date = date;
         break;
       case 4:
-        period4Date = d;
+        period4Date = date;
         break;
       case 5:
-        period5Date = d;
+        period5Date = date;
         break;
       default:
         throw new IndexOutOfBoundsException(INDEX_SHOULD_BE_IN_RANGE_FROM_1_TO_5);
@@ -296,7 +293,7 @@ public final class SnapshotDto extends Dto<Long> {
     return this;
   }
 
-  public Date getPeriodDate(int periodIndex) {
+  public Long getPeriodDate(int periodIndex) {
     switch (periodIndex) {
       case 1:
         return period1Date;
@@ -313,21 +310,17 @@ public final class SnapshotDto extends Dto<Long> {
     }
   }
 
-  @Override
   public Long getKey() {
     return id;
   }
 
-  @Override
-  public SnapshotDto setCreatedAt(Date datetime) {
-    super.setCreatedAt(datetime);
+  public SnapshotDto setCreatedAt(Long createdAt) {
+    this.createdAt = createdAt;
     return this;
   }
 
-  @Override
-  public SnapshotDto setUpdatedAt(Date datetime) {
-    super.setUpdatedAt(datetime);
-    return this;
+  public Long getCreatedAt() {
+    return createdAt;
   }
 
   public Long getRootIdOrSelf() {
index 31e36878ec9a95000bf9275a96f8fa097b9303a5..865f3bc66bf7b0ba7475e32606ba467cf9a84dad 100644 (file)
@@ -24,8 +24,6 @@ import org.apache.ibatis.annotations.Param;
 import org.sonar.core.component.SnapshotDto;
 
 import javax.annotation.CheckForNull;
-
-import java.util.Date;
 import java.util.List;
 
 public interface SnapshotMapper {
@@ -33,13 +31,13 @@ public interface SnapshotMapper {
   @CheckForNull
   SnapshotDto selectByKey(long id);
 
-  void insert(SnapshotDto rule);
+  void insert(SnapshotDto snapshot);
 
   @CheckForNull
   SnapshotDto selectLastSnapshot(Long resourceId);
 
   @CheckForNull
-  SnapshotDto selectLastSnapshotOlderThan(@Param(value = "resource") Long resourceId, @Param(value = "createdAt") Date createdAtBefore);
+  SnapshotDto selectLastSnapshotOlderThan(@Param(value = "resource") Long resourceId, @Param(value = "createdAt") Long createdAtBefore);
 
   List<SnapshotDto> selectSnapshotAndChildrenOfScope(@Param(value = "snapshot") Long resourceId, @Param(value = "scope") String scope);
 
index e4ae4e1364dd0d8b77317003a6c97ad41daa6e99..6b07dd2255e787c9eace725561537e3be89fb857 100644 (file)
@@ -33,7 +33,7 @@ import java.util.List;
  */
 public class DatabaseVersion implements BatchComponent, ServerComponent {
 
-  public static final int LAST_VERSION = 774;
+  public static final int LAST_VERSION = 777;
 
   /**
    * List of all the tables.n
index f86b2e983b5b35b7bcf8b024c961b40047c34e1a..23acb6fa52a9a5aeb284b4453cd3deb130bc4c5b 100644 (file)
@@ -46,7 +46,8 @@ public class PurgeableSnapshotDto implements Comparable<PurgeableSnapshotDto> {
     return isLast;
   }
 
-  public PurgeableSnapshotDto setDate(Date date) {
+  public PurgeableSnapshotDto setDate(Long aLong) {
+    Date date = aLong == null ? null : new Date(aLong);
     this.date = date;
     return this;
   }
@@ -85,7 +86,7 @@ public class PurgeableSnapshotDto implements Comparable<PurgeableSnapshotDto> {
 
   @Override
   public int hashCode() {
-    return (int)snapshotId;
+    return (int) snapshotId;
   }
 
   @Override
index 5c7b90def56c806e701decdc6a79f62d2515210b..e37ceea87326262c79a30c713a747701e53271f9 100644 (file)
  */
 package org.sonar.core.timemachine;
 
-import org.sonar.api.batch.RequiresDB;
-
 import org.apache.commons.lang.StringUtils;
 import org.sonar.api.BatchComponent;
 import org.sonar.api.CoreProperties;
 import org.sonar.api.ServerComponent;
+import org.sonar.api.batch.RequiresDB;
 import org.sonar.api.config.Settings;
 import org.sonar.api.database.model.Snapshot;
 import org.sonar.api.i18n.I18n;
 
 import javax.annotation.CheckForNull;
 import javax.annotation.Nullable;
-
 import java.text.ParseException;
 import java.text.SimpleDateFormat;
 import java.util.Date;
 import java.util.Locale;
 
+import static org.sonar.api.utils.DateUtils.longToDate;
+
 @RequiresDB
 public class Periods implements BatchComponent, ServerComponent {
 
@@ -50,12 +50,12 @@ public class Periods implements BatchComponent, ServerComponent {
 
   @CheckForNull
   public String label(Snapshot snapshot, int periodIndex) {
-    return label(snapshot.getPeriodMode(periodIndex), snapshot.getPeriodModeParameter(periodIndex), snapshot.getPeriodDate(periodIndex));
+    return label(snapshot.getPeriodMode(periodIndex), snapshot.getPeriodModeParameter(periodIndex), longToDate(snapshot.getPeriodDate(periodIndex)));
   }
 
   @CheckForNull
   public String abbreviation(Snapshot snapshot, int periodIndex) {
-    return abbreviation(snapshot.getPeriodMode(periodIndex), snapshot.getPeriodModeParameter(periodIndex), snapshot.getPeriodDate(periodIndex));
+    return abbreviation(snapshot.getPeriodMode(periodIndex), snapshot.getPeriodModeParameter(periodIndex), longToDate(snapshot.getPeriodDate(periodIndex)));
   }
 
   @CheckForNull
index c0112194bcf1759a74e9a15790b876f5581be5e4..87b79d2b1044be60560348420e9793b93d3f77bf 100644 (file)
@@ -88,7 +88,7 @@
     where root_snapshot_id=#{root} or id=#{root} or (path like #{path} and root_snapshot_id=#{pathRootId})
   </update>
 
-  <insert id="insert" parameterType="Component" keyColumn="id" useGeneratedKeys="true" keyProperty="id">
+  <insert id="insert" parameterType="Snapshot" keyColumn="id" useGeneratedKeys="true" keyProperty="id">
     insert into snapshots
     <include refid="insertColumns"/>
     values (#{parentId}, #{rootId}, #{rootProjectId}, #{resourceId}, #{createdAt}, #{buildDate}, #{status},
index 0c3b77d2bcf2acad6de0739518ceb7f4cd1136d4..4a9a586cb1cdae8d1a0a2758e38a4294bdb2a48b 100644 (file)
@@ -303,6 +303,9 @@ INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('771');
 INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('772');
 INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('773');
 INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('774');
+INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('775');
+INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('776');
+INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('777');
 
 INSERT INTO USERS(ID, LOGIN, NAME, EMAIL, CRYPTED_PASSWORD, SALT, CREATED_AT, UPDATED_AT, REMEMBER_TOKEN, REMEMBER_TOKEN_EXPIRES_AT) VALUES (1, 'admin', 'Administrator', '', 'a373a0e667abb2604c1fd571eb4ad47fe8cc0878', '48bc4b0d93179b5103fd3885ea9119498e9d161b', '1418215735482', '1418215735482', null, null);
 ALTER TABLE USERS ALTER COLUMN ID RESTART WITH 2;
index d30b14e1a7882ba650973a1f1aaf5b37da00623d..06133faa16058bb89311f37ee4e702ce14738d46 100644 (file)
@@ -79,8 +79,8 @@ CREATE TABLE "GROUPS" (
 
 CREATE TABLE "SNAPSHOTS" (
   "ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
-  "CREATED_AT" TIMESTAMP,
-  "BUILD_DATE" TIMESTAMP,
+  "CREATED_AT" BIGINT,
+  "BUILD_DATE" BIGINT,
   "PROJECT_ID" INTEGER NOT NULL,
   "PARENT_SNAPSHOT_ID" INTEGER,
   "STATUS" VARCHAR(4) NOT NULL DEFAULT 'U',
@@ -95,19 +95,19 @@ CREATE TABLE "SNAPSHOTS" (
   "ROOT_PROJECT_ID" INTEGER,
   "PERIOD1_MODE" VARCHAR(100),
   "PERIOD1_PARAM" VARCHAR(100),
-  "PERIOD1_DATE" TIMESTAMP,
+  "PERIOD1_DATE" BIGINT,
   "PERIOD2_MODE" VARCHAR(100),
   "PERIOD2_PARAM" VARCHAR(100),
-  "PERIOD2_DATE" TIMESTAMP,
+  "PERIOD2_DATE" BIGINT,
   "PERIOD3_MODE" VARCHAR(100),
   "PERIOD3_PARAM" VARCHAR(100),
-  "PERIOD3_DATE" TIMESTAMP,
+  "PERIOD3_DATE" BIGINT,
   "PERIOD4_MODE" VARCHAR(100),
   "PERIOD4_PARAM" VARCHAR(100),
-  "PERIOD4_DATE" TIMESTAMP,
+  "PERIOD4_DATE" BIGINT,
   "PERIOD5_MODE" VARCHAR(100),
   "PERIOD5_PARAM" VARCHAR(100),
-  "PERIOD5_DATE" TIMESTAMP
+  "PERIOD5_DATE" BIGINT
 );
 
 CREATE TABLE "SCHEMA_MIGRATIONS" (
index 13ed081c220f5e595d29fddcad259506b962e4f2..4004701d1032931603e402faefe1cac483dbeaab 100644 (file)
@@ -21,9 +21,9 @@
 package org.sonar.core.component;
 
 import org.junit.Test;
-import org.sonar.api.utils.DateUtils;
 
 import static org.assertj.core.api.Assertions.assertThat;
+import static org.sonar.api.utils.DateUtils.parseDate;
 
 public class SnapshotDtoTest {
 
@@ -34,7 +34,7 @@ public class SnapshotDtoTest {
       .setParentId(2L)
       .setRootId(3L)
       .setRootProjectId(20L)
-      .setBuildDate(DateUtils.parseDate("2014-07-02"))
+      .setBuildDate(parseDate("2014-07-02").getTime())
       .setResourceId(21L)
       .setLast(true)
       .setScope("FIL")
@@ -52,18 +52,18 @@ public class SnapshotDtoTest {
       .setPeriodParam(3, "param3")
       .setPeriodParam(4, "param4")
       .setPeriodParam(5, "param5")
-      .setPeriodDate(1, DateUtils.parseDate("2014-06-01"))
-      .setPeriodDate(2, DateUtils.parseDate("2014-06-02"))
-      .setPeriodDate(3, DateUtils.parseDate("2014-06-03"))
-      .setPeriodDate(4, DateUtils.parseDate("2014-06-04"))
-      .setPeriodDate(5, DateUtils.parseDate("2014-06-05"));
+      .setPeriodDate(1, parseDate("2014-06-01").getTime())
+      .setPeriodDate(2, parseDate("2014-06-02").getTime())
+      .setPeriodDate(3, parseDate("2014-06-03").getTime())
+      .setPeriodDate(4, parseDate("2014-06-04").getTime())
+      .setPeriodDate(5, parseDate("2014-06-05").getTime());
 
     assertThat(snapshotDto.getId()).isEqualTo(10L);
     assertThat(snapshotDto.getKey()).isEqualTo(10L);
     assertThat(snapshotDto.getParentId()).isEqualTo(2L);
     assertThat(snapshotDto.getRootId()).isEqualTo(3L);
     assertThat(snapshotDto.getRootProjectId()).isEqualTo(20L);
-    assertThat(snapshotDto.getBuildDate()).isEqualTo(DateUtils.parseDate("2014-07-02"));
+    assertThat(snapshotDto.getBuildDate()).isEqualTo(parseDate("2014-07-02").getTime());
     assertThat(snapshotDto.getResourceId()).isEqualTo(21L);
     assertThat(snapshotDto.getLast()).isTrue();
     assertThat(snapshotDto.getScope()).isEqualTo("FIL");
@@ -81,11 +81,11 @@ public class SnapshotDtoTest {
     assertThat(snapshotDto.getPeriodModeParameter(3)).isEqualTo("param3");
     assertThat(snapshotDto.getPeriodModeParameter(4)).isEqualTo("param4");
     assertThat(snapshotDto.getPeriodModeParameter(5)).isEqualTo("param5");
-    assertThat(snapshotDto.getPeriodDate(1)).isEqualTo(DateUtils.parseDate("2014-06-01"));
-    assertThat(snapshotDto.getPeriodDate(2)).isEqualTo(DateUtils.parseDate("2014-06-02"));
-    assertThat(snapshotDto.getPeriodDate(3)).isEqualTo(DateUtils.parseDate("2014-06-03"));
-    assertThat(snapshotDto.getPeriodDate(4)).isEqualTo(DateUtils.parseDate("2014-06-04"));
-    assertThat(snapshotDto.getPeriodDate(5)).isEqualTo(DateUtils.parseDate("2014-06-05"));
+    assertThat(snapshotDto.getPeriodDate(1)).isEqualTo(parseDate("2014-06-01").getTime());
+    assertThat(snapshotDto.getPeriodDate(2)).isEqualTo(parseDate("2014-06-02").getTime());
+    assertThat(snapshotDto.getPeriodDate(3)).isEqualTo(parseDate("2014-06-03").getTime());
+    assertThat(snapshotDto.getPeriodDate(4)).isEqualTo(parseDate("2014-06-04").getTime());
+    assertThat(snapshotDto.getPeriodDate(5)).isEqualTo(parseDate("2014-06-05").getTime());
   }
 
   @Test
index 392e58c0f0b10c04e08173baa438a7741a43f7d5..0097b01a98c645fa34a01ed8f826f5540dc8b7ec 100644 (file)
@@ -31,14 +31,14 @@ public final class DbCleanerTestUtils {
   public static PurgeableSnapshotDto createSnapshotWithDate(long snapshotId, String date) {
     PurgeableSnapshotDto snapshot = new PurgeableSnapshotDto();
     snapshot.setSnapshotId(snapshotId);
-    snapshot.setDate(DateUtils.parseDate(date));
+    snapshot.setDate(DateUtils.parseDate(date).getTime());
     return snapshot;
   }
 
   public static PurgeableSnapshotDto createSnapshotWithDateTime(long snapshotId, String datetime) {
     PurgeableSnapshotDto snapshot = new PurgeableSnapshotDto();
     snapshot.setSnapshotId(snapshotId);
-    snapshot.setDate(DateUtils.parseDateTime(datetime));
+    snapshot.setDate(DateUtils.parseDateTime(datetime).getTime());
     return snapshot;
   }
 
index 759dac500afeaec4b6d8acd5106b8859b688499d..3ca99a4b6686fdb4ee0c49e0018a0d028d21b3c6 100644 (file)
@@ -27,6 +27,7 @@ import org.mockito.ArgumentMatcher;
 import org.mockito.invocation.InvocationOnMock;
 import org.mockito.stubbing.Answer;
 import org.sonar.api.config.Settings;
+import org.sonar.api.utils.System2;
 import org.sonar.core.persistence.DbSession;
 import org.sonar.core.persistence.MyBatis;
 import org.sonar.core.purge.PurgeDao;
@@ -34,15 +35,11 @@ import org.sonar.core.purge.PurgeSnapshotQuery;
 import org.sonar.core.purge.PurgeableSnapshotDto;
 
 import java.util.Arrays;
-import java.util.Date;
 
 import static org.mockito.Matchers.anyListOf;
 import static org.mockito.Matchers.argThat;
 import static org.mockito.Matchers.eq;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.*;
 
 public class DefaultPeriodCleanerTest {
 
@@ -51,7 +48,7 @@ public class DefaultPeriodCleanerTest {
     PurgeDao dao = mock(PurgeDao.class);
     DbSession session = mock(DbSession.class);
     when(dao.selectPurgeableSnapshots(123L, session)).thenReturn(Arrays.asList(
-      new PurgeableSnapshotDto().setSnapshotId(999L).setDate(new Date())));
+      new PurgeableSnapshotDto().setSnapshotId(999L).setDate(System2.INSTANCE.now())));
     Filter filter1 = newLazyFilter();
     Filter filter2 = newLazyFilter();
 
index e97cfa1d868b875deb464cad9029e2ba457aee66..ef6948a8c21650f11fd8399194f324e9f93d1a98 100644 (file)
@@ -430,11 +430,11 @@ public class ResourceDaoTest extends AbstractDaoTestCase {
 
     assertThat(snapshotDto.getPeriodMode(2)).isEqualTo("days");
     assertThat(snapshotDto.getPeriodModeParameter(2)).isEqualTo("30");
-    assertThat(snapshotDto.getPeriodDate(2)).isEqualTo(DateUtils.parseDate("2011-09-24"));
+    assertThat(snapshotDto.getPeriodDate(2)).isEqualTo(DateUtils.parseDate("2011-09-24").getTime());
 
     assertThat(snapshotDto.getPeriodMode(3)).isEqualTo("days");
     assertThat(snapshotDto.getPeriodModeParameter(3)).isEqualTo("90");
-    assertThat(snapshotDto.getPeriodDate(3)).isEqualTo(DateUtils.parseDate("2011-07-26"));
+    assertThat(snapshotDto.getPeriodDate(3)).isEqualTo(DateUtils.parseDate("2011-07-26").getTime());
 
     assertThat(snapshotDto.getPeriodMode(4)).isEqualTo("previous_analysis");
     assertThat(snapshotDto.getPeriodModeParameter(4)).isNull();
index b7fd67c71df0b8fa22ff38386100c11bb094dfff..527f4bbacddfa9f01db2473f447832dd761b782b 100644 (file)
@@ -25,8 +25,8 @@ import org.sonar.api.CoreProperties;
 import org.sonar.api.config.Settings;
 import org.sonar.api.database.model.Snapshot;
 import org.sonar.api.i18n.I18n;
+import org.sonar.api.utils.System2;
 
-import java.util.Date;
 import java.util.Locale;
 
 import static org.mockito.Matchers.any;
@@ -63,7 +63,7 @@ public class PeriodsTest {
   @Test
   public void label_of_duration_in_days() {
     when(snapshot.getPeriodMode(periodIndex)).thenReturn(CoreProperties.TIMEMACHINE_MODE_DAYS);
-    when(snapshot.getPeriodDate(periodIndex)).thenReturn(new Date());
+    when(snapshot.getPeriodDate(periodIndex)).thenReturn(System2.INSTANCE.now());
     when(snapshot.getPeriodModeParameter(periodIndex)).thenReturn(param);
 
     periods.label(snapshot, periodIndex);
@@ -73,7 +73,7 @@ public class PeriodsTest {
   @Test
   public void abbreviation_of_duration_in_days() {
     when(snapshot.getPeriodMode(periodIndex)).thenReturn(CoreProperties.TIMEMACHINE_MODE_DAYS);
-    when(snapshot.getPeriodDate(periodIndex)).thenReturn(new Date());
+    when(snapshot.getPeriodDate(periodIndex)).thenReturn(System.currentTimeMillis());
     when(snapshot.getPeriodModeParameter(periodIndex)).thenReturn(param);
 
     periods.abbreviation(snapshot, periodIndex);
@@ -83,7 +83,7 @@ public class PeriodsTest {
   @Test
   public void label_of_snapshot_version() {
     when(snapshot.getPeriodMode(periodIndex)).thenReturn(CoreProperties.TIMEMACHINE_MODE_VERSION);
-    when(snapshot.getPeriodDate(periodIndex)).thenReturn(new Date());
+    when(snapshot.getPeriodDate(periodIndex)).thenReturn(System.currentTimeMillis());
     when(snapshot.getPeriodModeParameter(periodIndex)).thenReturn(param);
 
     periods.label(snapshot, periodIndex);
@@ -93,7 +93,7 @@ public class PeriodsTest {
   @Test
   public void abbreviation_of_snapshot_version() {
     when(snapshot.getPeriodMode(periodIndex)).thenReturn(CoreProperties.TIMEMACHINE_MODE_VERSION);
-    when(snapshot.getPeriodDate(periodIndex)).thenReturn(new Date());
+    when(snapshot.getPeriodDate(periodIndex)).thenReturn(System.currentTimeMillis());
     when(snapshot.getPeriodModeParameter(periodIndex)).thenReturn(param);
 
     periods.abbreviation(snapshot, periodIndex);
@@ -103,7 +103,7 @@ public class PeriodsTest {
   @Test
   public void label_of_previous_analysis_with_date() {
     when(snapshot.getPeriodMode(periodIndex)).thenReturn(CoreProperties.TIMEMACHINE_MODE_PREVIOUS_ANALYSIS);
-    when(snapshot.getPeriodDate(periodIndex)).thenReturn(new Date());
+    when(snapshot.getPeriodDate(periodIndex)).thenReturn(System.currentTimeMillis());
 
     periods.label(snapshot, periodIndex);
     verify(i18n).message(any(Locale.class), eq("since_previous_analysis_detailed"), isNull(String.class), anyString());
@@ -122,7 +122,7 @@ public class PeriodsTest {
   @Test
   public void abbreviation_of_previous_analysis_with_date() {
     when(snapshot.getPeriodMode(periodIndex)).thenReturn(CoreProperties.TIMEMACHINE_MODE_PREVIOUS_ANALYSIS);
-    when(snapshot.getPeriodDate(periodIndex)).thenReturn(new Date());
+    when(snapshot.getPeriodDate(periodIndex)).thenReturn(System.currentTimeMillis());
 
     periods.abbreviation(snapshot, periodIndex);
     verify(i18n).message(any(Locale.class), eq("since_previous_analysis_detailed.short"), isNull(String.class), anyString());
@@ -151,7 +151,7 @@ public class PeriodsTest {
   public void label_of_previous_version_with_param_and_date() {
     when(snapshot.getPeriodMode(periodIndex)).thenReturn(CoreProperties.TIMEMACHINE_MODE_PREVIOUS_VERSION);
     when(snapshot.getPeriodModeParameter(periodIndex)).thenReturn(param);
-    when(snapshot.getPeriodDate(periodIndex)).thenReturn(new Date());
+    when(snapshot.getPeriodDate(periodIndex)).thenReturn(System.currentTimeMillis());
 
     periods.label(snapshot, periodIndex);
     verify(i18n).message(any(Locale.class), eq("since_previous_version_detailed"), isNull(String.class), eq(param), anyString());
@@ -169,7 +169,7 @@ public class PeriodsTest {
   @Test
   public void shouldReturnSnapshotLabelInModeDate() {
     when(snapshot.getPeriodMode(periodIndex)).thenReturn(CoreProperties.TIMEMACHINE_MODE_DATE);
-    when(snapshot.getPeriodDate(periodIndex)).thenReturn(new Date());
+    when(snapshot.getPeriodDate(periodIndex)).thenReturn(System.currentTimeMillis());
 
     periods.label(snapshot, periodIndex);
 
index 13aee7d5de49c93abf872c166bb6d3084039c690..060dbfb065b83eab316d571b6aaab95fe3a518ba 100644 (file)
@@ -17,7 +17,7 @@
              period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]"
              period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]"
              period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             created_at="2013-01-25 02:04:06.00" build_date="2013-01-25 02:04:06.00"
+             created_at="1359075846000" build_date="1359075846000"
              version="1.0" status="P" islast="[true]"/>
 
   <project_measures id="1" value="10" metric_id="1" snapshot_id="1000" />
index e7d9267148904a1c39946145c8b6adfa2e3f7961..8912afe10d4330e5dd17162884ba67b7262d4b3d 100644 (file)
@@ -11,8 +11,8 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000"
              version="[null]" path="[null]"/>
 
   <events id="1" name="Version 1.0" resource_id="1" snapshot_id="1" category="VERSION" description="[null]"
index 0cbd194c972b93db167e7f2404575a5710bc600f..3bac29d413a18a5542e6f9417115df71fbfb33a4 100644 (file)
@@ -7,7 +7,7 @@
              period3_date="[null]" period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
              depth="[null]"
-             scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000"
              version="[null]"
              project_id="1"
              parent_snapshot_id="[null]" root_project_id="[null]" root_snapshot_id="[null]" status="P" islast="[false]"
index 972a17da0ebc94e3735f293c87e23de6ff721ef4..8fd273d1c0813efe525f64c1e7e4e11eb119e93c 100644 (file)
@@ -8,8 +8,8 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000"
              version="[null]" path="[null]"/>
 
   <project_measures ID="1" characteristic_id="[null]" url="[null]" variation_value_1="[null]" variation_value_2="[null]"
@@ -38,8 +38,8 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000"
              version="[null]" path="[null]"/>
 
   <project_measures ID="2" characteristic_id="[null]" url="[null]" variation_value_1="[null]" variation_value_2="[null]"
index 1234157d512a7b98fd45668a7fb0c914316deb83..c59e34d5c8b747dcd7e95cd81d831a7345bd1f8f 100644 (file)
@@ -22,8 +22,8 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- do not delete standard measure -->
   <project_measures id="1" project_id="1" snapshot_id="1" rule_id="[null]" characteristic_id="[null]" metric_id="1"
index cb1197cc1eba98a92e066fe38335e7687053ed72..d4931b9a3430d5035b8c0e82a3efcecbb4e2a6c1 100644 (file)
@@ -22,8 +22,8 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- do not delete standard measure -->
   <project_measures id="1" project_id="1" snapshot_id="1" rule_id="[null]" characteristic_id="[null]" metric_id="1"
index b7e8e2ecc67032ffe247a74124c6998db86b3308..bcd5544b9f6a9b4afddf952a47c7f24ab5599e85 100644 (file)
@@ -16,8 +16,8 @@ Note that measures, events and reviews are not deleted.
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!--switched_off="[null]" permanent_id="[null]" RULE_ID="1" FAILURE_LEVEL="2"-->
   <!--MESSAGE="msg1" LINE="[null]" COST="[null]"-->
@@ -59,8 +59,8 @@ Note that measures, events and reviews are not deleted.
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000" version="[null]" path="[null]"/>
 
 
   <project_measures ID="2" project_id="2" SNAPSHOT_ID="2" RULE_ID="[null]" characteristic_id="[null]"
index 2eac727f667045c6dbbc60d07b508decf234d46e..5a576b3edf8e75d0bb9030935a11a73952529ba7 100644 (file)
@@ -8,8 +8,8 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000" version="[null]" path="[null]"/>
 
   <project_measures ID="1" project_id="1" SNAPSHOT_ID="1" RULE_ID="[null]" characteristic_id="[null]"
                     url="[null]" variation_value_1="[null]" variation_value_2="[null]" variation_value_3="[null]"
@@ -44,8 +44,8 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000" version="[null]" path="[null]"/>
 
   <project_measures ID="2" project_id="2" SNAPSHOT_ID="2" RULE_ID="[null]" characteristic_id="[null]"
                     url="[null]" variation_value_1="[null]" variation_value_2="[null]" variation_value_3="[null]"
index d8a11480abef53676771d6cb99b9ee8f42a014ab..fa5e4a7828d33b20245bb472614ac50ac9b33299 100644 (file)
@@ -35,8 +35,8 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000" version="[null]" path="[null]"/>
 
   <snapshots id="2"
              project_id="2" parent_snapshot_id="1" root_project_id="1" root_snapshot_id="1"
@@ -46,8 +46,8 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000" version="[null]" path="[null]"/>
 
   <snapshots id="3"
              project_id="3" parent_snapshot_id="2" root_project_id="1" root_snapshot_id="1"
@@ -57,8 +57,8 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- isLast is true, don't want to delete associated source lines -->
   <snapshots id="4"
@@ -69,8 +69,8 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000" version="[null]" path="[null]"/>
 
   <file_sources id="1" project_uuid="ABCD" file_uuid="GHIJ" data="[null]" line_hashes="[null]" data_hash="321654987"
                 created_at="123456789" updated_at="123456789" src_hash="12345"/>
index d086991945aff362395b71efbe357b34b1ecf7cc..b996557dd58c3d008b3bb32708900ef60a4a3cd0 100644 (file)
@@ -37,8 +37,8 @@ What has been changed :
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000" version="[null]" path="[null]"/>
 
   <snapshots id="2"
              project_id="2" parent_snapshot_id="1" root_project_id="1" root_snapshot_id="1"
@@ -48,8 +48,8 @@ What has been changed :
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000" version="[null]" path="[null]"/>
 
 
   <snapshots id="3"
@@ -60,8 +60,8 @@ What has been changed :
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- Open issue on file -->
   <issues id="1" kee="ISSUE-1"
index b99d22d0a1b43a492d695d2e62ccaf15e73ec7d2..ef2dd1725ec3e6f721fa104504b60f54c3d62a86 100644 (file)
@@ -23,7 +23,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <snapshots id="2"
              project_id="2" parent_snapshot_id="1" root_project_id="1" root_snapshot_id="1"
@@ -33,7 +33,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
 
   <snapshots id="3"
@@ -44,7 +44,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- Open issue on file -->
   <issues id="1" kee="ISSUE-1"
index 449292b40d34b5ca3167506c0f5547f1042641f7..cfc39014c9ddf05d1cf7ee3fee986dc195b39ade 100644 (file)
@@ -42,8 +42,8 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000" version="[null]" path="[null]"/>
 
   <snapshots id="2"
              project_id="2" parent_snapshot_id="1" root_project_id="1" root_snapshot_id="1"
@@ -53,8 +53,8 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- isLast is false -->
   <snapshots id="3"
@@ -65,8 +65,8 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000" version="[null]" path="[null]"/>
 
   <snapshots id="4"
              project_id="4" parent_snapshot_id="2" root_project_id="1" root_snapshot_id="1"
@@ -76,8 +76,8 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000" version="[null]" path="[null]"/>
 
   <file_sources id="1" project_uuid="ABCD" file_uuid="GHIJ" data="[null]" line_hashes="[null]" data_hash="321654987"
                 created_at="123456789" updated_at="123456789"/>
index 62cff84cd84321e2425b50e1c30568d2c6439b98..346e3d61b941243cfead0f868faeee3974518da8 100644 (file)
@@ -19,7 +19,7 @@ Snapshot 2 has been deleted
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- snapshot with status "unprocessed" -> to be deleted -->
   <!--<snapshots id="2"-->
@@ -30,7 +30,7 @@ Snapshot 2 has been deleted
              <!--period3_mode="[null]" period3_param="[null]" period3_date="[null]"-->
              <!--period4_mode="[null]" period4_param="[null]" period4_date="[null]"-->
              <!--period5_mode="[null]" period5_param="[null]" period5_date="[null]"-->
-             <!--depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>-->
+             <!--depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>-->
 
   <!-- snapshot with status "processed" and flagged as "last" -> do not purge and do not delete -->
   <snapshots id="3"
@@ -41,6 +41,6 @@ Snapshot 2 has been deleted
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
 </dataset>
index 5c9aeaa6580bae1e4fe5b247d371353c9dd71037..ef09ea6795d5228637b2e3b7bf1598ae75aa3dc1 100644 (file)
@@ -14,7 +14,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- snapshot with status "unprocessed" -> to be deleted -->
   <snapshots id="2"
@@ -25,7 +25,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- snapshot with status "processed" and flagged as "last" -> do not purge and do not delete -->
   <snapshots id="3"
@@ -36,6 +36,6 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
 </dataset>
index 2eb2c7033bc0fc5e26e31512a367aaea1f6facb3..3ae58b4fe940e6490f81d35636ffa4264c1cc32d 100644 (file)
@@ -30,7 +30,7 @@ What has been changed : purge_status=1 on snapshot 4 (PRJ) and snapshots 5 and 6
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <snapshots id="2"
              project_id="2" parent_snapshot_id="1" root_project_id="1" root_snapshot_id="1"
@@ -40,7 +40,7 @@ What has been changed : purge_status=1 on snapshot 4 (PRJ) and snapshots 5 and 6
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="DIR" qualifier="DIR" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="DIR" qualifier="DIR" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
 
   <snapshots id="3"
@@ -51,7 +51,7 @@ What has been changed : purge_status=1 on snapshot 4 (PRJ) and snapshots 5 and 6
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="FIL" qualifier="FIL" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="FIL" qualifier="FIL" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- snapshots to be purged -->
   <snapshots id="4"
@@ -62,7 +62,7 @@ What has been changed : purge_status=1 on snapshot 4 (PRJ) and snapshots 5 and 6
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!--<snapshots id="5"-->
              <!--project_id="2" parent_snapshot_id="4" root_project_id="1" root_snapshot_id="4"-->
@@ -72,7 +72,7 @@ What has been changed : purge_status=1 on snapshot 4 (PRJ) and snapshots 5 and 6
              <!--period3_mode="[null]" period3_param="[null]" period3_date="[null]"-->
              <!--period4_mode="[null]" period4_param="[null]" period4_date="[null]"-->
              <!--period5_mode="[null]" period5_param="[null]" period5_date="[null]"-->
-             <!--depth="[null]" scope="DIR" qualifier="DIR" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>-->
+             <!--depth="[null]" scope="DIR" qualifier="DIR" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>-->
 
 
   <!--<snapshots id="6"-->
@@ -83,6 +83,6 @@ What has been changed : purge_status=1 on snapshot 4 (PRJ) and snapshots 5 and 6
              <!--period3_mode="[null]" period3_param="[null]" period3_date="[null]"-->
              <!--period4_mode="[null]" period4_param="[null]" period4_date="[null]"-->
              <!--period5_mode="[null]" period5_param="[null]" period5_date="[null]"-->
-             <!--depth="[null]" scope="FIL" qualifier="FIL" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>-->
+             <!--depth="[null]" scope="FIL" qualifier="FIL" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>-->
 
 </dataset>
index 87fcbb6f98a983df5b267e0f62817cd7d30e8329..b3449c545fe1de6c92ab1fc8e1ee0af2a11db5ee 100644 (file)
@@ -24,7 +24,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <snapshots id="2"
              project_id="2" parent_snapshot_id="1" root_project_id="1" root_snapshot_id="1"
@@ -34,7 +34,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="DIR" qualifier="DIR" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="DIR" qualifier="DIR" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
 
   <snapshots id="3"
@@ -45,7 +45,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="FIL" qualifier="FIL" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="FIL" qualifier="FIL" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- snapshots to be purged -->
   <snapshots id="4"
@@ -56,7 +56,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <snapshots id="5"
              project_id="2" parent_snapshot_id="4" root_project_id="1" root_snapshot_id="4"
@@ -66,7 +66,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="DIR" qualifier="DIR" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="DIR" qualifier="DIR" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
 
   <snapshots id="6"
@@ -77,6 +77,6 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="FIL" qualifier="FIL" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="FIL" qualifier="FIL" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
 </dataset>
index a356e56fcf4c61eaee13469cb68657a87ed00962..3d6f4e670098ccd34df8e1df8e8a0844a96d8cf0 100644 (file)
@@ -14,8 +14,8 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000"
              version="[null]" path="[null]"/>
 
   <action_plans id="1" kee="ABCD" project_id="1" name="SHORT_TERM" description="[null]" deadline="[null]"
@@ -64,8 +64,8 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="BRC" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="BRC" created_at="1228222680000"
+             build_date="1228222680000"
              version="[null]" path="[null]"/>
 
 
@@ -82,8 +82,8 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="BRC" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="BRC" created_at="1228222680000"
+             build_date="1228222680000"
              version="[null]" path="[null]"/>
 
   <!-- file of module 2-->
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="FIL" qualifier="FIL" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="FIL" qualifier="FIL" created_at="1228222680000"
+             build_date="1228222680000"
              version="[null]" path="[null]"/>
   <file_sources id="1" project_uuid="A" file_uuid="D" data="[null]" line_hashes="[null]" data_hash="321654987"
                 created_at="123456789" updated_at="123456789"/>
index 60a2a3878a8d6ea55f7ecde45e5b2da9425fc264..50d28695d3f060888d71a1a6fcd288332ce81f22 100644 (file)
@@ -9,7 +9,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- delete only resource 1 -->
   <snapshots id="2"
@@ -20,7 +20,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- to be deleted -->
   <!--<snapshots id="3"
@@ -31,5 +31,5 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>-->
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>-->
 </dataset>
\ No newline at end of file
index cc7f1c6319aef6e99a1a8ec8d5656ec9b58c20d7..d5ff7433484f8375111d1f2d4f81cea5b39f6c68 100644 (file)
@@ -9,7 +9,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- delete only resource 1 -->
   <snapshots id="2"
@@ -20,7 +20,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- to be deleted -->
   <snapshots id="3"
@@ -31,5 +31,5 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
-</dataset>
\ No newline at end of file
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
+</dataset>
index f79043727a5482fc4b7685d057d31201b337ca9d..aca3885c1db4cb23d01c92c44bde135913913327 100644 (file)
@@ -16,7 +16,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
 
   <!-- do not purge snapshot with islast=true-->
@@ -28,7 +28,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- snapshot to be purged -->
   <snapshots id="3"
@@ -39,6 +39,6 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
 </dataset>
index c6f3169fec1eaa5e8db4b9614c60d2ee099d5271..bbc7fb8b041c6a21d745b0cc5db5b8ee2783f627 100644 (file)
@@ -16,7 +16,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
 
   <!-- do not purge snapshot with islast=true-->
@@ -28,7 +28,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- snapshot to be purged -->
   <snapshots id="3"
@@ -39,6 +39,6 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
 </dataset>
index bd873bcdc5791c5e1139c951a0b1394faa68521d..f3a3b9bd0b33e47d3714f63ccab5975f09059133 100644 (file)
@@ -9,7 +9,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- not processed -> exclude -->
   <snapshots id="2"
@@ -20,7 +20,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- on other resource -> exclude -->
   <snapshots id="3"
@@ -31,7 +31,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- without event -> select -->
   <snapshots id="4"
@@ -42,7 +42,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- with event -> select -->
   <snapshots id="5"
@@ -53,7 +53,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <events id="2" resource_id="1" snapshot_id="5"
           category="Version" description="[null]" name="Version 1.0" event_date="2008-12-02 13:58:00.00" created_at="[null]"
index f95c7fcd934eb2d20fce7bcb56b778f071ea0a6c..5f51cd5e54b69839b9067c2764505e2acb9c5215 100644 (file)
@@ -18,8 +18,8 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000" version="[null]" path="[null]"/>
 
 
   <!-- old closed issues on file and project -->
index 7a35c7132e9d1aa76a3de2cc939f43ada51bca3b..38c9c3ec360e12e03ad2616c41f967fff073c3d7 100644 (file)
@@ -13,8 +13,8 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000" version="[null]" path="[null]"/>
 
 
   <!-- old closed issues on file and project -->
index 86284fe0b2a0473496354358fc01618d0893a885..1095715f65f1894fb078f72f9fc13f523d7d4b26 100644 (file)
@@ -12,7 +12,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- old closed issues on file and project -> to be purged -->
   <!--
index f85107748fb267bd64b2526e82f0fcbdc859091f..eb9fc8960c5d35b23fbf7cfb402922612612beaf 100644 (file)
@@ -13,8 +13,8 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00"
-             build_date="2008-12-02 13:58:00.00" version="[null]" path="[null]"/>
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000"
+             build_date="1228222680000" version="[null]" path="[null]"/>
 
   <!-- old closed issues on file and project -> to be purged -->
   <issues id="1" kee="ISSUE-1"
index d44370b55de42628fd0a113aa54a629bcdf8d52a..df485aa2d32ff8b7911f09d3568f5e348b50c832 100644 (file)
@@ -12,7 +12,7 @@
                period3_mode="[null]" period3_param="[null]" period3_date="[null]"
                period4_mode="[null]" period4_param="[null]" period4_date="[null]"
                period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-               depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+               depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000"
                version="[null]" path=""/>
   <snapshots id="10" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
              status="P" islast="[false]" purge_status="[null]"
@@ -21,7 +21,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-01 13:58:00.00" build_date="2008-12-01 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228136280000" build_date="1228136280000"
              version="[null]" path=""/>
 
   <!-- project -->
@@ -36,7 +36,7 @@
                period3_mode="[null]" period3_param="[null]" period3_date="[null]"
                period4_mode="[null]" period4_param="[null]" period4_date="[null]"
                period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-               depth="[null]" scope="PRJ" qualifier="BRC" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+               depth="[null]" scope="PRJ" qualifier="BRC" created_at="1228222680000" build_date="1228222680000"
                version="[null]" path="1."/>
 
   <!-- directory -->
@@ -52,7 +52,7 @@
                period3_mode="[null]" period3_param="[null]" period3_date="[null]"
                period4_mode="[null]" period4_param="[null]" period4_date="[null]"
                period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-               depth="[null]" scope="DIR" qualifier="PAC" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+               depth="[null]" scope="DIR" qualifier="PAC" created_at="1228222680000" build_date="1228222680000"
                version="[null]" path="1.2."/>
 
   <!-- file -->
@@ -69,7 +69,7 @@
                period3_mode="[null]" period3_param="[null]" period3_date="[null]"
                period4_mode="[null]" period4_param="[null]" period4_date="[null]"
                period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-               depth="[null]" scope="FIL" qualifier="CLA" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+               depth="[null]" scope="FIL" qualifier="CLA" created_at="1228222680000" build_date="1228222680000"
                version="[null]" path="1.2.3."/>
 
   <!-- technical project -->
@@ -90,7 +90,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
   <snapshots id="7" project_id="6" parent_snapshot_id="6" root_project_id="6" root_snapshot_id="6"
              status="U" islast="[false]" purge_status="[null]"
@@ -99,7 +99,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-03 13:58:00.00" build_date="2008-12-03 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228309080000" build_date="1228309080000"
              version="[null]" path=""/>
 
 
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000"
              version="[null]" path=""/>
 
 
index f54bf533dcd4df472bd7c7a01dc2398891a29955..a28333eaa91a00ae03ac96cdb57b9c6dd56e8ac9 100644 (file)
@@ -17,7 +17,7 @@
                period3_mode="[null]" period3_param="[null]" period3_date="[null]"
                period4_mode="[null]" period4_param="[null]" period4_date="[null]"
                period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-               depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+               depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000"
                version="[null]" path=""/>
   <snapshots id="10" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
              status="P" islast="[false]" purge_status="[null]"
@@ -26,7 +26,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-01 13:58:00.00" build_date="2008-12-01 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228136280000" build_date="1228136280000"
              version="[null]" path=""/>
 
   <!-- module -->
@@ -42,7 +42,7 @@
                period3_mode="[null]" period3_param="[null]" period3_date="[null]"
                period4_mode="[null]" period4_param="[null]" period4_date="[null]"
                period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-               depth="[null]" scope="PRJ" qualifier="BRC" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+               depth="[null]" scope="PRJ" qualifier="BRC" created_at="1228222680000" build_date="1228222680000"
                version="[null]" path="1."/>
 
   <!-- directory -->
@@ -59,7 +59,7 @@
                period3_mode="[null]" period3_param="[null]" period3_date="[null]"
                period4_mode="[null]" period4_param="[null]" period4_date="[null]"
                period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-               depth="[null]" scope="DIR" qualifier="PAC" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+               depth="[null]" scope="DIR" qualifier="PAC" created_at="1228222680000" build_date="1228222680000"
                version="[null]" path="1.2."/>
 
   <!-- file -->
@@ -77,7 +77,7 @@
                period3_mode="[null]" period3_param="[null]" period3_date="[null]"
                period4_mode="[null]" period4_param="[null]" period4_date="[null]"
                period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-               depth="[null]" scope="FIL" qualifier="CLA" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+               depth="[null]" scope="FIL" qualifier="CLA" created_at="1228222680000" build_date="1228222680000"
                version="[null]" path="1.2.3."/>
 
 
index f62fdee69b5bb54592f823f1d187b006584eaa38..5ffea4fe62e681732fb76c9358dea5b1c88450b6 100644 (file)
   <snapshots id="1" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
                status="P" islast="[true]" purge_status="[null]"
                period1_mode="previous_analysis" period1_param="[null]" period1_date="[null]"
-               period2_mode="days" period2_param="30" period2_date="2011-09-24"
-               period3_mode="days" period3_param="90" period3_date="2011-07-26"
+               period2_mode="days" period2_param="30" period2_date="1316815200000"
+               period3_mode="days" period3_param="90" period3_date="1311631200000"
                period4_mode="previous_analysis" period4_param="[null]" period4_date="[null]"
                period5_mode="previous_version" period5_param="[null]" period5_date="[null]"
-               depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+               depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228222680000" build_date="1228222680000"
                version="[null]" path=""/>
   <snapshots id="10" project_id="1" parent_snapshot_id="[null]" root_project_id="1" root_snapshot_id="[null]"
              status="P" islast="[false]" purge_status="[null]"
@@ -25,7 +25,7 @@
              period3_mode="[null]" period3_param="[null]" period3_date="[null]"
              period4_mode="[null]" period4_param="[null]" period4_date="[null]"
              period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-             depth="[null]" scope="PRJ" qualifier="TRK" created_at="2008-12-01 13:58:00.00" build_date="2008-12-01 13:58:00.00"
+             depth="[null]" scope="PRJ" qualifier="TRK" created_at="1228136280000" build_date="1228136280000"
              version="[null]" path=""/>
 
   <!-- module -->
@@ -40,7 +40,7 @@
                period3_mode="[null]" period3_param="[null]" period3_date="[null]"
                period4_mode="[null]" period4_param="[null]" period4_date="[null]"
                period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-               depth="[null]" scope="PRJ" qualifier="BRC" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+               depth="[null]" scope="PRJ" qualifier="BRC" created_at="1228222680000" build_date="1228222680000"
                version="[null]" path="1."/>
 
   <!-- directory -->
@@ -56,7 +56,7 @@
                period3_mode="[null]" period3_param="[null]" period3_date="[null]"
                period4_mode="[null]" period4_param="[null]" period4_date="[null]"
                period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-               depth="[null]" scope="DIR" qualifier="PAC" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+               depth="[null]" scope="DIR" qualifier="PAC" created_at="1228222680000" build_date="1228222680000"
                version="[null]" path="1.2."/>
 
   <!-- file -->
@@ -73,7 +73,7 @@
                period3_mode="[null]" period3_param="[null]" period3_date="[null]"
                period4_mode="[null]" period4_param="[null]" period4_date="[null]"
                period5_mode="[null]" period5_param="[null]" period5_date="[null]"
-               depth="[null]" scope="FIL" qualifier="CLA" created_at="2008-12-02 13:58:00.00" build_date="2008-12-02 13:58:00.00"
+               depth="[null]" scope="FIL" qualifier="CLA" created_at="1228222680000" build_date="1228222680000"
                version="[null]" path="1.2.3."/>
 
 
index edafda1b3c8819c17722533ca0470c5677d4c89d..406161ed75891ff746e33b5f35ad46cf96e6d729 100644 (file)
@@ -23,13 +23,7 @@ import org.apache.commons.lang.builder.ToStringBuilder;
 import org.sonar.api.database.BaseIdentifiable;
 import org.sonar.api.database.model.Snapshot;
 
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.FetchType;
-import javax.persistence.JoinColumn;
-import javax.persistence.ManyToOne;
-import javax.persistence.Table;
-
+import javax.persistence.*;
 import java.util.Date;
 
 /**
@@ -131,7 +125,7 @@ public class Event extends BaseIdentifiable {
   public final void setSnapshot(Snapshot snapshot) {
     this.snapshot = snapshot;
     if (snapshot != null) {
-      this.date = snapshot.getCreatedAt();
+      this.date = (snapshot.getCreatedAt() == null ? null : new Date(snapshot.getCreatedAt()));
       this.resourceId = snapshot.getResourceId();
     }
   }
index 0912b7d6675c70aadd1fa5edc29a4867c37762c9..347690a8a21122db54db3a5ad4a88e411d9c1bfd 100644 (file)
@@ -29,9 +29,6 @@ import org.sonar.api.database.DatabaseSession;
 import javax.persistence.Column;
 import javax.persistence.Entity;
 import javax.persistence.Table;
-import javax.persistence.Temporal;
-import javax.persistence.TemporalType;
-
 import java.io.Serializable;
 import java.util.Date;
 
@@ -55,13 +52,11 @@ public class Snapshot extends BaseIdentifiable<Snapshot> implements Serializable
   @Column(name = "project_id", updatable = true, nullable = true)
   private Integer resourceId;
 
-  @Temporal(TemporalType.TIMESTAMP)
   @Column(name = "build_date", updatable = true, nullable = true)
-  private Date buildDate;
+  private Long buildDate;
 
-  @Temporal(TemporalType.TIMESTAMP)
   @Column(name = "created_at", updatable = true, nullable = true)
-  private Date createdAt;
+  private Long createdAt;
 
   @Column(name = "version", updatable = true, nullable = true, length = 500)
   private String version;
@@ -127,19 +122,19 @@ public class Snapshot extends BaseIdentifiable<Snapshot> implements Serializable
   private String period5Param;
 
   @Column(name = "period1_date", updatable = true, nullable = true)
-  private Date period1Date;
+  private Long period1Date;
 
   @Column(name = "period2_date", updatable = true, nullable = true)
-  private Date period2Date;
+  private Long period2Date;
 
   @Column(name = "period3_date", updatable = true, nullable = true)
-  private Date period3Date;
+  private Long period3Date;
 
   @Column(name = "period4_date", updatable = true, nullable = true)
-  private Date period4Date;
+  private Long period4Date;
 
   @Column(name = "period5_date", updatable = true, nullable = true)
-  private Date period5Date;
+  private Long period5Date;
 
   public Snapshot() {
 
@@ -153,7 +148,7 @@ public class Snapshot extends BaseIdentifiable<Snapshot> implements Serializable
     if (parent == null) {
       path = "";
       depth = 0;
-      this.createdAt = new Date();
+      this.createdAt = System.currentTimeMillis();
 
     } else {
       this.parentId = parent.getId();
@@ -188,7 +183,7 @@ public class Snapshot extends BaseIdentifiable<Snapshot> implements Serializable
     setResource(resource);
     this.status = status;
     this.last = last;
-    this.createdAt = date;
+    this.createdAt = date.getTime();
   }
 
   /**
@@ -196,7 +191,7 @@ public class Snapshot extends BaseIdentifiable<Snapshot> implements Serializable
    *
    * @since 2.14
    */
-  public Date getBuildDate() {
+  public Long getBuildDate() {
     return buildDate;
   }
 
@@ -205,16 +200,16 @@ public class Snapshot extends BaseIdentifiable<Snapshot> implements Serializable
    *
    * @since 2.14
    */
-  public Snapshot setBuildDate(Date d) {
+  public Snapshot setBuildDate(Long d) {
     this.buildDate = d;
     return this;
   }
 
-  public Date getCreatedAt() {
+  public Long getCreatedAt() {
     return createdAt;
   }
 
-  public Snapshot setCreatedAt(Date createdAt) {
+  public Snapshot setCreatedAt(Long createdAt) {
     this.createdAt = createdAt;
     return this;
   }
@@ -279,8 +274,8 @@ public class Snapshot extends BaseIdentifiable<Snapshot> implements Serializable
   }
 
   /**
-     * @since 2.14
-     */
+   * @since 2.14
+   */
   public Snapshot setPurgeStatus(Integer i) {
     this.purgeStatus = i;
     return this;
@@ -487,7 +482,7 @@ public class Snapshot extends BaseIdentifiable<Snapshot> implements Serializable
     return this;
   }
 
-  public Date getPeriod1Date() {
+  public Long getPeriod1Date() {
     return period1Date;
   }
 
@@ -496,12 +491,12 @@ public class Snapshot extends BaseIdentifiable<Snapshot> implements Serializable
    *
    * @since 2.5
    */
-  public Snapshot setPeriod1Date(Date period1Date) {
+  public Snapshot setPeriod1Date(Long period1Date) {
     this.period1Date = period1Date;
     return this;
   }
 
-  public Date getPeriod2Date() {
+  public Long getPeriod2Date() {
     return period2Date;
   }
 
@@ -510,12 +505,12 @@ public class Snapshot extends BaseIdentifiable<Snapshot> implements Serializable
    *
    * @since 2.5
    */
-  public Snapshot setPeriod2Date(Date period2Date) {
+  public Snapshot setPeriod2Date(Long period2Date) {
     this.period2Date = period2Date;
     return this;
   }
 
-  public Date getPeriod3Date() {
+  public Long getPeriod3Date() {
     return period3Date;
   }
 
@@ -524,12 +519,12 @@ public class Snapshot extends BaseIdentifiable<Snapshot> implements Serializable
    *
    * @since 2.5
    */
-  public Snapshot setPeriod3Date(Date period3Date) {
+  public Snapshot setPeriod3Date(Long period3Date) {
     this.period3Date = period3Date;
     return this;
   }
 
-  public Date getPeriod4Date() {
+  public Long getPeriod4Date() {
     return period4Date;
   }
 
@@ -538,12 +533,12 @@ public class Snapshot extends BaseIdentifiable<Snapshot> implements Serializable
    *
    * @since 2.5
    */
-  public Snapshot setPeriod4Date(Date period4Date) {
+  public Snapshot setPeriod4Date(Long period4Date) {
     this.period4Date = period4Date;
     return this;
   }
 
-  public Date getPeriod5Date() {
+  public Long getPeriod5Date() {
     return period5Date;
   }
 
@@ -552,7 +547,7 @@ public class Snapshot extends BaseIdentifiable<Snapshot> implements Serializable
    *
    * @since 2.5
    */
-  public Snapshot setPeriod5Date(Date period5Date) {
+  public Snapshot setPeriod5Date(Long period5Date) {
     this.period5Date = period5Date;
     return this;
   }
@@ -652,22 +647,22 @@ public class Snapshot extends BaseIdentifiable<Snapshot> implements Serializable
    *
    * @since 2.5
    */
-  public Snapshot setPeriodDate(int periodIndex, Date d) {
+  public Snapshot setPeriodDate(int periodIndex, Long date) {
     switch (periodIndex) {
       case 1:
-        period1Date = d;
+        period1Date = date;
         break;
       case 2:
-        period2Date = d;
+        period2Date = date;
         break;
       case 3:
-        period3Date = d;
+        period3Date = date;
         break;
       case 4:
-        period4Date = d;
+        period4Date = date;
         break;
       case 5:
-        period5Date = d;
+        period5Date = date;
         break;
       default:
         throw new IndexOutOfBoundsException("Index of Snapshot.periodDate is between 1 and 5");
@@ -675,7 +670,7 @@ public class Snapshot extends BaseIdentifiable<Snapshot> implements Serializable
     return this;
   }
 
-  public Date getPeriodDate(int periodIndex) {
+  public Long getPeriodDate(int periodIndex) {
     switch (periodIndex) {
       case 1:
         return period1Date;
index 1ff7bc4ac4af431275345c16134651fdf3c64f94..6be43c827ea2424dbba4fabee93af24c90de3733 100644 (file)
@@ -19,8 +19,8 @@
  */
 package org.sonar.api.utils;
 
+import javax.annotation.CheckForNull;
 import javax.annotation.Nullable;
-
 import java.io.NotSerializableException;
 import java.io.ObjectInputStream;
 import java.io.ObjectOutputStream;
@@ -60,10 +60,16 @@ public final class DateUtils {
     return date == null ? "" : THREAD_SAFE_DATETIME_FORMAT.format(date);
   }
 
-  public static Date timeToDate(@Nullable Long time) {
+  @CheckForNull
+  public static Date longToDate(@Nullable Long time) {
     return time == null ? null : new Date(time);
   }
 
+  @CheckForNull
+  public static Long dateToLong(@Nullable Date date) {
+    return date == null ? null : date.getTime();
+  }
+
   /**
    * @param s string in format {@link #DATE_FORMAT}
    * @throws SonarException when string cannot be parsed
index 5a0c8427a5170d8b2997bdc95bf485903fbe670f..c102f84423457af7e0935655e520be2091c8d23c 100644 (file)
@@ -21,13 +21,8 @@ package org.sonar.api.database.model;
 
 import org.junit.Test;
 
-import java.util.Date;
-
 import static org.hamcrest.Matchers.is;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertThat;
+import static org.junit.Assert.*;
 
 public class SnapshotTest {
 
@@ -36,7 +31,7 @@ public class SnapshotTest {
     Snapshot snapshot = new Snapshot();
     assertNull(snapshot.getCreatedAt());
 
-    Date now = new Date();
+    Long now = System.currentTimeMillis();
     snapshot.setCreatedAt(now);
     assertEquals(now, snapshot.getCreatedAt());
   }
index 888ceeb4c69128dd4157e9d970c0545db9d64d7d..7aa32f3cb20793a2163cf74b5a920f37839fb90a 100644 (file)
@@ -109,8 +109,8 @@ public class DateUtilsTest {
   @Test
   public void time_to_date() throws Exception {
     Date date = new Date();
-    Assertions.assertThat(DateUtils.timeToDate(date.getTime())).isEqualTo(date);
-    Assertions.assertThat(DateUtils.timeToDate(null)).isNull();
+    Assertions.assertThat(DateUtils.longToDate(date.getTime())).isEqualTo(date);
+    Assertions.assertThat(DateUtils.longToDate(null)).isNull();
   }
 
   /**