説明
Maple の generate コマンドを実行します。
実行例
% phing
Buildfile: /seasar.php/workspace/s2base.php5/build.xml
project > prepare:
[php] Evaluating PHP expression: require_once('../maple/webapp/config/maple.inc.php')
[php] Evaluating PHP expression: require_once('lib/S2Base/S2Base.cmd.php')
project > com:
[ Command list ]
0 : (exit)
1 : action dicon
2 : generate.php
3 : command
4 : dao
5 : dicon
6 : entity
7 : goya
8 : interceptor
9 : module
10 : service
choice ? : 2 <--- 2 : generate.php を選択
args ? : action sample simple sample index <--- Maple の generate.php 引数を入力します。
[INFO ] % php /seasar.php/workspace/maple/script/generate.php action sample simple sample index
[create] /seasar.php/workspace/s2base-maple/webapp/modules/sample/Sample.class.php
[create] /seasar.php/workspace/s2base-maple/webapp/modules/sample/maple.ini
[create] /seasar.php/workspace/s2base-maple/webapp/templates/sample.html
[create] /seasar.php/workspace/s2base-maple/htdocs/index.php
BUILD FINISHED
Total time: 44.2480 seconds
%
説明
Maple のアクションクラスに対して、アクションダイコンを生成します。
実行例
% phing
Buildfile: /seasar.php/workspace/s2base.php5/build.xml
project > prepare:
[php] Evaluating PHP expression: require_once('../maple/webapp/config/maple.inc.php')
[php] Evaluating PHP expression: require_once('lib/S2Base/S2Base.cmd.php')
project > com:
[ Command list ]
0 : (exit)
1 : action dicon
2 : generate.php
3 : command
4 : dao
5 : dicon
6 : entity
7 : goya
8 : interceptor
9 : module
10 : service
choice ? : 1 <--- 1 : action dicon を選択
[ Maple module list ]
0 : (exit)
1 : examples
2 : maple
3 : sample
choice ? : 3 <--- 3 : sample モジュールを選択
[ Action list ]
0 : (exit)
1 : /sample/Sample.class.php
choice ? : 1 <--- 1 : sample モジュールのアクションリストよりアクションを選択
[ generate information ]
module name : sample
action path : /sample/Sample.class.php
dicon path : /sample/Sample.dicon
confirm ? (y/n) : y <--- 表示される情報を確認
[INFO ] create : /seasar.php/workspace/maple/webapp/modules/sample/Sample.dicon
[ Command list ]
0 : (exit)
1 : action dicon
・・・
BUILD FINISHED
Total time: 13.7212 seconds
%
|