jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morg...@apache.org
Subject cvs commit: jakarta-taglibs/dbtags build.xml
Date Mon, 30 Jul 2001 16:14:09 GMT
morgand     01/07/30 09:14:09

  Modified:    dbtags   build.xml
  Log:
  temporarily reverting to old build
  
  Revision  Changes    Path
  1.9       +212 -15   jakarta-taglibs/dbtags/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/dbtags/build.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- build.xml	2001/07/19 23:36:11	1.8
  +++ build.xml	2001/07/30 16:14:09	1.9
  @@ -1,24 +1,221 @@
  -<?xml version="1.0"?>
  +<!-- ANT Build Script for the "dbtags" Custom Tag Library -->
  +<project name="dbtags" default="main" basedir=".">
   
  -<!DOCTYPE project [
  -    <!ENTITY common SYSTEM "file:../common.xml">
  -]>
  +    <!-- ******************** Adjustable Properties *********************** -->
   
  -<project name="dbtags" default="main">
  +    <!--
   
  -  <!-- create this file to store the locations of your dependant jars -->
  -  <property file="../build.properties"/>
  -  <property name="classpath" value="${servlet.jar}:${jdbc2_0-stdext.jar}"/>
  +        The following property values should be examined and customized
  +        for each custom tag library subproject.
   
  -  <property name="checkRequirements.pre" value="checkRequirements.pre"/>
  +        ant.home                    Home directory for the ANT build tool
  +                                    This is normally defaulted from the
  +                                    ANT_HOME environment variable in the
  +                                    build script.
   
  -  <target name="checkRequirements.pre">
  -    <antcall target="checkRequiredFile">
  -       <param name="file" value="${jdbc2_0-stdext.jar}"/>
  -       <param name="fail.message" value="a jar file containing the jdbc2_0-stdext classes
