aboutsummaryrefslogtreecommitdiffstats
path: root/tools/maketext/src/com/android/inputmethod/latin/maketext/LabelText.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2013-08-13 12:34:01 +0900
committerTadashi G. Takaoka <takaoka@google.com>2013-08-13 15:33:14 +0900
commitca6acfdd6b3400ad6e29d45c29b0ec40ea92a968 (patch)
tree4f412f403c7566a0f7b650299a92e4b4f64ea81b /tools/maketext/src/com/android/inputmethod/latin/maketext/LabelText.java
parent0adc8a2ad3630aa01984b4b6ccb2b7ca94cf8948 (diff)
downloadlatinime-ca6acfdd6b3400ad6e29d45c29b0ec40ea92a968.tar.gz
latinime-ca6acfdd6b3400ad6e29d45c29b0ec40ea92a968.tar.xz
latinime-ca6acfdd6b3400ad6e29d45c29b0ec40ea92a968.zip
Rename maketext tool to make-keyboard-text
Change-Id: Icceda22aec75f9e3602da8775c0e94b110283575
Diffstat (limited to 'tools/maketext/src/com/android/inputmethod/latin/maketext/LabelText.java')
-rw-r--r--tools/maketext/src/com/android/inputmethod/latin/maketext/LabelText.java65
1 files changed, 0 insertions, 65 deletions
diff --git a/tools/maketext/src/com/android/inputmethod/latin/maketext/LabelText.java b/tools/maketext/src/com/android/inputmethod/latin/maketext/LabelText.java
deleted file mode 100644
index 4a9236962..000000000
--- a/tools/maketext/src/com/android/inputmethod/latin/maketext/LabelText.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Copyright (C) 2012 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-
-package com.android.inputmethod.latin.maketext;
-
-import java.util.Arrays;
-import java.util.LinkedList;
-import java.util.NoSuchElementException;
-import java.util.jar.JarFile;
-
-public class LabelText {
- static class Options {
- private static final String OPTION_JAVA = "-java";
-
- public final String mJava;
-
- public static void usage(String message) {
- if (message != null) {
- System.err.println(message);
- }
- System.err.println("usage: makelabel " + OPTION_JAVA + " <java_output_dir>");
- System.exit(1);
- }
-
- public Options(final String[] argsArray) {
- final LinkedList<String> args = new LinkedList<String>(Arrays.asList(argsArray));
- String arg = null;
- String java = null;
- try {
- while (!args.isEmpty()) {
- arg = args.removeFirst();
- if (arg.equals(OPTION_JAVA)) {
- java = args.removeFirst();
- } else {
- usage("Unknown option: " + arg);
- }
- }
- } catch (NoSuchElementException e) {
- usage("Option " + arg + " needs argument");
- }
-
- mJava = java;
- }
- }
-
- public static void main(final String[] args) {
- final Options options = new Options(args);
- final JarFile jar = JarUtils.getJarFile(LabelText.class);
- final MoreKeysResources resources = new MoreKeysResources(jar);
- resources.writeToJava(options.mJava);
- }
-}