diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-01-19 09:40:14 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-01-19 09:40:14 +0100 |
commit | eb6cbd28992cec9025a8e95f8f03ae3839699e0b (patch) | |
tree | d3c1f1416da2ae36894d3087a75f3c1d7f280fad /src/main/java/io/trygvis/esper/testing/gitorious/GitoriousProjectDiscovery.java | |
parent | 17be3886fbee46c34f1ea78cd32d5726e538e641 (diff) | |
download | esper-testing-eb6cbd28992cec9025a8e95f8f03ae3839699e0b.tar.gz esper-testing-eb6cbd28992cec9025a8e95f8f03ae3839699e0b.tar.bz2 esper-testing-eb6cbd28992cec9025a8e95f8f03ae3839699e0b.tar.xz esper-testing-eb6cbd28992cec9025a8e95f8f03ae3839699e0b.zip |
o Reverting the timestamp => createdDate change, it was wrong. Adding ability to sort on timestamp.
Created date is when we discovered the build, the timestamp is when Jenkins did the build.
Diffstat (limited to 'src/main/java/io/trygvis/esper/testing/gitorious/GitoriousProjectDiscovery.java')
-rwxr-xr-x[-rw-r--r--] | src/main/java/io/trygvis/esper/testing/gitorious/GitoriousProjectDiscovery.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/io/trygvis/esper/testing/gitorious/GitoriousProjectDiscovery.java b/src/main/java/io/trygvis/esper/testing/gitorious/GitoriousProjectDiscovery.java index 67b6d17..d60956d 100644..100755 --- a/src/main/java/io/trygvis/esper/testing/gitorious/GitoriousProjectDiscovery.java +++ b/src/main/java/io/trygvis/esper/testing/gitorious/GitoriousProjectDiscovery.java @@ -38,7 +38,7 @@ public class GitoriousProjectDiscovery { Set<GitoriousRepositoryDto> repositories = Collections.emptySet(); try (Connection c = boneCp.getConnection()) { - repositories = new HashSet<>(new Daos(c).gitoriousRepositoryDao.select(Daos.OrderDirection.ASC)); + repositories = new HashSet<>(new Daos(c).gitoriousRepositoryDao.select(true)); } catch (SQLException e) { // ignore } @@ -53,7 +53,7 @@ public class GitoriousProjectDiscovery { public void act(Connection c) throws Exception { try (Daos daos = new Daos(c)) { discoverProjects(daos); - repositoryManager.update(daos.gitoriousRepositoryDao.select(Daos.OrderDirection.NONE)); + repositoryManager.update(daos.gitoriousRepositoryDao.select(null)); daos.commit(); } } |