6.8. 배포 콘텐츠 보기
관리 배포에서 파일에 대한 정보를 찾아보고 JBoss EAP 관리 인터페이스를 사용하여 파일의 내용을 읽을 수 있습니다.
6.8.1. 배포에서 파일 검색 링크 복사링크가 클립보드에 복사되었습니다!
검색 콘텐츠 작업을 사용하여 관리 배포에서 파일 및 디렉터리를 확인합니다. 전체 배포 구조를 반환하거나 path 인수를 사용하여 특정 디렉터리의 경로를 제공하는 인수를 제공하지 않습니다.
Deployments 탭으로 이동하여 배포를 선택하고 드롭다운에서 View 를 선택하여 관리 콘솔에서 배포 콘텐츠를 탐색할 수도 있습니다.
/deployment=helloworld.war:browse-content(path=META-INF/)
그러면 helloworld.war 배포의 META-INF/ 디렉터리에 파일 및 디렉터리가 표시됩니다.
{
"outcome" => "success",
"result" => [
{
"path" => "MANIFEST.MF",
"directory" => false,
"file-size" => 827L
},
{
"path" => "maven/org.jboss.eap.quickstarts/helloworld/pom.properties",
"directory" => false,
"file-size" => 106L
},
{
"path" => "maven/org.jboss.eap.quickstarts/helloworld/pom.xml",
"directory" => false,
"file-size" => 2713L
},
{
"path" => "maven/org.jboss.eap.quickstarts/helloworld/",
"directory" => true
},
{
"path" => "maven/org.jboss.eap.quickstarts/",
"directory" => true
},
{
"path" => "maven/",
"directory" => true
},
{
"path" => "INDEX.LIST",
"directory" => false,
"file-size" => 251L
}
]
}
browse-content 작업에 다음 인수를 지정할 수도 있습니다.
- archive
- 아카이브 파일만 반환할 지 여부입니다.
- 깊이
- 반환할 파일의 깊이를 지정합니다.
6.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"
}]}
}
6.8.2.1. 파일의 콘텐츠 표시 링크 복사링크가 클립보드에 복사되었습니다!
attachment display 명령을 사용하여 MANIFEST.MF 파일의 내용을 읽습니다.
attachment display --operation=/deployment=helloworld.war:read-content(path=META-INF/MANIFEST.MF)
helloworld.war 배포에서 관리 CLI로 MANIFEST.MF 파일의 내용이 표시됩니다.
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
...
6.8.2.2. 파일의 콘텐츠 저장 링크 복사링크가 클립보드에 복사되었습니다!
attachment save 명령을 사용하여 MANIFEST.MF 파일의 내용을 파일 시스템에 저장합니다.
attachment save --operation=/deployment=helloworld.war:read-content(path=META-INF/MANIFEST.MF) --file=/path/to/MANIFEST.MF
이렇게 하면 MANIFEST.MF 파일이 helloworld.war 배포의 경로/MANIFEST.MF 의 파일 시스템에 저장됩니다. --file 인수를 사용하여 파일 경로를 지정하지 않으면 파일의 고유 첨부 ID를 사용하여 이름이 지정되고 관리 CLI의 작업 디렉터리에 저장됩니다. 기본적으로 EAP_HOME/bin/ 입니다.