head	1.3;
access;
symbols
	Avalon-3_0a4-dev:1.2
	avalon30a2:1.2;
locks; strict;
comment	@# @;


1.3
date	2000.12.18.22.51.53;	author donaldp;	state dead;
branches;
next	1.2;

1.2
date	2000.09.09.09.05.48;	author donaldp;	state Exp;
branches;
next	1.1;

1.1
date	2000.08.03.10.33.18;	author donaldp;	state Exp;
branches;
next	;


desc
@@


1.3
log
@removed old tools locations
@
text
@#! /bin/sh

if [ -f $HOME/.antrc ] ; then 
  . $HOME/.antrc
fi

if [ "$ANT_HOME" = "" ] ; then
  # try to find ANT
  if [ -d /opt/ant ] ; then 
    ANT_HOME=/opt/ant
  fi

  if [ -d ${HOME}/opt/ant ] ; then 
    ANT_HOME=${HOME}/opt/ant
  fi

  ## resolve links - $0 may be a link to ant's home
  PRG=$0
  progname=`basename $0`
  
  while [ -h "$PRG" ] ; do
    ls=`ls -ld "$PRG"`
    link=`expr "$ls" : '.*-> \(.*\)$'`
    if expr "$link" : '.*/.*' > /dev/null; then
	PRG="$link"
    else
	PRG="`dirname $PRG`/$link"
    fi
  done
  
  ANT_HOME=`dirname "$PRG"`/..

fi

# Allow .antrc to specifiy flags to java cmd
if [ "$JAVACMD" = "" ] ; then 
  JAVACMD=java
fi

LOCALCLASSPATH=`echo $ANT_HOME/lib/*.jar | tr ' ' ':'`

if [ "$CLASSPATH" != "" ] ; then
  LOCALCLASSPATH=$LOCALCLASSPATH:$CLASSPATH
fi

if [ "$JAVA_HOME" != "" ] ; then
  if test -f $JAVA_HOME/lib/tools.jar ; then
    LOCALCLASSPATH=$LOCALCLASSPATH:$JAVA_HOME/lib/tools.jar
  fi

  if test -f $JAVA_HOME/lib/classes.zip ; then
    LOCALCLASSPATH=$LOCALCLASSPATH:$JAVA_HOME/lib/classes.zip
  fi
fi

$JAVACMD -classpath $LOCALCLASSPATH -Dant.home=${ANT_HOME} $ANT_OPTS org.apache.tools.ant.Main $@@

@


1.2
log
@Moved proposal build file to src/mk with rest of other build files.

Updated build so that it will actually run when poluted CLASSPATH with previous ant/other jars existing in it.

Fixed few warnings in conf.xml

Formatting changes to homogenize.

Removed unused jars

Removed BlockContext and use Context and ContextResources in place
@
text
@@


1.1
log
@Updated build system to be more ant friendly. Now there is no need for
custom build.[sh|bat] to build classpath.
@
text
@d43 1
a43 1
  LOCALCLASSPATH=$CLASSPATH:$LOCALCLASSPATH
@

