<manifest>
SYNOPSIS
<manifest
>
</manifest>
| file*="ファイル名" |
| mode="update|replace" |
| encoding="UTF-8|文字エンコーディング" |
| <section> * | - | マニフェストのセクションを指定します. |
| <attribute> * | - | マニフェストの属性を指定します. |
説 明
マニフェストファイルを作成します。ただし <jar> タスク内で使用され
た場合は JAR に格納されるマニフェストをビルドファイル内で直接定義する事が出来ます。
(This description is based on Ant 1.7)
属 性
内 容
使用例
カレントディレクトリに
MANIFEST.MF を作成します。
Ant タスク
<manifest file="MANIFEST.MF"> <attribute name="Main-Class" value="biz.moyo.lab.sample.MyApp"/> <section name="biz/moyo/lab/sample/MyApp.class"> <attribute name="Sealed" value="false"/> </section> </manifest>
MANIFEST.MF
Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Created-By: 1.6.0_03-b05 (Sun Microsystems Inc.) Main-Class: biz.moyo.lab.sample.MyApp Name: biz/moyo/lab/sample/MyApp.class Sealed: false