jdk/src/linux/doc/man/ja/pack200.1
author jjg
Tue, 11 Mar 2008 13:14:55 -0700
changeset 168 25697c18650b
parent 2 90ce3da70b43
child 2692 345bc8d65b19
permissions -rw-r--r--
6307187: clean up code for -Xlint:options Summary: introduce common code for handling one-of and any-of options Reviewed-by: mcimadamore
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
'\t" t
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
.\" Copyright 2004-2006 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
.\" This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
.\" under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
.\" published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
.\" This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
.\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
.\" version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
.\" accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
.\" You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
.\" 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
.\" Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
.\" CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
.\" have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
.TH pack200 1 "2006 年 9 月 4 日" "Java SE 6" "ユーザーコマンド"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
.SH 名前
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
pack200 \- JAR パックツール
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
.SH 形式
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
.B pack200 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
[ 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
.I options 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
] 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
.I output\-file 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
.I JAR\-file
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
.SH 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
オプションの指定順序に決まりはありません。コマンド行または properties ファイルに指定された最後のオプションが、それ以前に指定されたすべてのオプションより優先されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
.JP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
options 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
コマンド行オプション。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
output\-file  
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
出力ファイルの名前。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
JAR\-file     
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
入力ファイルの名前。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
.SH 機能説明
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
\f2pack200\fP ツールは、Java \f2gzip\fP 圧縮ツールを使って JAR ファイルを圧縮 \f2pack200\fP ファイルに変換する Java アプリケーションです。\f2pack200\fP ファイルは高圧縮のファイルで、帯域幅の節約やダウンロード時間の短縮や直接配備することができます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
.LP     
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
\f2pack200\fP ツールには、圧縮エンジンの設定や微調整を行うオプションが用意されています。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
一般的な使用方法:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
.ft 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
.nf     
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
\f2% pack200 myarchive.pack.gz myarchive.jar\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
.ft 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
この例では、デフォルトの \f2pack200\fP 設定で、\f2myarchive.pack.gz\fP が作成されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
.SH オプション
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
.LP 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
\f4\-r \-\-repack\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
\f2myarchive.jar\fP ファイルのパックまたはアンパックにより、JAR ファイルを作成します。作成されたファイルは、\f2jarsigner(1)\fP ツールの入力ファイルとして使用できます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
\f2% pack200 \-\-repack myarchive\-packed.jar myarchive.jar\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
\f2% pack200 \-\-repack myarchive.jar\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
\f4\-g \-\-no\-gzip\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
\f2pack200\fP ファイルを作成します。このオプションを指定するときは、適切な圧縮ツールを使用する必要があります。また、ターゲットシステムでは、対応する圧縮解除ツールを使用する必要があります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
\f2% pack200 \-\-no\-gzip myarchive.pack myarchive.jar\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
\f4\-G \-\-strip-debug\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
出力からデバッグ用の属性を削除します。対象となる属性には、\f2SourceFile\fP、\f2LineNumberTable\fP、\f2LocalVariableTable\fP、および \f2LocalVariableTypeTable\fP などがあります。これらの属性を削除すれば、ダウンロードとインストールのサイズは小さくなりますが、デバッガの機能は制限されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
\f4\-O \-\-no\-keep\-file\-order\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
パックツールは、すべての要素を並べ替えて転送します。また、JAR ディレクトリ名を削除します。このため、ダウンロードのサイズは小さくなりますが、インデックスをはじめとする JAR ファイルの最適化機能は正常に動作しなくなることがあります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
\f4\-Svalue \-\-segment\-limit=\fP\f2value\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
各アーカイブセグメントの予測ターゲットサイズ N (バイト) を指定します。N バイト以上を必要とする単一の入力ファイルには、独立したアーカイブセグメントが割り当てられます。たとえば、これは特殊な例ですが、値が \f2-1\fP の場合、すべての入力ファイルを含む単一の巨大なセグメントが生成されます。一方、値が \f20\fP の場合、クラスごとにセグメントが 1 つずつ生成されます。アーカイブセグメントのサイズが大きければ大きいほど断片化は起こりにくく、圧縮率も高くなります。しかし、こうしたセグメントを処理するためには、大量のメモリが必要になります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
各セグメントのサイズは、セグメント内で転送される入力ファイルのサイズと、このファイルの名前のサイズ、およびその他の転送プロパティによって予測されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
デフォルトのサイズは \f21000000\fP (百万バイト) です。これは、標準サイズの入力 JAR ファイルを単一セグメント内で転送できるサイズです。パックツールおよびアンパックツールのメモリ要件には制限が課されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
この制限が課されていない 10M バイトの JAR パックファイルは通常、元の 10% 程度のサイズにパックされます。しかし、パックツールでより大きな Java ヒープ (セグメントの制限の約 10 倍) を必要とする場合もあります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
\f4\-Evalue \-\-effort=\fP\f2value\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
単一の 10 進数値を指定した場合、パックツールは、指定された圧縮率でアーカイブを圧縮します。レベル \f21\fP の場合、圧縮速度は速くても圧縮率はそれほど高くありません。レベル \f29\fP の場合、圧縮速度は遅くても圧縮率は高くなります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
特殊な値 \f20\fP を指定した場合は、元の JAR ファイルを圧縮なしで直接コピーします。JSR 200 標準では、すべてのアンパックツールはこの特殊な処理をアーカイブ全体のパススルーとして理解する必要があります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
デフォルト値は \f25\fP です。この場合、標準的な時間で、適度な圧縮が行われます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
\f4\-Hvalue \-\-deflate\-hint=\fP\f2value\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
デフォルト値を上書きし、入力情報を保存します。転送されるアーカイブのサイズは大きくなります。可能な値:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
false
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
どちらの場合でも、パックツールはデフレーションヒントを出力アーカイブに設定します。アーカイブ要素の個々のデフレーションヒントは転送しません。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
keep
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
入力 JAR 内のデフレーションヒントを保存します (デフォルト)。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
.in
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
\f4\-mvalue \-\-modification\-time=\fP\f2value\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
可能な値:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
latest
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
パックツールは、元のアーカイブの全エントリの最終更新時刻か、そのセグメントのすべてのエントリの最終更新時刻を特定しようとします。この単一の値はセグメントの一部として転送され、各セグメントの全エントリに適用されます。この場合、すべてのインストールファイルに単一の日付が設定されるという問題はありますが、アーカイブの転送サイズを少し小さくすることができます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
keep
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
入力 JAR 内の更新時刻を保存します (デフォルト)。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
\f4\-Pfile \-\-pass\-file=\fP\f2file\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
ファイルを圧縮せず、バイト単位で転送するように指定します。このオプションを繰り返し使用して、複数のファイルを指定できます。パス名の変換は行われません。システムファイルの区切り文字が JAR ファイルの区切り文字 "\f2/\fP" で置き換えられるだけです。ファイル名は、JAR ファイル内の文字列と完全に一致していなければなりません。file にディレクトリ名を指定した場合、そのディレクトリ内のすべてのファイルが転送されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
\f4\-Uaction \-\-unknown\-attribute=\fP\f2action\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
デフォルトの動作を無効にします。たとえば、不明な属性を含むクラスファイルを指定したアクションで転送します。アクションとして指定可能な値:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
error
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
\f2pack200\fP の操作に失敗し、適切な解説が表示されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
strip
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
属性はドロップされます。注: VM 必須属性を削除するとクラスローダの障害が発生することがあります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
pass
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
この属性が検出された場合、クラス全体が 1 つのリソースとして転送されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
\f4\-Cattribute\-name=\fP\f2layout\fP \f3\-\-class\-attribute=\fP\f2attribute\-name=action\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
 \f4\-Fattribute\-name=\fP\f2layout\fP \f3\-\-field\-attribute=\fP\f2attribute\-name=action\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
 \f4\-Mattribute\-name=\fP\f2layout\fP \f3\-\-method\-attribute=\fP\f2attribute\-name=action\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
 \f4\-Dattribute\-name=\fP\f2layout\fP \f3\-\-code\-attribute=\fP\f2attribute\-name=action\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
