jar -cvfm update.bundle manifest.mf *.jar
-> sample.bundle파일 생성
jar -cvfM sample.bundle *.*
-> application.bundle파일 생성
Jar파일에 대한 Handling
1. Manifest 파일을 포함한 Jar파일
JarFile zipfile = new JarFile(source);
*Manifest파일 내부 Attribute들의 대한 획득
Attributes attributes = zipfile.getManifest().getMainAttributes();
String name = attributes.getValue(NAME);
String version = attributes.getValue(VERSION);
*Jar파일 내부 구성 폴더, 파일들에 대한 접근과 처리
Enumeration
while (e.hasMoreElements()) {
JarEntry entry = (JarEntry)e.nextElement();
String entryName = entry.getName();
.
.
}
RECENT COMMENT