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

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

<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 システム以外の すべての場合に処理されるからです。

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

Download Documentation Last updated: Sun, 21 Jun 2009
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.