stamp-version should fail if current version is a release

This commit is contained in:
Mark Harrah 2013-06-03 10:36:21 -04:00
parent 90d7834c86
commit 138a5ecd20
1 changed files with 1 additions and 1 deletions

View File

@ -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")