Merge "Rename maketext tool to make-keyboard-text"

main
Tadashi G. Takaoka 2013-08-13 08:49:56 +00:00 committed by Android (Google) Code Review
commit d03e5bd761
63 changed files with 23 additions and 23 deletions

View File

@ -27,18 +27,18 @@ import java.util.HashMap;
/**
* !!!!! DO NOT EDIT THIS FILE !!!!!
*
* This file is generated by tools/maketext. The base template file is
* tools/maketext/res/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.tmpl
* This file is generated by tools/make-keyboard-text. The base template file is
* tools/make-keyboard-text/res/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.tmpl
*
* This file must be updated when any text resources in keyboard layout files have been changed.
* These text resources are referred as "!text/<resource_name>" in keyboard XML definitions,
* and should be defined in
* tools/maketext/res/values-<locale>/donottranslate-more-keys.xml
* tools/make-keyboard-text/res/values-<locale>/donottranslate-more-keys.xml
*
* To update this file, please run the following commands.
* $ cd $ANDROID_BUILD_TOP
* $ mmm packages/inputmethods/LatinIME/tools/maketext
* $ maketext -java packages/inputmethods/LatinIME/java/src
* $ mmm packages/inputmethods/LatinIME/tools/make-keyboard-text
* $ make-keyboard-text -java packages/inputmethods/LatinIME/java/src
*
* The updated source file will be generated to the following path (this file).
* packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/

View File

@ -19,7 +19,7 @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES += $(call all-java-files-under,src)
LOCAL_JAR_MANIFEST := etc/manifest.txt
LOCAL_JAVA_RESOURCE_DIRS := res
LOCAL_MODULE := maketext
LOCAL_MODULE := make-keyboard-text
include $(BUILD_HOST_JAVA_LIBRARY)
include $(LOCAL_PATH)/etc/Android.mk

View File

@ -15,6 +15,6 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_PREBUILT_EXECUTABLES := maketext
LOCAL_PREBUILT_EXECUTABLES := make-keyboard-text
include $(BUILD_HOST_PREBUILT)

View File

@ -33,7 +33,7 @@ progdir=`pwd`
prog="${progdir}"/`basename "${prog}"`
cd "${oldwd}"
jarfile=maketext.jar
jarfile=make-keyboard-text.jar
frameworkdir="$progdir"
if [ ! -r "$frameworkdir/$jarfile" ]
then

View File

@ -0,0 +1 @@
Main-Class: com.android.inputmethod.keyboard.tools.MakeKeyboardText

View File

@ -27,18 +27,18 @@ import java.util.HashMap;
/**
* !!!!! DO NOT EDIT THIS FILE !!!!!
*
* This file is generated by tools/maketext. The base template file is
* tools/maketext/res/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.tmpl
* This file is generated by tools/make-keyboard-text. The base template file is
* tools/make-keyboard-text/res/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.tmpl
*
* This file must be updated when any text resources in keyboard layout files have been changed.
* These text resources are referred as "!text/<resource_name>" in keyboard XML definitions,
* and should be defined in
* tools/maketext/res/values-<locale>/donottranslate-more-keys.xml
* tools/make-keyboard-text/res/values-<locale>/donottranslate-more-keys.xml
*
* To update this file, please run the following commands.
* $ cd $ANDROID_BUILD_TOP
* $ mmm packages/inputmethods/LatinIME/tools/maketext
* $ maketext -java packages/inputmethods/LatinIME/java/src
* $ mmm packages/inputmethods/LatinIME/tools/make-keyboard-text
* $ make-keyboard-text -java packages/inputmethods/LatinIME/java/src
*
* The updated source file will be generated to the following path (this file).
* packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.android.inputmethod.latin.maketext;
package com.android.inputmethod.keyboard.tools;
import java.io.PrintStream;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.android.inputmethod.latin.maketext;
package com.android.inputmethod.keyboard.tools;
import java.io.IOException;
import java.io.InputStream;

View File

@ -14,14 +14,14 @@
* the License.
*/
package com.android.inputmethod.latin.maketext;
package com.android.inputmethod.keyboard.tools;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.NoSuchElementException;
import java.util.jar.JarFile;
public class LabelText {
public class MakeKeyboardText {
static class Options {
private static final String OPTION_JAVA = "-java";
@ -31,7 +31,7 @@ public class LabelText {
if (message != null) {
System.err.println(message);
}
System.err.println("usage: makelabel " + OPTION_JAVA + " <java_output_dir>");
System.err.println("usage: make-keyboard-text " + OPTION_JAVA + " <java_output_dir>");
System.exit(1);
}
@ -58,7 +58,7 @@ public class LabelText {
public static void main(final String[] args) {
final Options options = new Options(args);
final JarFile jar = JarUtils.getJarFile(LabelText.class);
final JarFile jar = JarUtils.getJarFile(MakeKeyboardText.class);
final MoreKeysResources resources = new MoreKeysResources(jar);
resources.writeToJava(options.mJava);
}

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.android.inputmethod.latin.maketext;
package com.android.inputmethod.keyboard.tools;
import java.io.Closeable;
import java.io.File;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.android.inputmethod.latin.maketext;
package com.android.inputmethod.keyboard.tools;
public class StringResource {
public final String mName;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.android.inputmethod.latin.maketext;
package com.android.inputmethod.keyboard.tools;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;

View File

@ -1 +0,0 @@
Main-Class: com.android.inputmethod.latin.maketext.LabelText