is required to compile the dbtags taglib. please define the property jdbc2_0-stdext.jar in
your build.properties file and ensure that the file exists"/>
  -    </antcall>
  +        servlet.jar                 Pathname of the servlet API classes
  +                                    you are using to compile, such as the
  +                                    one that comes with Tomcat.  This is
  +                                    normally defaulted from the SERVLET_JAR
  +                                    environment variable in the build script.
  +
  +        taglib.name                 Base name of this tag library subproject.
  +
  +    -->
  +
  +    <property name="taglib.name"    value="dbtags"/>
  +    <property name="ant.home"       value="../../jakarta-ant"/>
  +    <property name="servlet.jar"    value="../../jakarta-servletapi/lib/servlet.jar"/>
  +    <property name="jdbc-ext.jar"   value="lib/jdbc2_0-stdext.jar"/>
  +
  +
  +    <!-- ****************** Project Standard Properties ******************* -->
  +
  +    <!--
  +
  +        The following property values reflect the standard directory
  +        organization for the jakarta-taglibs project, and should not
  +        be changed or overridden.
  +
  +        build.dir                   Base directory for build targets
  +        dist.dir                    Base directory for distribution targets
  +        taglibs.xsl                 Taglibs stylesheet
  +
  +    -->
  +
  +    <property name="build.dir"      value="../build"/>
  +    <property name="dist.dir"       value="../dist"/>
  +    <property name="taglibs.xsl"    value="../src/doc/stylesheets/taglibs.xsl"/>
  +
  +    <!-- *********************** Default Properties ********************** -->
  +
  +    <!--
  +
  +        The following property values reflect the recommended directory
  +        structure for each custom tag library subproject.  You should only
  +        need to adjust or override them if you use a different organization.
  +
  +        conf.src                    Library configuration source directory
  +        doc.src                     Documentation app source directory
  +        examples.src                Examples app source directory
  +        library.src                 Library Java source directory
  +
  +    -->
  +
  +    <property name="conf.src"       value="conf"/>
  +    <property name="doc.src"        value="doc"/>
  +    <property name="examples.src"   value="examples"/>
  +    <property name="library.src"    value="src"/>
  +    <property name="lib.src"        value="lib"/>
  +
  +
  +    <!-- ********************* Derived Properties ************************* -->
  +
  +    <!--
  +
  +        These property values are derived from the previously defined values,
  +        and should not normally be overridden from the command line.
  +
  +        build.doc                   Target directory for documentation app
  +        build.examples              Target directory for examples app
  +        build.library               Target directory for tag library
  +        dist.doc                    Destination WAR for documentation app
  +        dist.examples               Destination WAR for examples app
  +        dist.library                Destination JAR for tag library
  +        dist.tld                    Destination TLD file for tag library
  +
  +    -->
  +
  +    <property name="build.doc"      value="${build.dir}/${taglib.name}/${taglib.name}-doc"/>
  +    <property name="build.examples" value="${build.dir}/${taglib.name}/${taglib.name}-examples"/>
  +    <property name="build.library"  value="${build.dir}/${taglib.name}/${taglib.name}"/>
  +    <property name="dist.doc"       value="${dist.dir}/${taglib.name}/${taglib.name}-doc.war"/>
  +    <property name="dist.examples"  value="${dist.dir}/${taglib.name}/${taglib.name}-examples.war"/>
  +    <property name="dist.library"   value="${dist.dir}/${taglib.name}/${taglib.name}.jar"/>
  +    <property name="dist.tld"       value="${dist.dir}/${taglib.name}/${taglib.name}.tld"/>
  +    <property name="taglibs.doc"    value="${dist.dir}/doc/doc/${taglib.name}-doc"/>
  +
  +
  +  <!-- ********************** Destination Preparation ********************* -->
  +
  +  <target name="prepare">
  +    <!-- Set up build directories -->
  +    <mkdir dir="${build.dir}"/>
  +    <mkdir dir="${build.doc}"/>
  +    <mkdir dir="${build.doc}/javadoc"/>
  +    <mkdir dir="${build.doc}/WEB-INF"/>
  +    <mkdir dir="${build.doc}/WEB-INF/classes"/>
  +    <mkdir dir="${build.doc}/WEB-INF/lib"/>
  +    <mkdir dir="${build.examples}"/>
  +    <mkdir dir="${build.examples}/WEB-INF"/>
  +    <mkdir dir="${build.examples}/WEB-INF/classes"/>
  +    <mkdir dir="${build.examples}/WEB-INF/lib"/>
  +    <mkdir dir="${build.library}"/>
  +    <mkdir dir="${build.library}/META-INF"/>
  +    <!-- Set up distribution directory -->
  +    <mkdir dir="${dist.dir}"/>
  +    <mkdir dir="${dist.dir}/${taglib.name}"/>
  +  </target>
  +
  +
  +  <!-- **************** Compile Tag Library Components ******************** -->
  +
  +  <!-- Compile the documentation application -->
  +  <target name="documentation" depends="prepare">
  +    <copy todir="${build.doc}/WEB-INF">
  +      <fileset dir="${doc.src}/conf"/>
  +    </copy>
  +    <!-- intro.xml isn't part of the documentation application,
  +         this is just a handy place to build it for the web site. -->
  +    <style in="xml/intro.xml"
  +           destdir="${build.doc}"
  +           out="${build.doc}/intro.html"
  +           style="${taglibs.xsl}">
  +      <param name="prefix" expression="../../"/>
  +    </style>
  +    <copy todir="${build.doc}">
  +      <fileset dir="${doc.src}/web">
  +        <include name="**/*.html"/>
  +      </fileset>
  +    </copy>
  +
  +    <javadoc packagenames="org.apache.taglibs.dbtags.*"
  +	     classpath="${servlet.jar}"
  +             sourcepath="src"
  +             destdir="${build.doc}/javadoc"
  +             author="true"   
  +             version="true"
  +	     use="true"
  +             windowtitle="Jakarta DBTags custom tag library API"
  +             doctitle="Jakarta DBTags custom tag library"
  +             bottom="Copyright &#169; 2000 Apache Software Foundation. All Rights Reserved."
  +    />
  +  </target>
  +
  +  <!-- Compile the examples application -->
  +  <target name="examples" depends="library-dist">
  +    <copy todir="${build.examples}/WEB-INF">
  +      <fileset dir="${examples.src}/conf"/>
  +    </copy>
  +    <copy todir="${build.examples}">
  +      <fileset dir="${examples.src}/web"/>
  +    </copy>
  +    <copy file="${conf.src}/dbtags.tld" tofile="${dist.tld}"/>
  +    <copy file="${dist.tld}"
  +              tofile="${build.examples}/WEB-INF/${taglib.name}.tld"/>
  +    <copy file="${dist.library}"
  +              tofile="${build.examples}/WEB-INF/lib/${taglib.name}.jar"/>
  +    <copy file="${examples.src}/web/jdbc.jsp"
  +              tofile="${build.examples}/jdbc.txt"/>
  +  </target>
  +
  +  <!-- Compile the tag library itself -->
  +  <target name="library" depends="prepare">
  +    <copy file="${conf.src}/dbtags.tld"
  +              tofile="${build.library}/META-INF/taglib.tld"/>
  +    <javac srcdir="${library.src}" destdir="${build.library}"
  +           classpath="${servlet.jar}:${jdbc-ext.jar}" debug="on"/>
  +  </target>
  +
  +  <!-- Compile the library as well as the associated applications -->
  +  <target name="main" depends="library,documentation,examples"/>
  +
  +
  +  <!-- ******************* Create Distribution Files ********************** -->
  +
  +  <!-- Create the documentation application WAR file -->
  +  <target name="documentation-dist" depends="documentation">
  +    <jar jarfile="${dist.doc}" basedir="${build.doc}" excludes="intro.html"/>
  +    <mkdir dir="${taglibs.doc}"/>
  +    <copy todir="${taglibs.doc}">
  +      <fileset dir="${build.doc}">
  +        <exclude name="WEB-INF"/>     
  +      </fileset>
  +    </copy>
  +  </target>
  +
  +  <!-- Create the examples application WAR file -->
  +  <target name="examples-dist" depends="examples">
  +    <jar jarfile="${dist.examples}" basedir="${build.examples}"/>
  +  </target>
  +
  +  <!-- Create the library distribution files -->
  +  <target name="library-dist" depends="library">
  +    <jar jarfile="${dist.library}" basedir="${build.library}"/>
  +    <copy file="${conf.src}/${taglib.name}.tld" tofile="${dist.tld}"/>
     </target>
  +
  +  <!-- Create the entire set of distribution files -->
  +  <target name="dist" depends="library-dist,examples-dist,documentation-dist"/>
  +
   
  -  &common;
  +
  +  <!-- ************************ Utility Commands ************************** -->
  +
  +  <!-- Delete output directories and files so we can build from scratch -->
  +  <target name="clean">
  +    <delete dir="${build.dir}/${taglib.name}"/>
  +    <delete dir="${dist.dir}/${taglib.name}"/>
  +  </target>
   
   </project>
  
  
  

Mime
View raw message