- public String parseArgumentValue(StmtContext<?, ?, ?> ctx, String value) {
- return value;
+ public Date parseArgumentValue(final StmtContext<?, ?, ?> ctx, final String value) throws SourceException {
+ try {
+ return SimpleDateFormatUtil.getRevisionFormat().parse(value);
+ } catch (ParseException e) {
+ throw new SourceException(ctx.getStatementSourceReference(), e,
+ "Revision value %s is not in required format yyyy-MM-dd", value);
+ }