root/trunk/prado-cli.bat

Revision 1953, 1.2 kB (checked in by wei, 16 months ago)

update phing simpletest task

Line 
1@echo off
2
3rem *************************************************************
4rem ** CLI for Windows based systems (based on phing.bat)
5rem *************************************************************
6
7rem This script will do the following:
8rem - check for PHP_COMMAND env, if found, use it.
9rem   - if not found detect php, if found use it, otherwise err and terminate
10
11if "%OS%"=="Windows_NT" @setlocal
12
13rem %~dp0 is expanded pathname of the current script under NT
14set PRADO_DIR=%~dp0
15
16goto init
17
18:init
19
20if "%PHP_COMMAND%" == "" goto no_phpcommand
21
22IF EXIST ".\framework\prado-cli.php" (
23  %PHP_COMMAND% -d html_errors=off -d open_basedir= -q ".\framwork\prado-cli.php" %1 %2 %3 %4 %5 %6 %7 %8 %9
24) ELSE (
25  %PHP_COMMAND% -d html_errors=off -d open_basedir= -q "%PRADO_DIR%\framework\prado-cli.php" %1 %2 %3 %4 %5 %6 %7 %8 %9
26)
27goto cleanup
28
29:no_phpcommand
30rem echo ------------------------------------------------------------------------
31rem echo WARNING: Set environment var PHP_COMMAND to the location of your php.exe
32rem echo          executable (e.g. C:\PHP\php.exe).  (assuming php.exe on PATH)
33rem echo ------------------------------------------------------------------------
34set PHP_COMMAND=php.exe
35goto init
36
37:cleanup
38if "%OS%"=="Windows_NT" @endlocal
39rem pause
Note: See TracBrowser for help on using the browser.