tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject cvs commit: jakarta-servletapi buildServletapi buildServletapi.xml
Date Thu, 27 Apr 2000 23:09:46 GMT
craigmcc    00/04/27 16:09:46

  Added:       .        buildServletapi buildServletapi.xml
  Add shell and Ant scripts for nightly integration builds.
  Revision  Changes    Path
  1.1                  jakarta-servletapi/buildServletapi
  Index: buildServletapi
  # -----------------------------------------------------------------------------
  # buildServletapi -- Build Nightly Distribution Files for Servletapi
  # Goals:
  # - Create nightly distribution files of the JAKARTA-SERVLETAPI subproject,
  #   in the usual formats.
  # - Optionally, install these distribution files on the Jakarta web server
  # Prerequisites:
  # - The user under which this script runs must have done a CVS "login"
  #   for anonymous access to the Jakarta repositories
  # - Java Development Kit, version 1.2.2, installed and configured
  #   (avoids compiler problems in 1.1 and 1.3 related to XML classes)
  # - ANT 3.1 binary distribution installed
  # - ANT_HOME points at this distribution directory (you can set it
  #   in ~/.antrc)
  # - The "ant" script in $ANT_HOME/bin is accessible on your PATH
  # - The "buildServletapi.xml" script (from the servletapi source repository) is
  #   in the same directory that this script is.
  # - To execute the "install" target, you must be running on the Jakarta
  #   server, as part of group "jakarta".
  # Author:	Craig R. McClanahan
  # Version:	$Revision: 1.1 $ $Date: 2000/04/27 23:09:46 $
  # -----------------------------------------------------------------------------
  . ~/.antrc
  ant -buildfile buildServletapi.xml -Djaxp.home=$JAXP_HOME "$@"
  1.1                  jakarta-servletapi/buildServletapi.xml
  Index: buildServletapi.xml
  <project name="Servlet API Classes Nightly Distribution" default="all" basedir=".">
    <!-- Build Management Properties
      buildSAPI.archive        Distribution directory to be archived
      buildSAPI.cvsRoot        CVS login root for Ant
      buildSAPI.dist           Distribution directory produced by "build" target           Base name of packaged distribution files
      buildSAPI.package        CVS package name for Ant
      buildSAPI.server         Jakarta server's nightly builds directory
      buildSAPI.source         Directory into which Ant sources are extracted
      buildSAPI.uploads	     Directory into which archives to upload are made
      jaxp.home                Home directory of the JAXP distribution
    <property name="buildSAPI.archive"      value="archive/jakarta-servletapi"/>
    <property name="buildSAPI.cvsRoot"      value=""/>
    <property name="buildSAPI.dist"         value="dist/servletapi"/>
    <property name=""         value="jakarta-servletapi"/>
    <property name="buildSAPI.package"      value="jakarta-servletapi"/>
    <property name="buildSAPI.server"       value="/www/"/>
    <property name="buildSAPI.source"       value="jakarta-servletapi"/>
    <property name="buildSAPI.uploads"      value="uploads/servletapi"/>
    <!-- Extract the most recent sources from the CVS repository -->
    <target name="extract">
      <deltree dir="${buildSAPI.source}"/>
      <cvs cvsRoot="${buildSAPI.cvsRoot}" package="${buildSAPI.package}"
    <!-- Build the distribution according to its instructions -->
    <target name="build">
      <ant dir="${buildSAPI.source}" target="clean"/>
      <ant dir="${buildSAPI.source}" target="dist"/>
    <!-- Insert add-ons as required for the nightly distribution -->
    <target name="addons">
      <!-- No addons required -->
    <!-- Package up the distribution in various formats -->
    <target name="package">
      <!-- Recreate the archive directory -->
      <deltree dir="${buildSAPI.archive}"/>
      <mkdir   dir="${buildSAPI.archive}"/>
      <copydir src="${buildSAPI.dist}" dest="${buildSAPI.archive}"/>
      <!-- Recreate the uploads directory -->
      <deltree dir="${buildSAPI.uploads}"/>
      <mkdir dir="${buildSAPI.uploads}"/>
      <!-- Create the uploadable files in various formats -->
      <tar tarfile="${buildSAPI.uploads}/${}-${DSTAMP}.tar"
      <gzip    src="${buildSAPI.uploads}/${}-${DSTAMP}.tar"
      <exec    dir="${buildSAPI.uploads}"
           command="compress ${}-${DSTAMP}.tar"/>
      <zip zipfile="${buildSAPI.uploads}/${}-${DSTAMP}.zip"
    <!-- Install the distributable files to the Jakarta server -->
    <!-- Obviously, this will only work right on the real server!!! -->
    <target name="install">
      <copydir src="${buildSAPI.uploads}" dest="${buildSAPI.server}"
      <chmod   src="${buildSAPI.server}/${}-${DSTAMP}.*"
      <chmod   src="${buildSAPI.server}/${}-${DSTAMP}.*"
    <!-- All-in-one target (except for install) -->
    <target name="all" depends="extract,build,addons,package"/>

View raw message