From c619e738452285f37689ac2d73d14dfd7042948b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 24 Jan 2008 18:28:41 +0000 Subject: * resource/gnu/classpath/tools/native2ascii/messages.properties (Native2ASCII.ReversedHelpCompat): New. * tools/gnu/classpath/tools/native2ascii/Native2ASCII.java (createParser): Add -reverse. Update -reversed. --- ChangeLog | 7 +++++++ .../gnu/classpath/tools/native2ascii/messages.properties | 3 ++- tools/gnu/classpath/tools/native2ascii/Native2ASCII.java | 14 ++++++++++++-- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4f32be94b..3699bc30c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-01-24 Tom Tromey + + * resource/gnu/classpath/tools/native2ascii/messages.properties + (Native2ASCII.ReversedHelpCompat): New. + * tools/gnu/classpath/tools/native2ascii/Native2ASCII.java + (createParser): Add -reverse. Update -reversed. + 2008-01-21 Luciano Chavez PR libgcj/34369: diff --git a/resource/gnu/classpath/tools/native2ascii/messages.properties b/resource/gnu/classpath/tools/native2ascii/messages.properties index ab860c8d2..fe2d10ae3 100644 --- a/resource/gnu/classpath/tools/native2ascii/messages.properties +++ b/resource/gnu/classpath/tools/native2ascii/messages.properties @@ -1,5 +1,5 @@ # messages.properties -- English language messages -# Copyright (C) 2006 Free Software Foundation, Inc. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc. # # This file is part of GNU Classpath. # @@ -41,3 +41,4 @@ Native2ASCII.EncodingHelp=encoding to use Native2ASCII.EncodingArgName=NAME Native2ASCII.EncodingSpecified=encoding already specified Native2ASCII.ReversedHelp=convert from encoding to native +Native2ASCII.ReversedHelpCompat=alias for -reverse (deprecated) diff --git a/tools/gnu/classpath/tools/native2ascii/Native2ASCII.java b/tools/gnu/classpath/tools/native2ascii/Native2ASCII.java index 35e9f481f..0667befc6 100644 --- a/tools/gnu/classpath/tools/native2ascii/Native2ASCII.java +++ b/tools/gnu/classpath/tools/native2ascii/Native2ASCII.java @@ -1,5 +1,5 @@ /* Native2ASCII.java - native2ascii program - Copyright (C) 2003, 2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -101,7 +101,17 @@ public class Native2ASCII encoding = argument; } }); - result.add(new Option("reversed", Messages.getString("Native2ASCII.ReversedHelp")) //$NON-NLS-1$ //$NON-NLS-2$ + result.add(new Option("reverse", Messages.getString("Native2ASCII.ReversedHelp")) //$NON-NLS-1$ //$NON-NLS-2$ + { + public void parsed(String argument) throws OptionException + { + reversed = true; + } + }); + + // We mistakenly added the extra "d" in "reversed"; now we don't + // want to remove it, for backward compatibility. + result.add(new Option("reversed", Messages.getString("Native2ASCII.ReversedHelpCompat")) //$NON-NLS-1$ //$NON-NLS-2$ { public void parsed(String argument) throws OptionException { -- cgit v1.2.1