From 138a5ecd202a69d2c3c27ad487433c21d5b9b3ce Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Mon, 3 Jun 2013 10:36:21 -0400 Subject: [PATCH] stamp-version should fail if current version is a release --- project/Status.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/Status.scala b/project/Status.scala index 7ed5b0df4..4baf78616 100644 --- a/project/Status.scala +++ b/project/Status.scala @@ -19,7 +19,7 @@ object Status if(v endsWith Snapshot) (v stripSuffix Snapshot) + "-" + timestampString(System.currentTimeMillis) else - v + error("Release version '" + v + "' cannot be stamped") def timestampString(time: Long): String = { val format = new java.text.SimpleDateFormat("yyyyMMdd-HHmmss")