head	1.3;
access;
symbols;
locks; strict;
comment	@# @;


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

1.2
date	2000.07.20.19.47.19;	author berin;	state Exp;
branches;
next	1.1;

1.1
date	2000.07.12.04.50.19;	author berin;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Updated build system to be more ant friendly. Now there is no need for
custom build.[sh|bat] to build classpath.
@
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=$CLASSPATH:$LOCALCLASSPATH
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
@We're almost there.

Ant has been updated to the latest 1.1 release, and the build script has been
modified extensively to be real fast.  Thanks to Pete Donald for his input.  I merged
many of his ideas into the file, but retained some of the ones in there.

Added a new target called "test" so that the javadocs and such don't have to be
built everytime you test the system.

Standardized on one form of loading a class (unless it was called from a static
method).

Still, the issue with the Reference files remains.  There are some testing messages
in BlockFactory and Avalon to test if they are being called.  I think NamingManager
isn't seeing BlockFactory outside of JBuilder.  I will test again later to see if there
is anything to be done about that.  If not, DefaultBlockContext will have a reference
to BlockFactory and deal directly.
@
text
@@


1.1
log
@Upgraded Ant.  Faster, more features.  Incorporates jar signing, which
is needed for later.
@
text
@d40 4
a43 4
# Use the original tools.jar if available
if [ ! "$JAVA_HOME" = "" ] ; then
   CLASSPATH=${JAVA_HOME}/lib/tools.jar:$CLASSPATH
   CLASSPATH=${JAVA_HOME}/lib/classes.zip:$CLASSPATH
d46 9
d56 1
a56 4
CLASSPATH=${ANT_HOME}/lib/xml.jar:$CLASSPATH
CLASSPATH=${ANT_HOME}/lib/ant.jar:$CLASSPATH
CLASSPATH=${ANT_HOME}/lib/moo.jar:$CLASSPATH
export CLASSPATH
a57 1
$JAVACMD -Dant.home=${ANT_HOME} org.apache.tools.ant.Main $@@
@

