´û¸¤Î
manifest
¥Õ¥¡¥¤¥ë¤ò»È¤Ã¤Æ¿·¤¿¤Ê
jar
¥¢¡¼¥«¥¤¥Ö¤òºîÀ®¤·¤¿¤¤¤È¤¤Ï¡¢
-m
¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤Æ¤½¤Î
manifest
¥Õ¥¡¥¤¥ë¤ò»ØÄꤷ¤Þ¤¹¡£°Ê²¼¤ËÎã¤ò¼¨¤·¤Þ¤¹¡£
example% jar cmf myManifestFile myJarFile *.class
cmf
¤Ç¤Ï¤Ê¤¯
cfm
¤ò»ØÄꤹ¤ë¾ì¹ç (¤Ä¤Þ¤ê¡¢
m
¥ª¥×¥·¥ç¥ó¤È
f
¥ª¥×¥·¥ç¥ó¤Î½çÈÖ¤òµÕ¤Ë¤¹¤ë¾ì¹ç)¡¢ºÇ½é¤Ë
jar
¥¢¡¼¥«¥¤¥Ö̾¤ò»ØÄꤷ¡¢¼¡¤Ë manifest ¥Õ¥¡¥¤¥ë̾¤ò»ØÄꤹ¤ë
ɬÍפ¬¤¢¤ê¤Þ¤¹¡£
¥¤¥á¡¼¥¸¡¢¥ª¡¼¥Ç¥£¥ª¥Õ¥¡¥¤¥ë¡¢¤ª¤è¤Ó¥¯¥é¥¹ÍѤΥµ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤¬
¤¹¤Ç¤Ë
HTML
¥Ç¥£¥ì¥¯¥È¥êÃæ¤Ë¸ºß¤·¤Æ¤¤¤ë¾ì¹ç¡¢
jar
¤ò»È¤Ã¤Æ¸Ä¡¹¤Î¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤òñ°ì¤Î
jar
¥Õ¥¡¥¤¥ë¤Ë¥¢¡¼¥«¥¤¥Ö¤Ç¤¤Þ¤¹¡£
example% ls
audio classes images
example% jar cvf bundle.jar audio classes images
adding: audio/1.au
adding: audio/2.au
adding: audio/3.au
adding: audio/spacemusic.au
adding: classes/Animator.class
adding: classes/Wave.class
adding: images/monkey.jpg
adding: images/at_work.gif
example% ls -l
total 142
drwxr-xr-x 2 brown green 512 Aug 1 22:33 audio
-rw-r--r-- 1 brown green 68677 Aug 1 22:36 bundle.jar
drwxr-xr-x 2 brown green 512 Aug 1 22:26 classes
drwxr-xr-x 2 brown green 512 Aug 1 22:25 images
example%
¼¡¤ÎÎã¤Ç¤Ï¡¢
jar
¥Ä¡¼¥ë¤Ë
t
¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤Æ
jar
¥Õ¥¡¥¤¥ëÃæ¤Î¥¨¥ó¥È¥ê̾¤òɽ¼¨¤Ç¤¤Þ¤¹¡£
example% ls
audio bundle.jar classes images
example% jar tf bundle.jar
META-INF/MANIFEST.MF
audio/1.au
audio/2.au
audio/3.au
audio/spacemusic.au
classes/Animator.class
classes/Wave.class
images/monkey.jpg
images/at_work.gif
example%
¥¢¡¼¥«¥¤¥ÖÃæ¤Î³Æ¥Õ¥¡¥¤¥ë¤Î¾ÜºÙ¾ðÊ󡢤¿¤È¤¨¤Ð¥µ¥¤¥º¤ä
ºÇ¿·¹¹¿·ÆüÉդʤɤâɽ¼¨¤·¤¿¤¤¾ì¹ç¤Ï¡¢
v
¥ª¥×¥·¥ç¥ó¤ò»ÈÍѤ·¤Þ¤¹¡£¼¡¤ËÎã¤ò¼¨¤·¤Þ¤¹¡£
example% jar tvf bundle.jar
145 Thu Aug 01 22:27:00 PDT 1996 META-INF/MANIFEST.MF
946 Thu Aug 01 22:24:22 PDT 1996 audio/1.au
1039 Thu Aug 01 22:24:22 PDT 1996 audio/2.au
993 Thu Aug 01 22:24:22 PDT 1996 audio/3.au
48072 Thu Aug 01 22:24:23 PDT 1996 audio/spacemusic.au
16711 Thu Aug 01 22:25:50 PDT 1996 classes/Animator.class
3368 Thu Aug 01 22:26:02 PDT 1996 classes/Wave.class
12809 Thu Aug 01 22:24:48 PDT 1996 images/monkey.jpg
527 Thu Aug 01 22:25:20 PDT 1996 images/at_work.gif
example%
³ô¼è°ú¥¢¥×¥ê¥±¡¼¥·¥ç¥ó (¥¢¥×¥ì¥Ã¥È) ¤ò¼¡¤ÎÊ£¿ô¤Î
jar
¥Õ¥¡¥¤¥ë¤Ë¥Ð¥ó¥É¥ë¤·¡¢