マニフェスト内のすべての依存関係を宣言するマニフェストを生成するタスク。依存関係は、指定したパスを検索し、jar マニフェストの Extension / 「オプション パッケージ」仕様を検索することで決定されます。
このタスクでは、「オプション パッケージ」仕様で定義された拡張機能が使用されています。オプション パッケージの詳細については、「Optional Package Versioning」ドキュメント (Java Standard Edition パッケージのドキュメント バンドルにある guide/extensions/versioning.html ファイル) または Extension and ExtensionSet documentation のオンライン ドキュメントをご覧ください。
| 属性 | 説明 | 必須 |
|---|---|---|
| destfile | マニフェストを生成するファイル | はい |
Extension ライブラリが実装する拡張機能。
ExtensionSet jar のすべての依存関係を含むセット。
ExtensionSet jar のすべてのオプションの依存関係を含むセット。(オプションの依存関係がある場合は依存関係が使用され、ない場合は無視されます)
単一の Extension に対して生成された基本マニフェスト
<extension id="e1"
extensionName="MyExtensions"
specificationVersion="1.0"
specificationVendor="Peter Donald"
implementationVendorID="vv"
implementationVendor="Apache"
implementationVersion="2.0"
implementationURL="https://somewhere.com"/>
<jarlib-manifest destfile="myManifest.txt">
<extension refid="e1"/>
</jarlib-manifest>
ファイルセットで拡張機能を検索する: 必須の依存関係とオプションの依存関係を含む大規模な例
<extension id="e1"
extensionName="MyExtensions"
specificationVersion="1.0"
specificationVendor="Peter Donald"
implementationVendorID="vv"
implementationVendor="Apache"
implementationVersion="2.0"
implementationURL="https://somewhere.com"/>
<extensionSet id="option.ext">
<libfileset dir="lib/option">
<include name="**/*.jar"/>
</libfileset>
</extensionSet>
<extensionSet id="depends.ext">
<libfileset dir="lib/required">
<include name="*.jar"/>
</libfileset>
</extensionSet>
<jarlib-manifest destfile="myManifest.txt">
<extension refid="e1"/>
<depends refid="depends.ext"/>
<options refid="option.ext"/>
</jarlib-manifest>