avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-avalon build.xml
Date Tue, 16 Apr 2002 08:16:57 GMT
colus       02/04/16 01:16:57

  Modified:    .        build.xml
  Log:
  Restyled.
  
  Revision  Changes    Path
  1.129     +636 -636  jakarta-avalon/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon/build.xml,v
  retrieving revision 1.128
  retrieving revision 1.129
  diff -u -r1.128 -r1.129
  --- build.xml	5 Apr 2002 14:02:42 -0000	1.128
  +++ build.xml	16 Apr 2002 08:16:56 -0000	1.129
  @@ -21,646 +21,646 @@
   
   <project name="Avalon Framework" default="main" basedir=".">
   
  -  <!--
  -    Give user a chance to override without editing this file
  -    (and without typing -D each time he compiles it)
  -  -->
  -  <property file="ant.properties"/>
  -  <property file="${user.home}/.ant.properties"/>
  -
  -  <property name="name" value="avalon"/>
  -  <property name="Name" value="Avalon"/>
  -  <property name="framework.name" value="avalon-framework"/>
  -  <property name="version" value="4.1.2"/>
  -  <property name="year" value="1999-2002"/>
  -  <property name="status" value="final"/>
  -  <property name="release" value="3rd"/>
  -  <property name="short.version" value="4.1"/>
  -
  -  <property name="debug" value="on"/>
  -  <property name="optimize" value="off"/>
  -  <property name="deprecation" value="off"/>
  -  <property name="compress.jars" value="true"/>
  -
  -  <!-- Set the properties for intermediate directory -->
  -  <property name="build.dir" value="build"/>
  -  <property name="build.lib" value="${build.dir}/lib"/>
  -  <property name="build.src" value="${build.dir}/src"/>
  -  <property name="build.conf" value="${build.dir}/conf"/>
  -  <property name="build.classes" value="${build.dir}/classes"/>
  -  <property name="build.javadocs" value="${build.dir}/javadocs"/>
  -  <property name="build.docs" value="${build.dir}/docs"/>
  -  <property name="build.testdocs" value="${build.docs}/test"/>
  -  <property name="build.reports" value="${build.dir}/reports"/>
  -  <property name="build.context" value="${build.dir}/documentation"/>
  -  <property name="build.xdocs" value="${build.context}/xdocs"/>
  -
  -  <!-- Set the properties for source directories -->
  -  <property name="src.dir" value="src"/>
  -  <property name="java.dir" value="${src.dir}/java"/>
  -  <property name="test.dir" value="${src.dir}/test"/>
  -  <property name="conf.dir" value="${src.dir}/conf"/>
  -  <property name="lib.dir" value="lib"/>
  -  <property name="tools.dir" value="tools"/>
  -  <property name="docs.dir" value="docs"/>
  -  <property name="www.dir" value="../jakarta-avalon-site/docs"/>
  -  <property name="javadocs.dir" value="${docs.dir}/api"/>
  -  <property name="xdocs.dir" value="${src.dir}/xdocs"/>
  -  <property name="skins.dir" value="${src.dir}/skins"/>
  -  <property name="context.dir" value="${src.dir}/documentation"/>
  -  <property name="stylesheets.dir" value="${skins.dir}"/>
  -
  -  <property name="dist.name" value="${Name}-${version}"/>
  -  <property name="dist.base" value="distributions"/>
  -
  -  <property name="tools.jar" value="${java.home}/../lib/tools.jar"/>
  -
  -  <property name="logkit.jar" value="${tools.dir}/ext/logkit.jar"/>
  -  <property name="xerces.jar" value="${tools.dir}/lib/xerces-1.4.4.jar"/>
  -  <property name="xalan.jar" value="${tools.dir}/lib/xalan-2.2.0-D13.jar"/>
  -  <property name="bsf.jar" value="${tools.dir}/lib/bsf.jar"/>
  -  <property name="junit.jar" value="${tools.dir}/lib/junit-3.7.jar"/>
  -
  -  <property name="announce2txt" value="${tools.dir}/announcement2txt.xsl"/>
  -  <property name="announce2header" value="${tools.dir}/announcement2header.xsl"/>
  -  <property name="announce2readme" value="${tools.dir}/announcement2readme.xsl"/>
  -  <property name="announce2site" value="${tools.dir}/announcement2site.xsl"/>
  -  <property name="document2docbook" value="${context.dir}/stylesheets/document2docbook.xsl"/>
  -
  -  <path id="project.class.path">
  -    <pathelement location="${logkit.jar}"/>
  -    <pathelement location="${xalan.jar}"/>
  -    <pathelement location="${bsf.jar}"/>
  -    <pathelement location="${xerces.jar}"/>
  -    <pathelement location="${junit.jar}"/>
  -    <pathelement path="${java.class.path}" />
  -    <fileset dir="${lib.dir}">
  -      <include name="*.jar" />
  -    </fileset>
  -    <pathelement path="${build.classes}" />
  -  </path>
  -
  -  <path id="tools.class.path">
  -    <pathelement location="${xerces.jar}"/>
  -    <pathelement location="${junit.jar}"/>
  -    <pathelement location="${tools.jar}"/>
  -    <fileset dir="${tools.dir}/lib">
  -      <include name="*.jar" />
  -    </fileset>
  -  </path>
  -
  -  <path id="test.class.path">
  -    <path refid="tools.class.path"/>
  -    <path refid="project.class.path"/>
  -  </path>
  -
  -  <!-- Main target -->
  -  <target name="main" depends="all" description="generates the Avalon distribution without the javadocs"/>
  -
  -  <!-- Help on usage -->
  -  <target name="usage">
  -    <echo message="Use the -projecthelp option instead"/>
  -  </target>
  -
  -  <target name="dist.lite" depends="main"/>
  -  <target name="help" depends="usage"/>
  -
  -  <!-- Set up dist properties -->
  -  <target name="setup-properties" >
  -    <available property="log4j.present" classname="org.apache.log4j.Category">
  -      <classpath refid="project.class.path"/>
  -    </available>
  -    <available property="jdk14.present" classname="java.util.logging.Logger">
  -      <classpath refid="project.class.path"/>
  -    </available>
  -
  -    <property name="dist.dir" value="${dist.name}"/>
  -    <property name="dist.bin" value="${dist.dir}/bin"/>
  -    <property name="dist.apps" value="${dist.dir}/apps"/>
  -    <property name="dist.lib" value="${dist.dir}/lib"/>
  -    <property name="dist.docs" value="${dist.dir}/docs"/>
  -    <property name="dist.javadocs" value="${dist.dir}/docs/api"/>
  -
  -    <property name="src.dist.dir" value="${dist.name}-src"/>
  -    <property name="src.dist.src" value="${src.dist.dir}/src"/>
  -    <property name="src.dist.docs" value="${src.dist.dir}/docs"/>
  -    <property name="src.dist.javadocs" value="${src.dist.dir}/docs/api"/>
  -    <property name="src.dist.lib" value="${src.dist.dir}/lib"/>
  -    <property name="src.dist.tools" value="${src.dist.dir}/tools"/>
  -  </target>
  -
  -  <!-- Prepares the build directory -->
  -  <target name="prepare">
  -    <tstamp/>
  -    <mkdir dir="${build.dir}"/>
  -  </target>
  -
  -  <!-- Compiles the source code -->
  -  <target name="compile" depends="setup-properties,prepare" description="compiles the source code">
  -
  -    <mkdir dir="${build.classes}"/>
  -
  -    <javac srcdir="${java.dir}"
  -           destdir="${build.classes}"
  -           debug="${debug}"
  -           optimize="${optimize}"
  -           deprecation="${deprecation}"
  -           target="1.2">
  -      <classpath refid="project.class.path" />
  -      <src path="${test.dir}"/>
  -      <exclude name="org/apache/avalon/framework/logger/Log4JLogger.java"
  -               unless="log4j.present"/>
  -      <exclude name="org/apache/avalon/framework/logger/Jdk14Logger.java"
  -               unless="jdk14.present"/>
  -    </javac>
  -  </target>
  -
  -  <!-- Creates the exceptionutil.jar file -->
  -  <target name="compile-exceptionutil" depends="setup-properties,prepare">
  -
  -    <mkdir dir="${build.classes}"/>
  -
  -    <javac srcdir="${java.dir}"
  -           destdir="${build.classes}"
  -           debug="${debug}"
  -           optimize="${optimize}"
  -           deprecation="${deprecation}"
  -           target="1.2">
  -      <include name="org/apache/avalon/framework/ExceptionUtil.java" />
  -      <include name="org/apache/avalon/framework/Cascading*" />
  -    </javac>
  -  </target>
  -
  -  <target name="jar-exceptionutil" depends="compile-exceptionutil, prepare-conf">
  -      <copy
  -          file="${conf.dir}/MANIFEST.MF"
  -          tofile="${build.conf}/MANIFEST-EXCEPTIONUTIL.MF">
  -          <filterset>
  -              <filter token="name" value="avalon-exceptionutil"/>
  -              <filter token="version" value="${version}"/>
  -          </filterset>
  -      </copy>
  -    <mkdir dir="${build.lib}"/>
  -    <jar jarfile="${build.lib}/exceptionutil.jar"
  -        basedir="${build.classes}"
  -        compress="${compress.jars}"
  -        manifest="${build.conf}/MANIFEST-EXCEPTIONUTIL.MF">
  -      <include name="org/apache/avalon/framework/ExceptionUtil.class" />
  -      <include name="org/apache/avalon/framework/Cascading*" />
  -      <zipfileset dir="${build.conf}" prefix="META-INF/">
  -          <include name="LICENSE.txt"/>
  -      </zipfileset>
  -    </jar>
  -  </target>
  -
  -  <target name="test" depends="check"/>
  -
  -  <target name="check" depends="compile" description="perform unit tests">
  -    <echo message="Avalon Framework is mostly interfaces."/>
  -    <echo message="But some tests to be performed at this time."/>
  -
  -    <mkdir dir="${build.reports}"/>
  -
  -    <echo message="Performing Unit Tests" />
  -    <junit fork="true" printsummary="yes" dir="${build.reports}">
  -      <formatter type="plain" usefile="false"/>
  -      <classpath>
  -        <path refid="test.class.path"/>
  -        <pathelement location="${build.classes}"/>
  -      </classpath>
  -      <batchtest todir="${build.reports}">
  -        <fileset dir="${build.classes}">
  -          <include name="**/test/*TestCase.class"/>
  +    <!--
  +      Give user a chance to override without editing this file
  +      (and without typing -D each time he compiles it)
  +    -->
  +    <property file="ant.properties"/>
  +    <property file="${user.home}/.ant.properties"/>
  +
  +    <property name="name" value="avalon"/>
  +    <property name="Name" value="Avalon"/>
  +    <property name="framework.name" value="avalon-framework"/>
  +    <property name="version" value="4.1.2"/>
  +    <property name="year" value="1999-2002"/>
  +    <property name="status" value="final"/>
  +    <property name="release" value="3rd"/>
  +    <property name="short.version" value="4.1"/>
  +
  +    <property name="debug" value="on"/>
  +    <property name="optimize" value="off"/>
  +    <property name="deprecation" value="off"/>
  +    <property name="compress.jars" value="true"/>
  +
  +    <!-- Set the properties for intermediate directory -->
  +    <property name="build.dir" value="build"/>
  +    <property name="build.lib" value="${build.dir}/lib"/>
  +    <property name="build.src" value="${build.dir}/src"/>
  +    <property name="build.conf" value="${build.dir}/conf"/>
  +    <property name="build.classes" value="${build.dir}/classes"/>
  +    <property name="build.javadocs" value="${build.dir}/javadocs"/>
  +    <property name="build.docs" value="${build.dir}/docs"/>
  +    <property name="build.testdocs" value="${build.docs}/test"/>
  +    <property name="build.reports" value="${build.dir}/reports"/>
  +    <property name="build.context" value="${build.dir}/documentation"/>
  +    <property name="build.xdocs" value="${build.context}/xdocs"/>
  +
  +    <!-- Set the properties for source directories -->
  +    <property name="src.dir" value="src"/>
  +    <property name="java.dir" value="${src.dir}/java"/>
  +    <property name="test.dir" value="${src.dir}/test"/>
  +    <property name="conf.dir" value="${src.dir}/conf"/>
  +    <property name="lib.dir" value="lib"/>
  +    <property name="tools.dir" value="tools"/>
  +    <property name="docs.dir" value="docs"/>
  +    <property name="www.dir" value="../jakarta-avalon-site/docs"/>
  +    <property name="javadocs.dir" value="${docs.dir}/api"/>
  +    <property name="xdocs.dir" value="${src.dir}/xdocs"/>
  +    <property name="skins.dir" value="${src.dir}/skins"/>
  +    <property name="context.dir" value="${src.dir}/documentation"/>
  +    <property name="stylesheets.dir" value="${skins.dir}"/>
  +
  +    <property name="dist.name" value="${Name}-${version}"/>
  +    <property name="dist.base" value="distributions"/>
  +
  +    <property name="tools.jar" value="${java.home}/../lib/tools.jar"/>
  +
  +    <property name="logkit.jar" value="${tools.dir}/ext/logkit.jar"/>
  +    <property name="xerces.jar" value="${tools.dir}/lib/xerces-1.4.4.jar"/>
  +    <property name="xalan.jar" value="${tools.dir}/lib/xalan-2.2.0-D13.jar"/>
  +    <property name="bsf.jar" value="${tools.dir}/lib/bsf.jar"/>
  +    <property name="junit.jar" value="${tools.dir}/lib/junit-3.7.jar"/>
  +
  +    <property name="announce2txt" value="${tools.dir}/announcement2txt.xsl"/>
  +    <property name="announce2header" value="${tools.dir}/announcement2header.xsl"/>
  +    <property name="announce2readme" value="${tools.dir}/announcement2readme.xsl"/>
  +    <property name="announce2site" value="${tools.dir}/announcement2site.xsl"/>
  +    <property name="document2docbook" value="${context.dir}/stylesheets/document2docbook.xsl"/>
  +
  +    <path id="project.class.path">
  +        <pathelement location="${logkit.jar}"/>
  +        <pathelement location="${xalan.jar}"/>
  +        <pathelement location="${bsf.jar}"/>
  +        <pathelement location="${xerces.jar}"/>
  +        <pathelement location="${junit.jar}"/>
  +        <pathelement path="${java.class.path}" />
  +        <fileset dir="${lib.dir}">
  +            <include name="*.jar" />
           </fileset>
  -      </batchtest>
  -    </junit>
  +        <pathelement path="${build.classes}" />
  +    </path>
   
  -  </target>
  -
  -  <target name="test-report" depends="compile" >
  -    <mkdir dir="${build.testdocs}"/>
  -    <mkdir dir="${build.reports}"/>
  -
  -    <echo message="Performing Unit Tests" />
  -    <junit fork="true" printsummary="yes" dir="${build.reports}">
  -      <formatter type="xml"/>
  -      <classpath>
  -        <path refid="test.class.path"/>
  -        <pathelement location="${build.classes}"/>
  -      </classpath>
  -      <batchtest todir="${build.reports}">
  -        <fileset dir="${build.classes}">
  -          <exclude name="**/test/Abstract*TestCase.class"/>
  -          <include name="**/test/*Profile.class" if="test.profile"/>
  -          <include name="**/test/*TestCase.class"/>
  +    <path id="tools.class.path">
  +        <pathelement location="${xerces.jar}"/>
  +        <pathelement location="${junit.jar}"/>
  +        <pathelement location="${tools.jar}"/>
  +        <fileset dir="${tools.dir}/lib">
  +            <include name="*.jar" />
           </fileset>
  -      </batchtest>
  -    </junit>
  +    </path>
   
  -    <junitreport todir="${build.reports}">
  -      <fileset dir="${build.reports}">
  -        <include name="TEST-*.xml"/>
  -      </fileset>
  -      <report format="frames" todir="${build.testdocs}"/>
  -    </junitreport>
  -  </target>
  -
  -  <target name="printerdocs" depends="javadocs">
  -    <echo message="Printer Friendly documentation is not yet available"/>
  -  </target>
  -
  -  <!-- Prepares the documentation directory -->
  -  <target name="docs" depends="html-docs, javadocs" description="generates all the Avalon documentation"/>
  -
  -  <target name="html-docs" depends="prepare" description="generates the xdocs-based documentation">
  -
  -    <mkdir dir="${build.context}"/>
  -    <mkdir dir="${build.docs}"/>
  -    <mkdir dir="${build.xdocs}"/>
  -    <mkdir dir="${build.dir}/work"/>
  -
  -    <!-- Base pointers for non-xdocs documentation. Override these in .ant.properties to link to local docs -->
  -    <property name="avalon.base" value="http://jakarta.apache.org/avalon"/>
  -    <property name="framework.base" value="http://jakarta.apache.org/avalon/framework"/>
  -    <property name="excalibur.base" value="http://jakarta.apache.org/avalon/excalibur"/>
  -    <property name="phoenix.base" value="http://jakarta.apache.org/avalon/phoenix"/>
  -    <property name="cornerstone.base" value="http://jakarta.apache.org/avalon/cornerstone"/>
  -    <property name="logkit.base" value="http://jakarta.apache.org/avalon/logkit"/>
  -    <property name="apps.base" value="http://jakarta.apache.org/avalon/apps"/>
  -    <property name="testlet.base" value="http://jakarta.apache.org/avalon/testlet"/>
  -
  -    <filter token="year" value="${year}"/>
  -    <filter token="AVALON_BASE" value="${avalon.base}"/>
  -    <filter token="FRAMEWORK_BASE" value="${framework.base}"/>
  -    <filter token="EXCALIBUR_BASE" value="${excalibur.base}"/>
  -    <filter token="PHOENIX_BASE" value="${phoenix.base}"/>
  -    <filter token="CORNERSTONE_BASE" value="${cornerstone.base}"/>
  -    <filter token="LOGKIT_BASE" value="${logkit.base}"/>
  -    <filter token="TESTLET_BASE" value="${testlet.base}"/>
  -    <filter token="APPS_BASE" value="${apps.base}"/>    
  -
  -    <copy todir="${build.context}" overwrite="true" filtering="on">
  -      <fileset dir="${context.dir}">
  -        <exclude name="**/*.gif"/>
  -        <exclude name="**/*.jpg"/>
  -        <exclude name="**/*.png"/>
  -      </fileset>
  -    </copy>
  -    <copy todir="${build.context}" filtering="off">
  -      <fileset dir="${context.dir}">
  -        <include name="**/*.gif"/>
  -        <include name="**/*.jpg"/>
  -        <include name="**/*.png"/>
  -      </fileset>
  -    </copy>
  -    <copy todir="${build.xdocs}" filtering="on" overwrite="true">
  -      <fileset dir="${xdocs.dir}"/>
  -    </copy>
  -
  -    <java classname="org.apache.cocoon.Main" fork="true" maxmemory="128m">
  -      <arg value="-c${build.context}/"/>
  -      <arg value="-d${build.docs}"/>
  -      <arg value="-w${build.dir}/work"/>
  -      <arg value="-l${build.dir}/work/cocoon.log"/>
  -      <arg value="-uINFO"/>
  -      <arg value="index.html"/>
  -      <classpath>
  +    <path id="test.class.path">
           <path refid="tools.class.path"/>
  -        <fileset dir="${tools.dir}/ext"/>
  -      </classpath>
  -    </java>
  -
  -    <mkdir dir="${build.docs}/framework/diagrams"/>
  -    <copy todir="${build.docs}/framework/diagrams" filtering="off">
  -      <fileset dir="${context.dir}/diagrams"/>
  -    </copy>
  -
  -  </target>
  -
  -  <!-- Create the API documentation -->
  -  <target name="javadocs" description="generates the API documentation (java 1.2+ only)">
  -
  -    <delete dir="${build.javadocs}"/>
  -    <mkdir dir="${build.javadocs}"/>
  -
  -    <javadoc packagenames="org.apache.*"
  -             sourcepath="${java.dir}"
  -             destdir="${build.javadocs}">
  -      <classpath refid="project.class.path" />
  -      <doclet name="com.sun.tools.doclets.standard.Standard">
  -       <param name="-author"/>
  -       <param name="-version"/>
  -       <param name="-doctitle" value="${Name}"/>
  -       <param name="-windowtitle" value="${Name} API"/>
  -       <param name="-bottom"
  -              value="&quot;Copyright &#169; 2001 Apache Jakarta Project. All Rights Reserved.&quot;"/>
  -      </doclet>
  -    </javadoc>
  -
  -  </target>
  -
  -  <!-- Create the Local site documentation -->
  -  <target name="local-xdocs" depends="docs">
  -
  -    <delete>
  -      <fileset dir="${docs.dir}">
  -        <exclude name="api/**"/>
  -      </fileset>
  -    </delete>
  -    <mkdir dir="${docs.dir}"/>
  -
  -    <copy todir="${docs.dir}">
  -      <fileset dir="${build.docs}" />
  -    </copy>
  -
  -  </target>
  -
  -  <!-- Create the Local API documentation -->
  -  <target name="local-javadocs" depends="javadocs">
  -
  -    <delete dir="${javadocs.dir}"/>
  -    <mkdir dir="${javadocs.dir}"/>
  -
  -    <copy todir="${javadocs.dir}">
  -      <fileset dir="${build.javadocs}" />
  -    </copy>
  -
  -  </target>
  -
  -  <target name="local-docs" depends="local-javadocs,local-xdocs"/>
  -
  -  <!-- Update the www directory -->
  -  <target name="site-docs" depends="local-docs">
  -
  -    <mkdir dir="${www.dir}"/>
  -
  -    <!-- delete all old documents but keep CVS directories -->
  -    <!-- note that by doing an include the defaultexcludes (CVS dirs) will be kept -->
  -    <delete>
  -      <fileset dir="${www.dir}">
  -        <exclude name="apps/**"/>      
  -        <exclude name="excalibur/**"/>
  -        <exclude name="logkit/**"/>
  -        <exclude name="cornerstone/**"/>
  -        <exclude name="phoenix/**"/>
  -        <exclude name="testlet/**"/>
  -      </fileset>
  -    </delete>
  -
  -
  -    <copy todir="${www.dir}">
  -      <fileset dir="${docs.dir}" />
  -    </copy>
  -
  -  </target>
  -
  -  <!-- Create the announcements and HEADER.html -->
  -  <target name="announcement" depends="setup-properties">
  -
  -    <filter token="Name" value="Avalon Framework"/>
  -    <filter token="name" value="framework"/>
  -    <filter token="version" value="${version}"/>
  -    <filter token="year" value="${year}"/>
  -    <filter token="status" value="${status}"/>
  -    <filter token="release" value="${release}"/>
  -    <filter token="short-version" value="${short.version}"/>
  -
  -    <mkdir dir="${build.dir}" />
  -    <mkdir dir="${dist.base}" />
  -
  -    <copy todir="${build.context}" overwrite="true" filtering="on">
  -      <fileset dir="${context.dir}">
  -        <exclude name="**/*.gif"/>
  -        <exclude name="**/*.jpg"/>
  -        <exclude name="**/*.png"/>
  -      </fileset>
  -    </copy>
  -    <copy todir="${build.context}" filtering="off">
  -      <fileset dir="${context.dir}">
  -        <include name="**/*.gif"/>
  -        <include name="**/*.jpg"/>
  -        <include name="**/*.png"/>
  -      </fileset>
  -    </copy>
  -    <copy todir="${build.xdocs}" overwrite="true" filtering="on">
  -      <fileset dir="${xdocs.dir}"/>
  -    </copy>
  -
  -    <style style="${announce2txt}" in="${build.xdocs}/framework/announcement.xml"
  -           out="Announcement.txt"/>
  -    <style style="${announce2header}" in="${build.xdocs}/framework/announcement.xml"
  -           out="${dist.base}/HEADER.html"/>
  -    <style style="${announce2readme}" in="${build.xdocs}/framework/announcement.xml"
  -           out="${dist.base}/README.html"/>
  -    <style style="${announce2site}" in="${build.xdocs}/framework/announcement.xml"
  -           out="jakarta-news.xml"/>
  -
  -  </target>
  -
  -  <!-- Copies and filters the manifest and license. Used by jar and dist -->
  -  <target name="prepare-conf">
  -      <mkdir dir="${build.conf}"/>
  -      <copy todir="${build.conf}" flatten="true">
  -          <fileset dir="." includes="LICENSE.txt"/>
  -          <fileset dir="${conf.dir}" includes="MANIFEST.MF"/> 
  -
  -          <filterset>
  -              <filter token="name" value="${framework.name}"/>
  -              <filter token="version" value="${version}"/>
  -              <filter token="year" value="${year}"/>
  -          </filterset>
  -      </copy>
  -
  -  </target>
  -
  -  <!-- Creates all the .jar files -->
  -  <target name="all" depends="compile, prepare-conf" description="generates the Avalon jar files">
  -    <mkdir dir="${build.lib}"/>
  -    <jar jarfile="${build.lib}/${framework.name}.jar"
  -        basedir="${build.classes}"
  -        compress="${compress.jars}"
  -        manifest="${build.conf}/MANIFEST.MF">
  -      <exclude name="**/test/*"/>
  -      <include name="org/apache/avalon/framework/**"/>
  -      <zipfileset dir="${build.conf}" prefix="META-INF/">
  -          <include name="LICENSE.txt"/>
  -      </zipfileset>
  -    </jar>
  -  </target>
  -
  -  <target name="install" depends="all,install-check-cjan">
  -    <mkdir dir="${cjan.lib}" />
  -    <copy file="${build.lib}/${framework.name}.jar" todir="${cjan.lib}"/>
  -  </target>
  -
  -  <target name="install-check-cjan" unless="cjan.lib">
  -    <fail message="cjan.lib not specified." />
  -  </target>
  -
  -  <target name="uninstall" depends="install-check-cjan">
  -    <delete file="${build.lib}/${framework.name}.jar" dir="${cjan.lib}"/>
  -  </target>
  -
  -  <!-- Create the distribution -->
  -  <target name="bin-dist" depends="all">
  -
  -    <mkdir dir="${dist.dir}"/>
  -    <copy file="${build.lib}/${framework.name}.jar" tofile="${dist.dir}/${framework.name}-${version}.jar"/>
  -    <copy file="${logkit.jar}" todir="${dist.dir}"/>
  -
  -    <mkdir dir="${dist.docs}"/>
  -    <mkdir dir="${dist.javadocs}"/>
  -
  -    <copy todir="${dist.docs}">
  -      <fileset dir="${docs.dir}"/>
  -    </copy>
  -
  -    <copy todir="${dist.dir}">
  -      <fileset dir=".">
  -        <include name="README.txt"/>
  -        <include name="KEYS"/>
  -        <include name="LICENSE.txt"/>
  -      </fileset>
  -    </copy>
  -
  -    <chmod dir="${dist.dir}" perm="go-rwx" />
  -
  -  </target>
  -
  -  <!-- Create the source distribution -->
  -  <target name="src-dist" depends="setup-properties">
  -
  -    <mkdir dir="${src.dist.dir}" />
  -
  -    <copy todir="${src.dist.lib}">
  -      <fileset dir="${lib.dir}">
  -        <include name="README.txt" />
  -      </fileset>
  -    </copy>
  -
  -    <copy file="${logkit.jar}" todir="${src.dist.lib}"/>
  -
  -    <copy todir="${src.dist.src}">
  -      <fileset dir="${src.dir}"/>
  -    </copy>
  -
  -    <copy todir="${src.dist.docs}">
  -      <fileset dir="${build.docs}"/>
  -    </copy>
  -
  -    <copy todir="${src.dist.javadocs}">
  -      <fileset dir="${build.javadocs}"/>
  -    </copy>
  -
  -    <copy todir="${src.dist.dir}/tools">
  -      <fileset dir="${tools.dir}">
  -        <include name="*.xsl"/>
  -      </fileset>
  -    </copy>
  -
  -    <filter token="version" value="${version}"/>
  -    <filter token="year" value="${year}"/>
  -    <copy todir="${src.dist.dir}" filtering="on">
  -      <fileset dir=".">
  -        <include name="README.txt"/>
  -        <include name="BUILDING.txt"/>
  -        <include name="LICENSE.txt"/>
  -        <include name="KEYS"/>
  -        <include name="ant.properties.sample"/>
  -        <include name="build.xml"/>
  -      </fileset>
  -    </copy>
  -
  -    <fixcrlf srcdir="${src.dist.dir}" includes="build.sh" eol="lf"/>
  -    <fixcrlf srcdir="${src.dist.dir}" includes="build.bat" eol="crlf"/>
  -
  -    <fixcrlf srcdir="${src.dist.src}/java" includes="**/*.java" eol="lf"/>
  -
  -    <chmod dir="${src.dist.dir}" perm="go-rwx" />
  -
  -  </target>
  -
  -  <!-- Completely build all dists -->
  -  <target name="dist" depends="announcement,site-docs" description="generates the Avalon distribution">
  -    <mkdir dir="${dist.base}"/>
  -
  -    <antcall target="bin-dist">
  -      <param name="dist.dir" value="${dist.name}" />
  -    </antcall>
  -
  -    <copy file="${build.lib}/avalon-framework.jar" tofile="${tools.dir}/ext/avalon-framework.jar"/>
  -
  -    <zip file="${dist.base}/${dist.name}-bin.zip"
  -         basedir="${dist.name}/.."
  -         includes="${dist.name}/**"/>
  -
  -    <tar longfile="gnu" tarfile="${dist.base}/${dist.name}-bin.tar">
  -      <tarfileset dir="${dist.name}/.." username="avalon" group="avalon">
  -        <include name="${dist.name}/**"/>
  -      </tarfileset>
  -    </tar>
  -
  -    <gzip zipfile="${dist.base}/${dist.name}-bin.tar.gz"
  -          src="${dist.base}/${dist.name}-bin.tar"/>
  -
  -    <delete file="${dist.base}/${dist.name}-bin.tar"/>
  -    <delete dir="${dist.name}" />
  -
  -    <antcall target="src-dist">
  -      <param name="src.dist.dir" value="${dist.name}" />
  -    </antcall>
  -
  -    <copy todir="${dist.name}">
  -      <fileset dir="${src.dist.dir}"/>
  -    </copy>
  -
  -    <zip file="${dist.base}/${dist.name}-src.zip"
  -         basedir="${dist.name}/.."
  -         includes="${dist.name}/**"/>
  -
  -    <tar longfile="gnu" tarfile="${dist.base}/${dist.name}-src.tar" >
  -      <tarfileset dir="${dist.name}/.." mode="755" username="avalon" group="avalon">
  -        <include name="${dist.name}/build.sh"/>
  -      </tarfileset>
  -      <tarfileset dir="${dist.name}/.." username="avalon" group="avalon">
  -        <include name="${dist.name}/**"/>
  -        <exclude name="${dist.name}/build.sh"/>
  -      </tarfileset>
  -    </tar>
  -
  -    <gzip zipfile="${dist.base}/${dist.name}-src.tar.gz"
  -          src="${dist.base}/${dist.name}-src.tar"/>
  -
  -    <delete file="${dist.base}/${dist.name}-src.tar"/>
  -    <delete dir="${dist.name}" />
  -    <delete dir="${src.dist.dir}"/>
  -
  -  </target>
  -
  -  <target name="sitebook2docbook" description="goes through all the xdocs and transforms them to docbook">
  -    <style style="${document2docbook}"
  -           basedir="${context.dir}/xdocs"
  -           destdir="${build.context}/xdocs"
  -           extension=".xml"
  -           includes="*.xml,*/*.xml,*/*/*.xml"/>
  -  </target>
  -
  -  <!-- Cleans up build and distribution directories -->
  -  <target name="clean" depends="setup-properties" description="cleans up the created directories">
  -    <delete dir="${build.dir}" />
  -    <delete dir="${dist.dir}" />
  -    <delete>
  -      <fileset dir="." includes="**/*~" defaultexcludes="no"/>
  -    </delete>
  -  </target>
  -
  -  <!-- Cleans absolutely everything up -->
  -  <target name="distclean" depends="clean" description="cleans up all generated files and directories">
  -    <delete dir="${docs.dir}" />
  -    <delete dir="${dist.base}" />
  -    <delete dir="${src.dist.dir}" />
  -    <delete file="Announcement.txt" />
  -    <delete file="jakarta-news.xml" />
  -  </target>
  +        <path refid="project.class.path"/>
  +    </path>
  +
  +    <!-- Main target -->
  +    <target name="main" depends="all" description="generates the Avalon distribution without the javadocs"/>
  +
  +    <!-- Help on usage -->
  +    <target name="usage">
  +        <echo message="Use the -projecthelp option instead"/>
  +    </target>
  +
  +    <target name="dist.lite" depends="main"/>
  +    <target name="help" depends="usage"/>
  +
  +    <!-- Set up dist properties -->
  +    <target name="setup-properties" >
  +        <available property="log4j.present" classname="org.apache.log4j.Category">
  +            <classpath refid="project.class.path"/>
  +        </available>
  +        <available property="jdk14.present" classname="java.util.logging.Logger">
  +            <classpath refid="project.class.path"/>
  +        </available>
  +
  +        <property name="dist.dir" value="${dist.name}"/>
  +        <property name="dist.bin" value="${dist.dir}/bin"/>
  +        <property name="dist.apps" value="${dist.dir}/apps"/>
  +        <property name="dist.lib" value="${dist.dir}/lib"/>
  +        <property name="dist.docs" value="${dist.dir}/docs"/>
  +        <property name="dist.javadocs" value="${dist.dir}/docs/api"/>
  +
  +        <property name="src.dist.dir" value="${dist.name}-src"/>
  +        <property name="src.dist.src" value="${src.dist.dir}/src"/>
  +        <property name="src.dist.docs" value="${src.dist.dir}/docs"/>
  +        <property name="src.dist.javadocs" value="${src.dist.dir}/docs/api"/>
  +        <property name="src.dist.lib" value="${src.dist.dir}/lib"/>
  +        <property name="src.dist.tools" value="${src.dist.dir}/tools"/>
  +    </target>
  +
  +    <!-- Prepares the build directory -->
  +    <target name="prepare">
  +        <tstamp/>
  +        <mkdir dir="${build.dir}"/>
  +    </target>
  +
  +    <!-- Compiles the source code -->
  +    <target name="compile" depends="setup-properties,prepare" description="compiles the source code">
  +
  +        <mkdir dir="${build.classes}"/>
  +
  +        <javac srcdir="${java.dir}"
  +            destdir="${build.classes}"
  +            debug="${debug}"
  +            optimize="${optimize}"
  +            deprecation="${deprecation}"
  +            target="1.2">
  +            <classpath refid="project.class.path" />
  +            <src path="${test.dir}"/>
  +            <exclude name="org/apache/avalon/framework/logger/Log4JLogger.java"
  +                unless="log4j.present"/>
  +            <exclude name="org/apache/avalon/framework/logger/Jdk14Logger.java"
  +                unless="jdk14.present"/>
  +        </javac>
  +    </target>
  +
  +    <!-- Creates the exceptionutil.jar file -->
  +    <target name="compile-exceptionutil" depends="setup-properties,prepare">
  +
  +        <mkdir dir="${build.classes}"/>
  +
  +        <javac srcdir="${java.dir}"
  +            destdir="${build.classes}"
  +            debug="${debug}"
  +            optimize="${optimize}"
  +            deprecation="${deprecation}"
  +            target="1.2">
  +            <include name="org/apache/avalon/framework/ExceptionUtil.java" />
  +            <include name="org/apache/avalon/framework/Cascading*" />
  +        </javac>
  +    </target>
  +
  +    <target name="jar-exceptionutil" depends="compile-exceptionutil, prepare-conf">
  +        <copy
  +            file="${conf.dir}/MANIFEST.MF"
  +            tofile="${build.conf}/MANIFEST-EXCEPTIONUTIL.MF">
  +            <filterset>
  +                <filter token="name" value="avalon-exceptionutil"/>
  +                <filter token="version" value="${version}"/>
  +            </filterset>
  +        </copy>
  +        <mkdir dir="${build.lib}"/>
  +        <jar jarfile="${build.lib}/exceptionutil.jar"
  +            basedir="${build.classes}"
  +            compress="${compress.jars}"
  +            manifest="${build.conf}/MANIFEST-EXCEPTIONUTIL.MF">
  +            <include name="org/apache/avalon/framework/ExceptionUtil.class" />
  +            <include name="org/apache/avalon/framework/Cascading*" />
  +            <zipfileset dir="${build.conf}" prefix="META-INF/">
  +                <include name="LICENSE.txt"/>
  +            </zipfileset>
  +        </jar>
  +    </target>
  +
  +    <target name="test" depends="check"/>
  +
  +    <target name="check" depends="compile" description="perform unit tests">
  +        <echo message="Avalon Framework is mostly interfaces."/>
  +        <echo message="But some tests to be performed at this time."/>
  +
  +        <mkdir dir="${build.reports}"/>
  +
  +        <echo message="Performing Unit Tests" />
  +        <junit fork="true" printsummary="yes" dir="${build.reports}">
  +            <formatter type="plain" usefile="false"/>
  +            <classpath>
  +                <path refid="test.class.path"/>
  +                <pathelement location="${build.classes}"/>
  +            </classpath>
  +            <batchtest todir="${build.reports}">
  +                <fileset dir="${build.classes}">
  +                    <include name="**/test/*TestCase.class"/>
  +                </fileset>
  +            </batchtest>
  +        </junit>
  +
  +    </target>
  +
  +    <target name="test-report" depends="compile" >
  +        <mkdir dir="${build.testdocs}"/>
  +        <mkdir dir="${build.reports}"/>
  +
  +        <echo message="Performing Unit Tests" />
  +        <junit fork="true" printsummary="yes" dir="${build.reports}">
  +            <formatter type="xml"/>
  +            <classpath>
  +                <path refid="test.class.path"/>
  +                <pathelement location="${build.classes}"/>
  +            </classpath>
  +            <batchtest todir="${build.reports}">
  +                <fileset dir="${build.classes}">
  +                    <exclude name="**/test/Abstract*TestCase.class"/>
  +                    <include name="**/test/*Profile.class" if="test.profile"/>
  +                    <include name="**/test/*TestCase.class"/>
  +                </fileset>
  +            </batchtest>
  +        </junit>
  +
  +        <junitreport todir="${build.reports}">
  +            <fileset dir="${build.reports}">
  +                <include name="TEST-*.xml"/>
  +            </fileset>
  +            <report format="frames" todir="${build.testdocs}"/>
  +        </junitreport>
  +    </target>
  +
  +    <target name="printerdocs" depends="javadocs">
  +        <echo message="Printer Friendly documentation is not yet available"/>
  +    </target>
  +
  +    <!-- Prepares the documentation directory -->
  +    <target name="docs" depends="html-docs, javadocs" description="generates all the Avalon documentation"/>
  +
  +    <target name="html-docs" depends="prepare" description="generates the xdocs-based documentation">
  +
  +        <mkdir dir="${build.context}"/>
  +        <mkdir dir="${build.docs}"/>
  +        <mkdir dir="${build.xdocs}"/>
  +        <mkdir dir="${build.dir}/work"/>
  +
  +        <!-- Base pointers for non-xdocs documentation. Override these in .ant.properties to link to local docs -->
  +        <property name="avalon.base" value="http://jakarta.apache.org/avalon"/>
  +        <property name="framework.base" value="http://jakarta.apache.org/avalon/framework"/>
  +        <property name="excalibur.base" value="http://jakarta.apache.org/avalon/excalibur"/>
  +        <property name="phoenix.base" value="http://jakarta.apache.org/avalon/phoenix"/>
  +        <property name="cornerstone.base" value="http://jakarta.apache.org/avalon/cornerstone"/>
  +        <property name="logkit.base" value="http://jakarta.apache.org/avalon/logkit"/>
  +        <property name="apps.base" value="http://jakarta.apache.org/avalon/apps"/>
  +        <property name="testlet.base" value="http://jakarta.apache.org/avalon/testlet"/>
  +
  +        <filter token="year" value="${year}"/>
  +        <filter token="AVALON_BASE" value="${avalon.base}"/>
  +        <filter token="FRAMEWORK_BASE" value="${framework.base}"/>
  +        <filter token="EXCALIBUR_BASE" value="${excalibur.base}"/>
  +        <filter token="PHOENIX_BASE" value="${phoenix.base}"/>
  +        <filter token="CORNERSTONE_BASE" value="${cornerstone.base}"/>
  +        <filter token="LOGKIT_BASE" value="${logkit.base}"/>
  +        <filter token="TESTLET_BASE" value="${testlet.base}"/>
  +        <filter token="APPS_BASE" value="${apps.base}"/>
  +
  +        <copy todir="${build.context}" overwrite="true" filtering="on">
  +            <fileset dir="${context.dir}">
  +                <exclude name="**/*.gif"/>
  +                <exclude name="**/*.jpg"/>
  +                <exclude name="**/*.png"/>
  +            </fileset>
  +        </copy>
  +        <copy todir="${build.context}" filtering="off">
  +            <fileset dir="${context.dir}">
  +                <include name="**/*.gif"/>
  +                <include name="**/*.jpg"/>
  +                <include name="**/*.png"/>
  +            </fileset>
  +        </copy>
  +        <copy todir="${build.xdocs}" filtering="on" overwrite="true">
  +            <fileset dir="${xdocs.dir}"/>
  +        </copy>
  +
  +        <java classname="org.apache.cocoon.Main" fork="true" maxmemory="128m">
  +            <arg value="-c${build.context}/"/>
  +            <arg value="-d${build.docs}"/>
  +            <arg value="-w${build.dir}/work"/>
  +            <arg value="-l${build.dir}/work/cocoon.log"/>
  +            <arg value="-uINFO"/>
  +            <arg value="index.html"/>
  +            <classpath>
  +                <path refid="tools.class.path"/>
  +                <fileset dir="${tools.dir}/ext"/>
  +            </classpath>
  +        </java>
  +
  +        <mkdir dir="${build.docs}/framework/diagrams"/>
  +        <copy todir="${build.docs}/framework/diagrams" filtering="off">
  +            <fileset dir="${context.dir}/diagrams"/>
  +        </copy>
  +
  +    </target>
  +
  +    <!-- Create the API documentation -->
  +    <target name="javadocs" description="generates the API documentation (java 1.2+ only)">
  +
  +        <delete dir="${build.javadocs}"/>
  +        <mkdir dir="${build.javadocs}"/>
  +
  +        <javadoc packagenames="org.apache.*"
  +            sourcepath="${java.dir}"
  +            destdir="${build.javadocs}">
  +            <classpath refid="project.class.path" />
  +            <doclet name="com.sun.tools.doclets.standard.Standard">
  +                <param name="-author"/>
  +                <param name="-version"/>
  +                <param name="-doctitle" value="${Name}"/>
  +                <param name="-windowtitle" value="${Name} API"/>
  +                <param name="-bottom"
  +                    value="&quot;Copyright &#169; 2001 Apache Jakarta Project. All Rights Reserved.&quot;"/>
  +            </doclet>
  +        </javadoc>
  +
  +    </target>
  +
  +    <!-- Create the Local site documentation -->
  +    <target name="local-xdocs" depends="docs">
  +
  +        <delete>
  +            <fileset dir="${docs.dir}">
  +                <exclude name="api/**"/>
  +            </fileset>
  +        </delete>
  +        <mkdir dir="${docs.dir}"/>
  +
  +        <copy todir="${docs.dir}">
  +            <fileset dir="${build.docs}" />
  +        </copy>
  +
  +    </target>
  +
  +    <!-- Create the Local API documentation -->
  +    <target name="local-javadocs" depends="javadocs">
  +
  +        <delete dir="${javadocs.dir}"/>
  +        <mkdir dir="${javadocs.dir}"/>
  +
  +        <copy todir="${javadocs.dir}">
  +            <fileset dir="${build.javadocs}" />
  +        </copy>
  +
  +    </target>
  +
  +    <target name="local-docs" depends="local-javadocs,local-xdocs"/>
  +
  +    <!-- Update the www directory -->
  +    <target name="site-docs" depends="local-docs">
  +
  +        <mkdir dir="${www.dir}"/>
  +
  +        <!-- delete all old documents but keep CVS directories -->
  +        <!-- note that by doing an include the defaultexcludes (CVS dirs) will be kept -->
  +        <delete>
  +            <fileset dir="${www.dir}">
  +                <exclude name="apps/**"/>
  +                <exclude name="excalibur/**"/>
  +                <exclude name="logkit/**"/>
  +                <exclude name="cornerstone/**"/>
  +                <exclude name="phoenix/**"/>
  +                <exclude name="testlet/**"/>
  +            </fileset>
  +        </delete>
  +
  +
  +        <copy todir="${www.dir}">
  +            <fileset dir="${docs.dir}" />
  +        </copy>
  +
  +    </target>
  +
  +    <!-- Create the announcements and HEADER.html -->
  +    <target name="announcement" depends="setup-properties">
  +
  +        <filter token="Name" value="Avalon Framework"/>
  +        <filter token="name" value="framework"/>
  +        <filter token="version" value="${version}"/>
  +        <filter token="year" value="${year}"/>
  +        <filter token="status" value="${status}"/>
  +        <filter token="release" value="${release}"/>
  +        <filter token="short-version" value="${short.version}"/>
  +
  +        <mkdir dir="${build.dir}" />
  +        <mkdir dir="${dist.base}" />
  +
  +        <copy todir="${build.context}" overwrite="true" filtering="on">
  +            <fileset dir="${context.dir}">
  +                <exclude name="**/*.gif"/>
  +                <exclude name="**/*.jpg"/>
  +                <exclude name="**/*.png"/>
  +            </fileset>
  +        </copy>
  +        <copy todir="${build.context}" filtering="off">
  +            <fileset dir="${context.dir}">
  +                <include name="**/*.gif"/>
  +                <include name="**/*.jpg"/>
  +                <include name="**/*.png"/>
  +            </fileset>
  +        </copy>
  +        <copy todir="${build.xdocs}" overwrite="true" filtering="on">
  +            <fileset dir="${xdocs.dir}"/>
  +        </copy>
  +
  +        <style style="${announce2txt}" in="${build.xdocs}/framework/announcement.xml"
  +            out="Announcement.txt"/>
  +        <style style="${announce2header}" in="${build.xdocs}/framework/announcement.xml"
  +            out="${dist.base}/HEADER.html"/>
  +        <style style="${announce2readme}" in="${build.xdocs}/framework/announcement.xml"
  +            out="${dist.base}/README.html"/>
  +        <style style="${announce2site}" in="${build.xdocs}/framework/announcement.xml"
  +            out="jakarta-news.xml"/>
  +
  +    </target>
  +
  +    <!-- Copies and filters the manifest and license. Used by jar and dist -->
  +    <target name="prepare-conf">
  +        <mkdir dir="${build.conf}"/>
  +        <copy todir="${build.conf}" flatten="true">
  +            <fileset dir="." includes="LICENSE.txt"/>
  +            <fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
  +
  +            <filterset>
  +                <filter token="name" value="${framework.name}"/>
  +                <filter token="version" value="${version}"/>
  +                <filter token="year" value="${year}"/>
  +            </filterset>
  +        </copy>
  +
  +    </target>
  +
  +    <!-- Creates all the .jar files -->
  +    <target name="all" depends="compile, prepare-conf" description="generates the Avalon jar files">
  +        <mkdir dir="${build.lib}"/>
  +        <jar jarfile="${build.lib}/${framework.name}.jar"
  +            basedir="${build.classes}"
  +            compress="${compress.jars}"
  +            manifest="${build.conf}/MANIFEST.MF">
  +            <exclude name="**/test/*"/>
  +            <include name="org/apache/avalon/framework/**"/>
  +            <zipfileset dir="${build.conf}" prefix="META-INF/">
  +                <include name="LICENSE.txt"/>
  +            </zipfileset>
  +        </jar>
  +    </target>
  +
  +    <target name="install" depends="all,install-check-cjan">
  +        <mkdir dir="${cjan.lib}" />
  +        <copy file="${build.lib}/${framework.name}.jar" todir="${cjan.lib}"/>
  +    </target>
  +
  +    <target name="install-check-cjan" unless="cjan.lib">
  +        <fail message="cjan.lib not specified." />
  +    </target>
  +
  +    <target name="uninstall" depends="install-check-cjan">
  +        <delete file="${build.lib}/${framework.name}.jar" dir="${cjan.lib}"/>
  +    </target>
  +
  +    <!-- Create the distribution -->
  +    <target name="bin-dist" depends="all">
  +
  +        <mkdir dir="${dist.dir}"/>
  +        <copy file="${build.lib}/${framework.name}.jar" tofile="${dist.dir}/${framework.name}-${version}.jar"/>
  +        <copy file="${logkit.jar}" todir="${dist.dir}"/>
  +
  +        <mkdir dir="${dist.docs}"/>
  +        <mkdir dir="${dist.javadocs}"/>
  +
  +        <copy todir="${dist.docs}">
  +            <fileset dir="${docs.dir}"/>
  +        </copy>
  +
  +        <copy todir="${dist.dir}">
  +            <fileset dir=".">
  +                <include name="README.txt"/>
  +                <include name="KEYS"/>
  +                <include name="LICENSE.txt"/>
  +            </fileset>
  +        </copy>
  +
  +        <chmod dir="${dist.dir}" perm="go-rwx" />
  +
  +    </target>
  +
  +    <!-- Create the source distribution -->
  +    <target name="src-dist" depends="setup-properties">
  +
  +        <mkdir dir="${src.dist.dir}" />
  +
  +        <copy todir="${src.dist.lib}">
  +            <fileset dir="${lib.dir}">
  +                <include name="README.txt" />
  +            </fileset>
  +        </copy>
  +
  +        <copy file="${logkit.jar}" todir="${src.dist.lib}"/>
  +
  +        <copy todir="${src.dist.src}">
  +            <fileset dir="${src.dir}"/>
  +        </copy>
  +
  +        <copy todir="${src.dist.docs}">
  +            <fileset dir="${build.docs}"/>
  +        </copy>
  +
  +        <copy todir="${src.dist.javadocs}">
  +            <fileset dir="${build.javadocs}"/>
  +        </copy>
  +
  +        <copy todir="${src.dist.dir}/tools">
  +            <fileset dir="${tools.dir}">
  +                <include name="*.xsl"/>
  +            </fileset>
  +        </copy>
  +
  +        <filter token="version" value="${version}"/>
  +        <filter token="year" value="${year}"/>
  +        <copy todir="${src.dist.dir}" filtering="on">
  +            <fileset dir=".">
  +                <include name="README.txt"/>
  +                <include name="BUILDING.txt"/>
  +                <include name="LICENSE.txt"/>
  +                <include name="KEYS"/>
  +                <include name="ant.properties.sample"/>
  +                <include name="build.xml"/>
  +            </fileset>
  +        </copy>
  +
  +        <fixcrlf srcdir="${src.dist.dir}" includes="build.sh" eol="lf"/>
  +        <fixcrlf srcdir="${src.dist.dir}" includes="build.bat" eol="crlf"/>
  +
  +        <fixcrlf srcdir="${src.dist.src}/java" includes="**/*.java" eol="lf"/>
  +
  +        <chmod dir="${src.dist.dir}" perm="go-rwx" />
  +
  +    </target>
  +
  +    <!-- Completely build all dists -->
  +    <target name="dist" depends="announcement,site-docs" description="generates the Avalon distribution">
  +        <mkdir dir="${dist.base}"/>
  +
  +        <antcall target="bin-dist">
  +            <param name="dist.dir" value="${dist.name}" />
  +        </antcall>
  +
  +        <copy file="${build.lib}/avalon-framework.jar" tofile="${tools.dir}/ext/avalon-framework.jar"/>
  +
  +        <zip file="${dist.base}/${dist.name}-bin.zip"
  +            basedir="${dist.name}/.."
  +            includes="${dist.name}/**"/>
  +
  +        <tar longfile="gnu" tarfile="${dist.base}/${dist.name}-bin.tar">
  +            <tarfileset dir="${dist.name}/.." username="avalon" group="avalon">
  +                <include name="${dist.name}/**"/>
  +            </tarfileset>
  +        </tar>
  +
  +        <gzip zipfile="${dist.base}/${dist.name}-bin.tar.gz"
  +            src="${dist.base}/${dist.name}-bin.tar"/>
  +
  +        <delete file="${dist.base}/${dist.name}-bin.tar"/>
  +        <delete dir="${dist.name}" />
  +
  +        <antcall target="src-dist">
  +            <param name="src.dist.dir" value="${dist.name}" />
  +        </antcall>
  +
  +        <copy todir="${dist.name}">
  +            <fileset dir="${src.dist.dir}"/>
  +        </copy>
  +
  +        <zip file="${dist.base}/${dist.name}-src.zip"
  +            basedir="${dist.name}/.."
  +            includes="${dist.name}/**"/>
  +
  +        <tar longfile="gnu" tarfile="${dist.base}/${dist.name}-src.tar" >
  +            <tarfileset dir="${dist.name}/.." mode="755" username="avalon" group="avalon">
  +                <include name="${dist.name}/build.sh"/>
  +            </tarfileset>
  +            <tarfileset dir="${dist.name}/.." username="avalon" group="avalon">
  +                <include name="${dist.name}/**"/>
  +                <exclude name="${dist.name}/build.sh"/>
  +            </tarfileset>
  +        </tar>
  +
  +        <gzip zipfile="${dist.base}/${dist.name}-src.tar.gz"
  +            src="${dist.base}/${dist.name}-src.tar"/>
  +
  +        <delete file="${dist.base}/${dist.name}-src.tar"/>
  +        <delete dir="${dist.name}" />
  +        <delete dir="${src.dist.dir}"/>
  +
  +    </target>
  +
  +    <target name="sitebook2docbook" description="goes through all the xdocs and transforms them to docbook">
  +        <style style="${document2docbook}"
  +            basedir="${context.dir}/xdocs"
  +            destdir="${build.context}/xdocs"
  +            extension=".xml"
  +            includes="*.xml,*/*.xml,*/*/*.xml"/>
  +    </target>
  +
  +    <!-- Cleans up build and distribution directories -->
  +    <target name="clean" depends="setup-properties" description="cleans up the created directories">
  +        <delete dir="${build.dir}" />
  +        <delete dir="${dist.dir}" />
  +        <delete>
  +            <fileset dir="." includes="**/*~" defaultexcludes="no"/>
  +        </delete>
  +    </target>
  +
  +    <!-- Cleans absolutely everything up -->
  +    <target name="distclean" depends="clean" description="cleans up all generated files and directories">
  +        <delete dir="${docs.dir}" />
  +        <delete dir="${dist.base}" />
  +        <delete dir="${src.dist.dir}" />
  +        <delete file="Announcement.txt" />
  +        <delete file="jakarta-news.xml" />
  +    </target>
   
   </project>
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message