[[PageOutline(2-5,Contents,pullout)]] = Browse contents in zipfile == Description Render a list of the contents of a zipped attachment or repository. Use a hash-link to view a specified line of code in the archive: `/path/to/ticket/Archiveviewer.egg/archiveviewer/zipfile#LINENO`, see screenshot below. You can see contents in zip in zip. cf. manifest in lib/jar in war in ear. ---- リポジトリ内または添付されたzipファイルの中身を一覧表示します。 ハッシュリンクが使えるので「zipファイルの中の特定のファイルの特定の行」に直接リンクしたりできる。 zipの中のzipの中身もみられるよ。ear内のwar内のlib/jar内のマニフェストの記載を見る、とかできます。 '''Screenshot''': Archive viewer: [[Image(Archiveviewer.png)]] '''Screenshot''': Archive viewer hashlink to view a specified line in the file: [[Image(ArchiveViewer-Hashlink.png)]] When `render-unsafe-contents = true` in the attachment section of trac.ini, HTML in the archive will display in your web-browser; relative-link may resolved in the zip file. You can zip mocks of web-application and attach it to a ticket or wiki. trac.ini で [attachment] render-unsafe-contents = true を指定していると、 htmをブラウザで開きます。このとき、html中の相対リンクをzipファイル内で解決できます。「Webアプリケーションの画面モックアップを HTML + CSS + JavaScript?とかで作って、zipパッケージにしてチケットに添付する」みたいな場面で便利なんじゃないかなー。 '''Screenshot''': Content: [[Image(content.png)]] '''Screenshot''': Raw zip file: [[Image(raw-zip.png)]] == !Bugs/Feature Requests Existing bugs and feature requests for ArchiveViewerPlugin are [report:9?COMPONENT=ArchiveViewerPlugin here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=ArchiveViewerPlugin new ticket]. [[TicketQuery(component=ArchiveViewerPlugin,group=type,format=progress)]] == Download Download the zipped source from [export:archiveviewerplugin here]. == Source You can check out ArchiveViewerPlugin from [http://trac-hacks.org/svn/archiveviewerplugin here] using Subversion, or [source:archiveviewerplugin browse the source] with Trac. == Installation General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. == Recent Changes [[ChangeLog(archiveviewerplugin, 3)]] == !Author/Contributors **Author:** [wiki:matobaa] [[BR]] **Maintainer:** [[Maintainer]] [[BR]] **Contributors:** アーカイブコンテナ名と中身の区切り文字に「!」を採用したのは、javaがjar内のリソースを指し示すときの表現にならった。ファイル名に使える文字だから衝突しちゃうかもしれないね。