diff options
Diffstat (limited to 'buildscripts/phing/bin/phing')
-rwxr-xr-x[-rw-r--r--] | buildscripts/phing/bin/phing | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/buildscripts/phing/bin/phing b/buildscripts/phing/bin/phing index e24c6cfb..bbc6eefe 100644..100755 --- a/buildscripts/phing/bin/phing +++ b/buildscripts/phing/bin/phing @@ -1,6 +1,6 @@ #!/bin/sh # Shell wrapper for Phing -# $Id: phing,v 1.2 2006/01/23 21:51:16 mrook Exp $ +# $Id$ # # This script will do the following: # - check for PHP_COMMAND env, if found, use it. @@ -10,6 +10,14 @@ # - check for PHP_CLASSPATH, if found use it # - if not found set it using PHING_HOME/classes + +# Put all args in quotes +phing_exec_debug=false +phing_exec_args= +for arg in "$@" ; do + phing_exec_args="$phing_exec_args \"$arg\"" +done + if [ -z "$PHING_HOME" ] ; then # echo "WARNING: PHING_HOME environment not set. Attempting to guess." @@ -72,4 +80,8 @@ if (test -z "$PHP_CLASSPATH") ; then export PHP_CLASSPATH fi -$PHP_COMMAND -d html_errors=off -qC $PHING_HOME/bin/phing.php -logger phing.listener.AnsiColorLogger $@ +phing_exec_cmd="exec $PHP_COMMAND -d html_errors=off -qC \"$PHING_HOME/bin/phing.php\" -logger phing.listener.AnsiColorLogger $phing_exec_args" +if $phing_exec_debug ; then + echo $phing_exec_cmd +fi +eval $phing_exec_cmd
\ No newline at end of file |