7.8.2. デプロイメントコンテンツの読み取り
管理されたデプロイメントでファイルの内容を読み取るには、read-content
操作を使用します。引数を指定しないと、デプロイメント全体が返されます。または、path
引数を指定して、特定のファイルへのパスを提供します。以下に例を示します。
/deployment=helloworld.war:read-content(path=META-INF/MANIFEST.MF)
上記は、管理 CLI に表示 または ファイルシステムに保存 できるファイルストリームを返します。
{ "outcome" => "success", "result" => {"uuid" => "24ba8e06-21bd-4505-b4d4-bdfb16451b95"}, "response-headers" => {"attached-streams" => [{ "uuid" => "24ba8e06-21bd-4505-b4d4-bdfb16451b95", "mime-type" => "text/plain" }]} }
7.8.2.1. ファイルの内容の表示
attachment display
コマンドを使用して MANIFEST.MF
ファイルの内容を読み取ります。
attachment display --operation=/deployment=helloworld.war:read-content(path=META-INF/MANIFEST.MF)
上記は、helloworld.war
デプロイメントからの MANIFEST.MF
ファイルの内容を管理 CLI に表示します。
ATTACHMENT 8af87836-2abd-423a-8e44-e731cc57bd80: Manifest-Version: 1.0 Implementation-Title: Quickstart: helloworld Implementation-Version: 7.4.0.GA Java-Version: 1.8.0_131 Built-By: username Scm-Connection: scm:git:git@github.com:jboss/jboss-parent-pom.git/quic kstart-parent/helloworld Specification-Vendor: JBoss by Red Hat ...