<dir> (Previous) (Next) <file> のタスク

View this page in Last updated: Sun, 07 Sep 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

<file>

<file> -- <contents> タグ内のファイルを記述する

ファイルを記述する

<file> タグの意味は package.xml 1.0 とほぼ同じです。 必須属性は name および role です。オプションの属性として baseinstalldir および md5sum を指定可能です。 オプションの属性 platform および install-as は、 release タグ に置き換えられました。特に、install-as を指定するには <install> が用いられ、<ignore> タグを <installconditions> とともに 使用することによって特定のプラットフォームでのみインストール対象外と することが可能です。

platform 属性になじみが深い人のために、例をあげて説明します。

<file name="scripts/foo.bat" role="script" install-as="foo.bat" platform="windows">

この例のような場合は、2 つの release セクションを作成します。 file タグは以下のようになり、

<file name="scripts/foo.bat" role="script">

release セクションは、このようになります。

<phprelease> <installconditions> <os>windows</os> </installconditions> <install name="scripts/foo.bat" as="foo.bat"/> </phprelease> <phprelease> <ignore name="scripts/foo.bat"/> </phprelease>

ふたつめの <phprelease> の中に <installconditions> タグを 設定し、その中で <os>unix</os> を記述することもすぐに できますが、それは必要ではないことに注意しましょう。 というのも、ふたつめの release タグは、windows システム以外の すべての場合に処理されるからです。

<dir> (Previous) (Next) <file> のタスク

Download Documentation Last updated: Sun, 07 Sep 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.