root/tags/2.3.0RC1/bin/phing.bat

Revision 143, 1.6 kB (checked in by hans, 2 years ago)

Merge 2.2 branch up to & including r138

  • Property svn:keywords set to author date id revision
Line 
1 @echo off
2
3 rem *********************************************************************
4 rem ** the phing build script for Windows based systems
5 rem ** $Id$
6 rem *********************************************************************
7
8 rem This script will do the following:
9 rem - check for PHP_COMMAND env, if found, use it.
10 rem   - if not found detect php, if found use it, otherwise err and terminate
11 rem - check for PHING_HOME evn, if found use it
12 rem   - if not found error and leave
13 rem - check for PHP_CLASSPATH, if found use it
14 rem   - if not found set it using PHING_HOME/classes
15
16 if "%OS%"=="Windows_NT" @setlocal
17
18 rem %~dp0 is expanded pathname of the current script under NT
19 set DEFAULT_PHING_HOME=%~dp0..
20
21 goto init
22 goto cleanup
23
24 :init
25
26 if "%PHING_HOME%" == "" set PHING_HOME=%DEFAULT_PHING_HOME%
27 set DEFAULT_PHING_HOME=
28
29 if "%PHP_COMMAND%" == "" goto no_phpcommand
30 if "%PHP_CLASSPATH%" == "" goto set_classpath
31
32 goto run
33 goto cleanup
34
35 :run
36 %PHP_COMMAND% -d html_errors=off -qC %PHING_HOME%\bin\phing.php %1 %2 %3 %4 %5 %6 %7 %8 %9
37 goto cleanup
38
39 :no_phpcommand
40 REM echo ------------------------------------------------------------------------
41 REM echo WARNING: Set environment var PHP_COMMAND to the location of your php.exe
42 REM echo          executable (e.g. C:\PHP\php.exe).  (Assuming php.exe on Path)
43 REM echo ------------------------------------------------------------------------
44 set PHP_COMMAND=php.exe
45 goto init
46
47 :err_home
48 echo ERROR: Environment var PHING_HOME not set. Please point this
49 echo variable to your local phing installation!
50 goto cleanup
51
52 :set_classpath
53 set PHP_CLASSPATH=%PHING_HOME%\classes
54 goto init
55
56 :cleanup
57 if "%OS%"=="Windows_NT" @endlocal
58 REM pause
Note: See TracBrowser for help on using the browser.