1 /* 2 * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 package com.sun.java.util.jar.pack; 26 27 import java.util.ListResourceBundle; 28 29 public class DriverResource_ja extends ListResourceBundle { 30 31 public static final String VERSION = "VERSION"; 32 public static final String BAD_ARGUMENT = "BAD_ARGUMENT"; 33 public static final String BAD_OPTION = "BAD_OPTION"; 34 public static final String BAD_REPACK_OUTPUT = "BAD_REPACK_OUTPUT"; 35 public static final String DETECTED_ZIP_COMMENT = "DETECTED_ZIP_COMMENT"; 36 public static final String SKIP_FOR_REPACKED = "SKIP_FOR_REPACKED"; 37 public static final String WRITE_PACK_FILE = "WRITE_PACK_FILE"; 38 public static final String WRITE_PACKGZ_FILE = "WRITE_PACKGZ_FILE"; 39 public static final String SKIP_FOR_MOVE_FAILED = "SKIP_FOR_MOVE_FAILED"; 40 public static final String PACK_HELP = "PACK_HELP"; 41 public static final String UNPACK_HELP = "UNPACK_HELP"; 42 public static final String MORE_INFO = "MORE_INFO"; 43 public static final String DUPLICATE_OPTION = "DUPLICATE_OPTION"; 44 public static final String BAD_SPEC = "BAD_SPEC"; 45 46 /* 47 * The following are the output of 'pack200' and 'unpack200' commands. 48 * Do not translate command arguments and words with a prefix of '-' or '--'. 49 */ 50 private static final Object[][] resource = { 51 {VERSION, "{0}バージョン{1}"}, // parameter 0:class name;parameter 1: version value 52 {BAD_ARGUMENT, "無効な引数: {0}"}, 53 {BAD_OPTION, "無効なオプション: {0}={1}"}, // parameter 0:option name;parameter 1:option value 54 {BAD_REPACK_OUTPUT, "無効な--repack出力: {0}"}, // parameter 0:filename 55 {DETECTED_ZIP_COMMENT, "検出されたZIPコメント: {0}"}, // parameter 0:comment 56 {SKIP_FOR_REPACKED, "すでに再圧縮されているためスキップしています: {0}"}, // parameter 0:filename 57 {WRITE_PACK_FILE, "*.packファイルを書き込むには、--no-gzipを指定します: {0}"}, // parameter 0:filename 58 {WRITE_PACKGZ_FILE, "*.pack.gzファイルを書き込むには、--gzipを指定します: {0}"}, // parameter 0:filename 59 {SKIP_FOR_MOVE_FAILED, "移動が失敗したため解凍をスキップしています: {0}"}, // parameter 0:filename 60 {PACK_HELP, new String[] { 61 "使用方法: pack200 [-opt... | --option=value]... x.pack[.gz] y.jar", 62 "", 63 "圧縮オプション", 64 " -r、--repack jarを再圧縮または正規化するオプションで、", 65 " jarsignerによる署名に適します", 66 " -g、--no-gzip プレーンなpackファイルを出力するオプションで、", 67 " ファイル圧縮ユーティリティによる圧縮に適します", 68 " --gzip (デフォルト) pack出力を後処理で圧縮します", 69 " (gzipを使用)", 70 " -G、--strip-debug 圧縮中にデバッグ属性(SourceFile、", 71 " LineNumberTable、LocalVariableTable", 72 " 、LocalVariableTypeTable)を削除します", 73 " -O、--no-keep-file-order ファイルの順序付け情報を転送しません", 74 " --keep-file-order (デフォルト)入力ファイルの順序付けを保持します", 75 " -S{N}、--segment-limit={N} セグメント・サイズを制限します(デフォルトは無制限)", 76 " -E{N}、--effort={N} 圧縮の試行(デフォルトN=5)", 77 " -H{h}、--deflate-hint={h} デフレート・ヒントを転送します: true、false", 78 " またはkeep(デフォルト)", 79 " -m{V}、--modification-time={V} 変更時間を転送します: latestまたはkeep(デフォルト)", 80 " -P{F}、--pass-file={F} 指定された入力要素をそのまま転送します", 81 " -U{a}、--unknown-attribute={a} 不明の属性アクション: error、strip", 82 " またはpass(デフォルト)", 83 " -C{N}={L}、--class-attribute={N}={L} (ユーザー定義属性)", 84 " -F{N}={L}、--field-attribute={N}={L} (ユーザー定義属性)", 85 " -M{N}={L}、--method-attribute={N}={L} (ユーザー定義属性)", 86 " -D{N}={L}、--code-attribute={N}={L} (ユーザー定義属性)", 87 " -f{F}、--config-file={F} Pack200.PackerプロパティにファイルFを読み込みます", 88 " -v、--verbose プログラムの冗長性を高めます", 89 " -q、--quiet 冗長性を最低レベルに設定します", 90 " -l{F}、--log-file={F} 指定のログ・ファイルまたはSystem.out ", 91 " ('-'の場合)に出力します", 92 " -?、-h、--help このメッセージを出力します", 93 " -V、--version プログラムのバージョンを出力します", 94 " -J{X} オプションXを基礎となるJava VMに渡します", 95 "", 96 "注:", 97 " -P、-C、-F、-Mおよび-Dオプションは累積されます。", 98 " 属性定義の例: -C SourceFile=RUH .", 99 " Config.ファイル・プロパティは、Pack200 APIによって定義されます。", 100 " -S、-E、-H、-m、-Uの値の意味は、Pack200 APIを参照してください。", 101 " レイアウト定義(RUHなど)はJSR 200によって定義されます。", 102 "", 103 "再圧縮モードでは、JARファイルが圧縮/解凍サイクルで更新されます:", 104 " pack200 [-r|--repack] [-opt | --option=value]... [repackedy.jar] y.jar\n", 105 "", 106 "終了ステータス:", 107 " 0 (成功した場合)、>0 (エラーが発生した場合)" 108 } 109 }, 110 {UNPACK_HELP, new String[] { 111 "使用方法: unpack200 [-opt... | --option=value]... x.pack[.gz] y.jar\n", 112 "", 113 "解凍オプション", 114 " -H{h}、--deflate-hint={h} 転送されたデフレート・ヒントをオーバーライドします:", 115 " true、falseまたはkeep(デフォルト)", 116 " -r、--remove-pack-file 解凍後に入力ファイルを削除します", 117 " -v、--verbose プログラムの冗長性を高めます", 118 " -q、--quiet 冗長性を最低レベルに設定します", 119 " -l{F}、--log-file={F} 指定のログ・ファイルまたは", 120 " System.out ('-'の場合)に出力します", 121 " -?、-h、--help このメッセージを出力します", 122 " -V、--version プログラムのバージョンを出力します", 123 " -J{X} オプションXを基礎となるJava VMに渡します" 124 } 125 }, 126 {MORE_INFO, "(詳細は、{0} --helpを実行してください。)"}, // parameter 0:command name 127 {DUPLICATE_OPTION, "重複オプション: {0}"}, // parameter 0:option 128 {BAD_SPEC, "{0}の無効な仕様: {1}"}, // parameter 0:option;parameter 1:specifier 129 }; 130 131 protected Object[][] getContents() { 132 return resource; 133 } 134 }