You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@batchee.apache.org by rm...@apache.org on 2015/11/30 21:53:54 UTC
incubator-batchee git commit: fixing SimpleDateFormat pattern
Repository: incubator-batchee
Updated Branches:
refs/heads/master 5a358ee3c -> a36d37bbb
fixing SimpleDateFormat pattern
Project: http://git-wip-us.apache.org/repos/asf/incubator-batchee/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-batchee/commit/a36d37bb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-batchee/tree/a36d37bb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-batchee/diff/a36d37bb
Branch: refs/heads/master
Commit: a36d37bbbe49a67240e34096e40fbe2ce59e1098
Parents: 5a358ee
Author: Romain Manni-Bucau <rm...@gmail.com>
Authored: Mon Nov 30 21:54:28 2015 +0100
Committer: Romain Manni-Bucau <rm...@gmail.com>
Committed: Mon Nov 30 21:54:28 2015 +0100
----------------------------------------------------------------------
.../src/main/java/org/apache/batchee/cli/command/Eviction.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-batchee/blob/a36d37bb/tools/cli/src/main/java/org/apache/batchee/cli/command/Eviction.java
----------------------------------------------------------------------
diff --git a/tools/cli/src/main/java/org/apache/batchee/cli/command/Eviction.java b/tools/cli/src/main/java/org/apache/batchee/cli/command/Eviction.java
index 6dc9602..f034612 100644
--- a/tools/cli/src/main/java/org/apache/batchee/cli/command/Eviction.java
+++ b/tools/cli/src/main/java/org/apache/batchee/cli/command/Eviction.java
@@ -27,13 +27,13 @@ import java.util.Date;
@Command(name = "evict", description = "remove old data, uses embedded configuration (no JAXRS support yet)")
public class Eviction implements Runnable {
- @Option(name = "-until", description = "date until when the eviction will occur (excluded), YYYYMMdd format", required = true)
+ @Option(name = "-until", description = "date until when the eviction will occur (excluded), YYYYMMDD format", required = true)
private String date;
@Override
public void run() {
try {
- final Date date = new SimpleDateFormat("YYYYMMdd").parse(this.date);
+ final Date date = new SimpleDateFormat("yyyyMMdd").parse(this.date);
ServicesManager.find().service(PersistenceManagerService.class).cleanUp(date);
} catch (final ParseException e) {
throw new IllegalArgumentException(e);