tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-tomcat/proposals/catalina build.sh build.xml
Date Thu, 20 Jan 2000 06:27:18 GMT
craigmcc    00/01/19 22:27:17

  Added:       proposals/catalina build.sh build.xml
  Log:
  Build script and ANT driver file for the "Catalina" proposal.
  
  Revision  Changes    Path
  1.1                  jakarta-tomcat/proposals/catalina/build.sh
  
  Index: build.sh
  ===================================================================
  #! /bin/sh
  
  # $Id: build.sh,v 1.1 2000/01/20 06:27:17 craigmcc Exp $
  
  if [ -z "$JAVA_HOME" ]
  then
  JAVACMD=`which java`
  if [ -z "$JAVACMD" ]
  then
  echo "Cannot find JAVA. Please set your PATH."
  exit 1
  fi
  JAVA_BINDIR=`dirname $JAVACMD`
  JAVA_HOME=$JAVA_BINDIR/..
  fi
  
  JAVACMD=$JAVA_HOME/bin/java
  
  cp=../../../jakarta-tools/ant.jar:../../../jakarta-tools/moo.jar:../../../jakarta-tools/projectx-tr2.jar:../../../build/catalina/classes:../../../build/tomcat/classes:$JAVA_HOME/lib/tools.jar
  
  $JAVACMD -classpath $cp:$CLASSPATH org.apache.tools.ant.Main "$@"
  
  chmod +x `find ../../../build -name "*.sh"`
  
  
  
  1.1                  jakarta-tomcat/proposals/catalina/build.xml
  
  Index: build.xml
  ===================================================================
  <project name="Tomcat-Next" default="main" basedir=".">
  
    <!-- Initialize property values -->
    <property name="build.compiler" value="classic"/>
    <property name="catalina.build" value="../../../build/catalina"/>
    <property name="catalina.home"  value="../../../dist/catalina"/>
    <property name="jakarta.tools"  value="../../../jakarta-tools"/>
  
    <!-- Create directories and copy static files -->
    <target name="prepare">
      <mkdir dir="${catalina.build}"/>
      <mkdir dir="${catalina.build}/classes"/>
      <mkdir dir="${catalina.build}/etc"/>
      <mkdir dir="${catalina.build}/src"/>
      <mkdir dir="${catalina.build}/lib"/>
      <copyfile src="${jakarta.tools}/projectx-tr2.jar"
               dest="${catalina.build}/lib/xml.jar"/>
    </target>
  
    <!-- Compile the build directory -->
    <target name="main" depends="prepare">
      <javac srcdir="src/share" destdir="${catalina.build}/classes"
       classpath="${catalina.build}/lib/xml.jar" debug="on"/>
    </target>
  
    <!-- Compile the distribution directory -->
    <target name="dist" depends="main">
      <mkdir dir="${catalina.home}"/>
      <!-- FIXME: Distribution is not currently relevant -->
    </target>
  
    <!-- Clean up the build directory -->
    <target name="clean">
      <deltree dir="${catalina.build}"/>
    </target>
  
    <!-- Clean up the distribution directory -->
    <target name="dist.clean">
      <deltree dir="${catalina.home}"/>
    </target>
  
    <!-- Clean up and compile everything -->
    <target name="all" depends="clean,dist.clean,main,dist"/>
  
  </project>
  
  
  

Mime
View raw message