Archive Helper Toolを使用すると、アーカイブ・ファイルの内容を表示し、必要に応じてファイルを追加、更新、抽出および削除できます。
Archive Helper Toolの-help
オプションを使用して、そのコマンドを表示します。
archiveHelper
コマンドコマンド | 説明 |
---|---|
add |
アーカイブ・ファイルにアイテムを追加します。 |
extract |
アーカイブ・ファイルからアイテムを抽出します。 |
list |
アーカイブ・ファイルの内容をリストします。 |
remove |
アーカイブ・ファイルへのアイテムの削除。 |
各コマンドはサブコマンドをとります。サブコマンドには、1つ以上のコマンド行オプションが必要になる場合があります。 各コマンドについて、そのサブコマンドの使用状況情報に-help
オプションを使用します。
たとえば、archiveHelper
add
コマンドのサブコマンドを表示するには:
$ <wls-deploy-home>/bin/archiveHelper.sh add -help
この結果、次のように出力されます。
Add items to the archive file.
Usage: archiveHelper add [-help] [COMMAND]
Command-line options:
-help Get help for the archiveHelper add command
Subcommands:
application Add application to the archive file.
applicationPlan Add application deployment plan to the archive file.
classpathLibrary Add classpath library to the archive file.
coherenceConfig Add a Coherence config file to the archive file.
coherencePersistenceDir Add a Coherence persistence directory to the archive
file.
custom Add custom file/directory to the archive file.
databaseWallet Add database wallet to the archive file.
domainBinScript Add $DOMAIN_HOME/bin script to the archive file.
domainLibrary Add $DOMAIN_HOME/lib library to the archive file.
fileStore Add empty file store directory to the archive file.
jmsForeignServer Add a JMS Foreign Server binding file to the archive
file.
mimeMapping Add MIME mapping file to the archive file.
nodeManagerKeystore Add node manager keystore to the archive file.
opssWallet Add OPSS wallet to the archive file.
rcuWallet Add RCU database wallet to the archive file.
saml2InitializationData Add a SAML2 data initialization file to the archive
file.
script Add script to the archive file.
serverKeystore Add a server keystore to the archive file.
sharedLibrary Add shared library to the archive file.
sharedLibraryPlan Add shared library deployment plan to the archive
file.
structuredApplication Add structured application installation directory to
the archive file.
weblogicRemoteConsoleExtension Add the WebLogic Remote Console's Extension
file to the archive file.
archiveHelper
add application
サブコマンドのコマンドライン・オプションを表示するには:
$ <wls-deploy-home>/bin/archiveHelper.sh add application -help
この結果、次のように出力されます。
Add application to the archive file.
Usage: archiveHelper add application [-help] [-overwrite]
-archive_file=<archive_file> -source=<path>
Command-line options:
-archive_file=<archive_file>
Path to the archive file to use.
-overwrite Overwrite the existing entry in the archive file, if any
-source=<path> File system path to the application to add
-help Get help for the archiveHelper add application subcommand
Note: If using an Application Installation Directory, please see the
archiveHelper add structuredApplication command.
アーカイブ・ファイルとその構造の詳細については、「アーカイブ・ファイル」 (/weblogic-deploy-tooling/concepts/archive/)ページを参照してください。
list application
: アーカイブ・ファイル内のアプリケーションを一覧表示します。
$ <wls-deploy-home>/bin/archiveHelper.sh list application -archive_file=C:\temp\archive-helper-test.zip
add application
: アーカイブ内の既存のアプリケーションを更新します。
$ <wls-deploy-home>/bin/archiveHelper.sh add application -archive_file=C:\temp\archive-helper-test.zip -source=C:\temp\my-app.war -overwrite
ノート: -overwrite
オプションを指定しない場合、アプリケーションは数値のサフィクスでアーカイブに追加されます。
次の環境変数を設定できます。
JAVA_HOME
JDKのロケーション。 これは有効なJava 7以降のJDKである必要があります。 Archive Helper ToolはWLSTを使用せずにJavaで記述されるため、JAVA_HOME
はコマンドの実行に使用されるJDKになります(WLSTを使用する他のツールとは異なり)。