LoginSignup
0
0

More than 5 years have passed since last update.

sencha cmdのビルド時に任意のファイルを加える

Last updated at Posted at 2013-04-12

Ext JSのプロジェクトをビルドする際に、index.htmlではなく、index.phpがページのファイルになる場合。
それを指定するには、プロジェクトのルートにlocal.propertiesというファイルを作り、その中で、

app.page.name=index.php

と指定する。
これは、Sencha Cmd V3 の場合。V4からは .sencha/sencha.cfg の次の行を書きかえる

app.page.name=index.html

また、プロジェクト以外の他のページなどのファイルもビルドに加えたいときには、build.xmlの中に次のように記述する。

<target name="-after-page">
    <copy file="${app.dir}/login.php"  tofile="${build.dir}/login.php"/>
    <copy file="${app.dir}/logout.php" tofile="${build.dir}/logout.php"/>
</target>

ディレクトリの場合

<target name="-after-page">
    <copy todir="${build.dir}/php">
        <fileset dir="${app.dir}/php" />
    </copy>
</target>
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0