Browse Source

Changed antRun to handle arguments containing spaces properly. Removed

the magic that would invoke dir/command.sh instead of command.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267912 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 25 years ago
parent
commit
b469445f84
2 changed files with 7 additions and 7 deletions
  1. +4
    -0
      WHATSNEW
  2. +3
    -7
      src/bin/antRun

+ 4
- 0
WHATSNEW View File

@@ -17,6 +17,10 @@ org.apache.tools.ant to org.apache.tools.ant.types.


* <java> and <cvs> have lost some undocumented attributes. * <java> and <cvs> have lost some undocumented attributes.


* the Unix antRun script would search for command.sh in the directory
it changed to and invoke this instead of command if present. This
beahvior has been dropped.

Other changes: Other changes:
-------------- --------------




+ 3
- 7
src/bin/antRun View File

@@ -1,13 +1,9 @@
#! /bin/sh #! /bin/sh


# Args: DIR command # Args: DIR command
cd $1
CMD=$2
cd "$1"
CMD="$2"
shift shift
shift shift


if test -f $CMD.sh; then
CMD="sh $CMD.sh"
fi

echo $CMD $@ | sh
exec $CMD "$@"

Loading…
Cancel
Save