Changeset 3388 for trunk/ProjectFortress/ant
- Timestamp:
- 02/07/09 18:37:04 (10 months ago)
- Files:
-
- 1 modified
-
trunk/ProjectFortress/ant (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ProjectFortress/ant
r3371 r3388 29 29 30 30 find_ant(){ 31 32 # if $ANT_HOME is set then search for ant there 33 if [ "x$ANT_HOME" != "x" ]; then 34 if [ -x "$ANT_HOME/bin/ant" ]; then 35 echo "$ANT_HOME/bin/ant" 36 return 37 else 38 echo "Did not find ant in $ANT_HOME/bin" >&2 39 fi 40 else 41 echo "ANT_HOME is not set" >&2 42 fi 43 44 # Otherwise use whatever is in $PATH, minus any dots 31 # Strip "." from the path, and look for ant. 32 # This avoids infinite regress if this is the first or only "ant" on the normal PATH. 45 33 export NODOTPATH="`echo "$PATH" | sed -e '1,$s/^[.]://g'`" 46 34 NODOTPATH="`echo "$NODOTPATH" | sed -e '1,$s/:[.]:/:/g'`" … … 60 48 exit $n 61 49 fi 62 export ANT_OPTS="-Xmx256m" 63 "$ant_exec" -noclasspath -lib third_party/junit "$@" 50 51 # Note that the scripts reference must export their symbols so that they are available below. 52 . antrc_suggested 53 54 "$ant_exec" -noclasspath "$@"

