You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fh...@apache.org on 2003/02/19 22:49:13 UTC

cvs commit: jakarta-tomcat-catalina/modules/cluster build.xml

fhanik      2003/02/19 13:49:13

  Added:       modules/cluster build.xml
  Log:
  LocalStrings.properties has to be in the dist jar
  
  Revision  Changes    Path
  1.1                  jakarta-tomcat-catalina/modules/cluster/build.xml
  
  Index: build.xml
  ===================================================================
  <project name="Catalina-Cluster" default="dist" basedir=".">
  
  
    <!-- ===================== Initialize Property Values =================== -->
  
    <!-- See "build.properties.sample" in the top level directory for all     -->
    <!-- property values you must customize for successful building!!!        -->
    <!--property file="build.properties"/>
    <property file="../build.properties"/>
    <property file="${user.home}/build.properties"/-->
  
    <!-- Build Defaults -->
    <property name="catalina.home"     location="../.."/>
    <property name="cluster.build"     value="${catalina.home}/modules/cluster/build"/>
    <property name="cluster.dist"     value="${catalina.home}/modules/cluster/dist"/>
    <property name="cluster.lib" value="../../../jakarta-tomcat-5/dist"/>
  
      <!-- Construct Catalina classpath -->
    <path id="catalina.classpath">
      <pathelement location="${cluster.lib}/server/lib/catalina.jar"/>
      <pathelement location="${cluster.lib}/server/lib/commons-logging.jar"/>
      <pathelement location="${cluster.lib}/server/lib/mx4j-jmx.jar"/>
      <pathelement location="${cluster.lib}/common/lib/servlet-api.jar"/>
      
    </path>
  
      <!-- Source path -->
    <path id="javadoc.sourcepath">
      <pathelement location="src/share"/>
    </path>
  
  
    <!-- =================== BUILD: Set compile flags ======================= -->
    <target name="flags">
      <!-- JDK flags -->
      <available property="jdk.1.2.present" classname="java.util.HashMap" />
      <available property="jdk.1.3.present" 
       classname="java.lang.reflect.Proxy" />
      <available property="jdk.1.4.present" classname="java.nio.Buffer" />
    </target>
  
  
    <!-- =================== BUILD: Set compile flags ======================= -->
    <target name="flags.display" depends="flags" unless="flags.hide">
  
      <echo message="--- Build environment for Catalina ---" />
  
      <echo message="If ${property_name} is displayed, then the property is not set)" />
  
      <echo message="--- Build options ---" />
      <echo message="full.dist=${full.dist}" />
      <echo message="build.sysclasspath=${build.sysclasspath}" />
      <echo message="compile.debug=${compile.debug}" />
      <echo message="compile.deprecation=${compile.deprecation}" />
      <echo message="compile.optimize=${compile.optimize}" />
  
      <echo message="--- Ant Flags ---" />
      <echo message="&lt;style&gt; task available (required)=${style.available}" />
  
      <echo message="--- JDK ---" />
      <echo message="jdk.1.2.present=${jdk.1.2.present}" />
      <echo message="jdk.1.3.present=${jdk.1.3.present}" />
      <echo message="jdk.1.4.present=${jdk.1.4.present}" />
  
    </target>
  
    <!-- =================== BUILD: Create Directories ====================== -->
    <target name="build-prepare">
      <delete dir="${cluster.build}/classes"/>
      <mkdir dir="${cluster.build}"/>
      <mkdir dir="${cluster.build}/classes"/>
      <mkdir dir="${cluster.dist}"/>
    </target>
  
  
  
  
    <!-- ================ BUILD: Compile Catalina Components ================ -->
    
    <target name="build-catalina-cluster" depends="build-prepare">
      <!-- Compile internal server components -->
      <javac srcdir="src/share" destdir="${cluster.build}/classes"
             debug="${compile.debug}" deprecation="${compile.deprecation}"
             optimize="${compile.optimize}"
             excludes="**/CVS/**">
        <classpath refid="catalina.classpath" />
      </javac>
      <copy file="src/share/org/apache/catalina/cluster/LocalStrings.properties"
      	  tofile="${cluster.build}/classes/org/apache/catalina/cluster/LocalStrings.properties"/>
    </target>
  
  
    <!-- ================ BUILD: Create Catalina Javadocs =================== -->
    <target name="javadoc">
      <delete dir="${cluster.build}/javadoc"/>
      <mkdir dir="${cluster.build}/javadoc"/>
      <javadoc packagenames="org.apache.catalina.*,org.apache.naming.*"
        classpathref="catalina.classpath"
        sourcepathref="javadoc.sourcepath"
        destdir="${cluster.build}/javadoc"
        author="true"
        version="true"
        windowtitle="Catalina Internal API Documentation"
        doctitle="Catalina API"
        bottom="Copyright &#169; 2000-2002 Apache Software Foundation.  All Rights Reserved."
      />
    </target>
  
  
    <!-- ======================= BUILD: Clean Directory ===================== -->
    <target name="build-clean">
      <delete dir="${cluster.build}"/>
    </target>
  
  
    <!-- ==================== BUILD: Rebuild Everything ===================== -->
  
  
  
  
    <!-- ================ DIST: Create Distribution ========================= -->
    <target name="dist" depends="build-catalina-cluster">
      <jar destfile="${cluster.dist}/tomcat-replication.jar"
           basedir="${cluster.build}/classes"/>
    </target>
  
    <!-- ======================== DIST: Clean Directory ===================== -->
  
  
    <!-- ====================== Convenient Synonyms ========================= -->
  
  
  </project>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org