Changeset 151

Show
Ignore:
Timestamp:
02/13/07 20:44:58 (1 year ago)
Author:
hans
Message:

Fixes #74 for unix (sh): Phing commandline args don't support quoting / spaces

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bin/phing

    r123 r151  
    1010# - check for PHP_CLASSPATH, if found use it 
    1111#   - if not found set it using PHING_HOME/classes 
     12 
     13 
     14# Put all args in quotes 
     15phing_exec_debug=false 
     16phing_exec_args= 
     17for arg in "$@" ; do 
     18  phing_exec_args="$phing_exec_args \"$arg\"" 
     19done 
    1220 
    1321if [ -z "$PHING_HOME" ] ; then 
     
    7381fi 
    7482 
    75 $PHP_COMMAND -d html_errors=off -qC $PHING_HOME/bin/phing.php -logger phing.listener.AnsiColorLogger $@ 
     83phing_exec_cmd="exec $PHP_COMMAND -d html_errors=off -qC \"$PHING_HOME/bin/phing.php\" -logger phing.listener.AnsiColorLogger $phing_exec_args" 
     84if $phing_exec_debug ; then 
     85  echo $phing_exec_cmd 
     86fi 
     87eval $phing_exec_cmd