From ac2ba9325644b6a750ebbcc0af8df19326d0918d Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Fri, 15 Jan 2010 16:39:04 +0000 Subject: [PATCH] ICU-7339 fix --newver X-SVN-Rev: 27279 --- .../java/src/com/ibm/icu/dev/tools/docs/StableAPI.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/release/java/src/com/ibm/icu/dev/tools/docs/StableAPI.java b/tools/release/java/src/com/ibm/icu/dev/tools/docs/StableAPI.java index a4d4ca8b973..ce55c66a119 100644 --- a/tools/release/java/src/com/ibm/icu/dev/tools/docs/StableAPI.java +++ b/tools/release/java/src/com/ibm/icu/dev/tools/docs/StableAPI.java @@ -1,6 +1,6 @@ /* ********************************************************************** - * Copyright (c) 2006-2009, International Business Machines + * Copyright (c) 2006-2010, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** * Created on 2006-7-24 ? @@ -258,8 +258,12 @@ public class StableAPI { } else { System.err.println("Note: You don't need to use '--"+whichVer+"ver "+result+"' anymore - we detected it correctly."); } - } - } + } else { + result = prevVer; + System.err.println("Using '--"+whichVer+"ver "+result+"' because - we failed to detect it correctly."); + } + } + if(result == null) { System.err.println("Error: You'll need to use the option \"--"+whichVer+"ver\" because we could not detect an ICU version in " + UVERSION );