これら 4 つのオプションでは、クラスエンティティに Class 属性、Field 属性、Method 属性、Code 属性などの属性のレイアウトを指定できます。attribute\-name には、これからレイアウトまたはアクションを定義する属性の名前を指定します。アクションとして指定可能な値:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
(一部のレイアウト文字列)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
レイアウト言語は、JSR 200 仕様に定義されています。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
例: \f2\-\-class\-attribute=SourceFile=RUH\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
error
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
この属性が検出された場合、pack200 の操作に失敗し、適切な解説が表示されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
strip
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
この属性が検出された場合、属性は出力から削除されます。注: VM 必須属性を削除するとクラスローダの障害が発生することがあります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
例: \f2\-\-class\-attribute=CompilationID=pass\fP というこの属性を含むクラスファイルを転送します。パックツールは、その他のアクションを行いません。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
\f4\-f\fP\f2 \fP\f2pack.properties\fP \f3\-\-config\-file=\fP\f2pack.properties\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
コマンド行に、パックツールを初期化するための Java プロパティが含まれている設定ファイルを指定できます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
\f2% pack200 \-f pack.properties myarchive.pack.gz myarchive.jar\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
\f2% more pack.properties\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
\f2# Generic properties for the packer.\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
\f2modification.time=latest\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
\f2deflate.hint=false\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
\f2keep.file.order=false\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
\f2# This option will cause the files bearing new attributes to\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
\f2# be reported as an error rather than passed uncompressed.\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
\f2unknown.attribute=error\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
\f2# Change the segment limit to be unlimited.\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
\f2segment.limit=\-1\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
\f4\-v \-\-verbose\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
最小限のメッセージを出力します。このオプションを複数指定すると、より長いメッセージが出力されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
\f4\-q \-\-quiet\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
メッセージを表示せずに動作します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
\f4\-lfilename \-\-log\-file=\fP\f2filename\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
出力メッセージのログファイルを指定します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
\f4\-Joption\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
\f2pack200\fP によって呼び出される Java 起動ツールにオプションを渡します。たとえば \f2\-J\-Xms48m\fP と指定した場合、起動メモリが 48M バイトに設定されます。\f2\-X\fP で始まってはいませんが、\f2pack200\fP の標準オプションではありません。慣習として、\f2\-J\fP には、Java で書かれたアプリケーションを実行する VM にオプションを渡す働きがあります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
.SH 終了ステータス
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
次の終了値が返されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
\f2\ 0\fP "成功"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
\f2>0\fP "エラー"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
.SH 関連項目
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
unpack200 \- JAR アンパックツール
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
\f2unpack200(1)\fP、\f2jar(1)\fP、\f2jarsigner(1)\fP、\f2attributes(5)\fP のマニュアルページ 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
Java SE のドキュメント 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
\f2Java Deployment Guide \- Pack200\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
(http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment\-guide/pack200.html)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
\f2jar\fP \- Java アーカイブツール
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
\f2jarsigner\fP \- JAR 署名および検証ツール
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
(http://java.sun.com/javase/6/docs/technotes/tools/solaris/jarsigner.html)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
.SH 注意事項
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
このコマンドと \f2pack(1)\fP コマンドを混同しないでください。これらは別製品です。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
SDK に付属する Java SE API 仕様との相違が見つかった場合には、仕様を優先してください。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401