Show
Ignore:
Timestamp:
02/07/09 18:37:04 (10 months ago)
Author:
dr2chase
Message:

[repository, scripts] more movement toward using source paths as cache tags; cleaned up ant-related scripts

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ProjectFortress/ant

    r3371 r3388  
    2929 
    3030find_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. 
    4533  export NODOTPATH="`echo "$PATH" | sed -e '1,$s/^[.]://g'`" 
    4634  NODOTPATH="`echo "$NODOTPATH" | sed -e '1,$s/:[.]:/:/g'`" 
     
    6048        exit $n 
    6149fi 
    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 "$@"