Windows環境下でのMapleのgenerate.phpコマンドによるソース自動生成方法のメモです。 maple.batを当初修正して使おうと思ったのですが、どうもうまくいかないので、直接generate.phpを呼び出すことにしました。

前提

  • PHPのコマンド c:\program files\xampp\php\php.exe
  • プロジェクトディレクトリ c:\phptest\maple\
  • Mapleディレクトリ c:\phptest\maple\maple\
  • ドキュメントルート c:\phptest\maple\htdocs\

webappの生成

> "C:\Program Files\xampp\php\php.exe -qC c:\phptest\maple\maple\generate\script\generate.php webapp
 [create]  C:/phptest/maple/webapp
 [create]  C:/phptest/maple/webapp/modules
 [create]  C:/phptest/maple/webapp/logs
 [create]  C:/phptest/maple/webapp/components
 [create]  C:/phptest/maple/webapp/templates
 [create]  C:/phptest/maple/webapp/templates_c
 [create]  C:/phptest/maple/webapp/config
 [create]  C:/phptest/maple/webapp/config/maple.inc.php
 [create]  C:/phptest/maple/webapp/config/global-config.ini
 [create]  C:/phptest/maple/webapp/config/base.ini
 [create]  C:/phptest/maple/webapp/cache

actionの生成

> "C:\Program Files\xampp\php\php.exe -qC c:\phptest\maple\maple\generate\script\generate.php action hello_start smarty hello_world index
 [create]  C:\phptest\maple\webapp/modules/hello/start/Start.class.php
 [create]  C:\phptest\maple\webapp/modules/hello/start/maple.ini
 [create]  C:\phptest\maple\webapp/templates/hello/start.html
 [exists]  C:\phptest\maple/htdocs/index.php

Last-modified: 2006-11-01 (水) 17:49:29 (1406d)