You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rd...@apache.org on 2003/09/08 20:20:53 UTC

cvs commit: jakarta-commons-sandbox/resources build-legacy.xml build.xml

rdonkin     2003/09/08 11:20:53

  Modified:    resources build.xml
  Added:       resources build-legacy.xml
  Log:
  Replaced legacy build.xml with maven generated one
  
  Revision  Changes    Path
  1.22      +166 -300  jakarta-commons-sandbox/resources/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/resources/build.xml,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- build.xml	7 Jan 2003 02:40:52 -0000	1.21
  +++ build.xml	8 Sep 2003 18:20:52 -0000	1.22
  @@ -1,313 +1,179 @@
  -<project name="Resource Facilities" default="compile" basedir=".">
  -
  +<?xml version="1.0" encoding="UTF-8"?>
   
   <!--
  -        "Resource Facilities" component of the Jakarta Commons Subproject
  -        $Id$
  -        
  -        
  -         all             Clean and compile all components
  -         clean           Clean build and distribution directories
  -         compile         Compile shareable components
  -         compile.tests   Compile unit test cases
  -         dist            Create binary distribution
  -         init            Initialize and evaluate conditionals
  -         javadoc         Create component Javadoc documentation
  -         prepare         Prepare build directory
  -         static          Copy static files to build directory
  -         test            Run all unit test cases
  -        
  -         Default target: compile
  -
  +  build.xml generated by maven from project.xml version 1.0-dev
  +  on date September 8 2003, time 1921
   -->
   
  -
  -<!-- ========== Initialize Properties ===================================== -->
  -
  -
  -  <property file="build.properties"/>                <!-- Component local   -->
  -  <property file="../build.properties"/>             <!-- Commons local     -->
  -  <property file="${user.home}/build.properties"/>   <!-- User local        -->
  -
  -
  -<!-- ========== External Dependencies ===================================== -->
  -
  -  <!-- The home directory for the BeanUtils package -->
  -  <property name="commons-beanutils.home" value="../beanutils/dist" />
  -
  -  <!-- The home directory for the Commons collection classes distribution -->
  -  <property name="commons-collections.home" value="../collections/dist"/>
  -
  -  <!-- The home directory for the Digester package -->
  -  <property name="commons-digester.home" value="../digester/dist" />
  -
  -  <!-- The home directory for the Discovery package -->
  -  <property name="commons-discovery.home" value="../discovery/dist" />
  -
  -  <!-- The home directory for the Logging package -->
  -  <property name="commons-logging.home" value="../logging/dist" />
  -
  -  <!-- The directory containing your binary distribution of JUnit,
  -       version 3.7 or later -->
  -  <property name="junit.home"              value="/usr/local/junit3.7" />
  -
  -  <!-- The home directory for the servlet.jar file -->
  -  <property name="servlet.home" value="/usr/local/jakarta-tomcat/common/lib"/>
  -
  -
  -<!-- ========== Derived Values ============================================ -->
  -
  -
  -  <!-- The pathname of the beanutils JAR file -->
  -  <property name="commons-beanutils.jar" value="${commons-beanutils.home}/commons-beanutils.jar"/>
  -
  -  <!-- The pathname of the collections classes JAR file -->
  -  <property name="commons-collections.jar" value="${commons-collections.home}/commons-collections.jar"/>
  -
  -  <!-- The pathname of the digester JAR file -->
  -  <property name="commons-digester.jar" value="${commons-digester.home}/commons-digester.jar" />
  -
  -  <!-- The pathname of the discovery JAR file -->
  -  <property name="commons-discovery.jar" value="${commons-discovery.home}/commons-discovery.jar" />
  -
  -  <!-- The pathname of the logging JAR file -->
  -  <property name="commons-logging.jar" value="${commons-logging.home}/commons-logging.jar" />
  -
  -  <!-- The pathname of the "junit.jar" JAR file -->
  -  <property name="junit.jar"           value="${junit.home}/junit.jar"/>
  -
  -  <!-- The pathname of the "servlet.jar" JAR file -->
  -  <property name="servlet.jar"         value="${servlet.home}/servlet.jar"/>
  -
  -
  -<!-- ========== Component Declarations ==================================== -->
  -
  -
  -  <!-- The name of this component -->
  -  <property name="component.name"          value="resources"/>
  -
  -  <!-- The primary package name of this component -->
  -  <property name="component.package"       value="org.apache.commons.resources"/>
  -
  -  <!-- The title of this component -->
  -  <property name="component.title"         value="Application Resources Facilities"/>
  -
  -  <!-- The current version number of this component -->
  -  <property name="component.version"       value="0.1-dev"/>
  -
  -  <!-- The base directory for compilation targets -->
  -  <property name="build.home"              value="${basedir}/target"/>
  -
  -  <!-- The base directory for component configuration files -->
  -  <property name="conf.home"               value="src/conf"/>
  -
  -  <!-- The base directory for distribution targets -->
  -  <property name="dist.home"               value="dist"/>
  -
  -  <!-- The base directory for component sources -->
  -  <property name="source.home"             value="src/java"/>
  -
  -  <!-- The base directory for unit test sources -->
  -  <property name="test.home"               value="src/test"/>
  -
  -  <!-- The base directory for the webapps -->
  -  <property name="webapp.home"             value="src/web"/>
  -
  -  <!-- The base directory for the documentation -->
  -  <property name="doc.home"                value="src/doc"/>
  -
  -
  -<!-- ========== Compiler Defaults ========================================= -->
  -
  -
  -  <!-- Should Java compilations set the 'debug' compiler option? -->
  -  <property name="compile.debug"           value="true"/>
  -
  -  <!-- Should Java compilations set the 'deprecation' compiler option? -->
  -  <property name="compile.deprecation"     value="true"/>
  -
  -  <!-- Should Java compilations set the 'optimize' compiler option? -->
  -  <property name="compile.optimize"        value="true"/>
  -
  -
  -  <!-- Construct compile classpath -->
  -  <path id="compile.classpath">
  -    <pathelement location="${build.home}/classes"/>
  -    <pathelement location="${commons-beanutils.jar}"/>
  -    <pathelement location="${commons-collections.jar}"/>
  -    <pathelement location="${commons-digester.jar}"/>
  -    <pathelement location="${commons-discovery.jar}"/>
  -    <pathelement location="${commons-logging.jar}"/>
  -    <pathelement location="${servlet.jar}"/>
  -  </path>
  -
  -
  -<!-- ========== Test Execution Defaults =================================== -->
  -
  -
  -  <!-- Construct unit test classpath -->
  -  <path id="test.classpath">
  -    <pathelement location="${build.home}/classes"/>
  -    <pathelement location="${build.home}/tests"/>
  -    <pathelement location="${commons-beanutils.jar}"/>
  -    <pathelement location="${commons-collections.jar}"/>
  -    <pathelement location="${commons-digester.jar}"/>
  -    <pathelement location="${commons-discovery.jar}"/>
  -    <pathelement location="${commons-logging.jar}"/>
  -    <pathelement location="${junit.jar}"/>
  -    <pathelement location="${servlet.jar}"/>
  -  </path>
  -
  -
  -  <!-- Should all tests fail if one does? -->
  -  <property name="test.failonerror"        value="true"/>
  -
  -  <!-- The test runner to execute -->
  -  <property name="test.runner"             value="junit.textui.TestRunner"/>
  -
  -  <!-- The Commons Logger LogFactory implementation to use -->
  -  <property name="test.factory"
  -           value="org.apache.commons.logging.impl.LogFactoryImpl"/>
  -
  -  <!-- The Commons Logger Log implementation to use (standard factory) -->
  -  <property name="test.log"
  -           value="org.apache.commons.logging.impl.SimpleLog"/>
  -
  -  <!-- The Commons Logger SimpleLog level for testing -->
  -  <property name="test.level"               value="error"/>
  -
  -
  -<!-- ========== Executable Targets ======================================== -->
  -
  -
  -  <target name="init"
  -   description="Initialize and evaluate conditionals">
  -    <echo message="-------- ${component.name} ${component.version} --------"/>
  -    <filter  token="name"                  value="${component.name}"/>
  -    <filter  token="package"               value="${component.package}"/>
  -    <filter  token="version"               value="${component.version}"/>
  -  </target>
  -
  -
  -  <target name="prepare" depends="init"
  -   description="Prepare build directory">
  -    <mkdir dir="${build.home}"/>
  -    <mkdir dir="${build.home}/classes"/>
  -    <mkdir dir="${build.home}/conf"/>
  -    <mkdir dir="${build.home}/tests"/>
  -    <mkdir dir="${build.home}/webapps"/>
  -  </target>
  -
  -
  -  <target name="static" depends="prepare"
  -   description="Copy static files to build directory">
  -    <tstamp/>
  -    <copy  todir="${build.home}/conf" filtering="on">
  -      <fileset dir="${conf.home}" includes="*.MF"/>
  -    </copy>
  -  </target>
  -
  -
  -  <target name="compile" depends="static"
  -   description="Compile shareable components">
  -    <javac  srcdir="${source.home}"
  -           destdir="${build.home}/classes"
  -             debug="${compile.debug}"
  -       deprecation="${compile.deprecation}"
  -          optimize="${compile.optimize}">
  -      <classpath refid="compile.classpath"/>
  +<project default="jar" name="commons-resources" basedir=".">
  +  <property name="defaulttargetdir" value="target">
  +  </property>
  +  <property name="libdir" value="target/lib">
  +  </property>
  +  <property name="classesdir" value="target/classes">
  +  </property>
  +  <property name="testclassesdir" value="target/test-classes">
  +  </property>
  +  <property name="testreportdir" value="target/test-reports">
  +  </property>
  +  <property name="distdir" value="dist">
  +  </property>
  +  <property name="javadocdir" value="dist/docs/api">
  +  </property>
  +  <property name="final.name" value="commons-resources-1.0-dev">
  +  </property>
  +  <target name="init" description="o Initializes some properties">
  +    <mkdir dir="${libdir}">
  +    </mkdir>
  +    <condition property="noget">
  +      <equals arg2="only" arg1="${build.sysclasspath}">
  +      </equals>
  +    </condition>
  +  </target>
  +  <target name="compile" description="o Compile the code" depends="get-deps">
  +    <mkdir dir="${classesdir}">
  +    </mkdir>
  +    <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
  +      <src>
  +        <pathelement location="src/java">
  +        </pathelement>
  +      </src>
  +      <classpath>
  +        <fileset dir="${libdir}">
  +          <include name="*.jar">
  +          </include>
  +        </fileset>
  +      </classpath>
       </javac>
  -    <copy    todir="${build.home}/classes" filtering="on">
  -      <fileset dir="${source.home}" excludes="**/*.java"/>
  +    <copy todir="${testclassesdir}">
  +      <fileset dir="src/test">
  +        <include name="**/*.properties">
  +        </include>
  +        <include name="**/*.xml">
  +        </include>
  +      </fileset>
       </copy>
     </target>
  -
  -
  -
  -  <target name="compile.tests" depends="compile"
  -   description="Compile unit test cases">
  -    <javac  srcdir="${test.home}"
  -           destdir="${build.home}/tests"
  -             debug="${compile.debug}"
  -       deprecation="${compile.deprecation}"
  -          optimize="${compile.optimize}">
  -      <classpath refid="test.classpath"/>
  -    </javac>
  -    <copy    todir="${build.home}/tests" filtering="on">
  -      <fileset dir="${test.home}" excludes="**/*.java"/>
  +  <target name="jar" description="o Create the jar" depends="compile,test">
  +    <jar jarfile="target/${final.name}.jar" excludes="**/package.html" basedir="${classesdir}">
  +    </jar>
  +  </target>
  +  <target name="clean" description="o Clean up the generated directories">
  +    <delete dir="${defaulttargetdir}">
  +    </delete>
  +    <delete dir="${distdir}">
  +    </delete>
  +  </target>
  +  <target name="dist" description="o Create a distribution" depends="jar, javadoc">
  +    <mkdir dir="dist">
  +    </mkdir>
  +    <copy todir="dist">
  +      <fileset dir="${defaulttargetdir}" includes="*.jar">
  +      </fileset>
  +      <fileset dir="${basedir}" includes="LICENSE*, README*">
  +      </fileset>
       </copy>
     </target>
  -
  -
  -  <target name="clean"
  -   description="Clean build and distribution directories">
  -    <delete    dir="${build.home}"/>
  -    <delete    dir="${dist.home}"/>
  +  <target name="test" description="o Run the test cases" if="test.failure" depends="internal-test">
  +    <fail message="There were test failures.">
  +    </fail>
  +  </target>
  +  <target name="internal-test" depends="compile-tests">
  +    <mkdir dir="${testreportdir}">
  +    </mkdir>
  +    <junit dir="./" failureproperty="test.failure" printSummary="yes" fork="true" haltonerror="true">
  +      <sysproperty key="basedir" value=".">
  +      </sysproperty>
  +      <formatter type="xml">
  +      </formatter>
  +      <formatter usefile="false" type="plain">
  +      </formatter>
  +      <classpath>
  +        <fileset dir="${libdir}">
  +          <include name="*.jar">
  +          </include>
  +        </fileset>
  +        <pathelement path="${testclassesdir}">
  +        </pathelement>
  +        <pathelement path="${classesdir}">
  +        </pathelement>
  +      </classpath>
  +      <batchtest todir="${testreportdir}">
  +        <fileset dir="src/test">
  +          <include name="**/*TestCase.java">
  +          </include>
  +        </fileset>
  +      </batchtest>
  +    </junit>
     </target>
  -
  -
  -  <target name="all" depends="clean,compile"
  -   description="Clean and compile all components"/>
  -
  -
  -  <target name="javadoc" depends="compile"
  -   description="Create component Javadoc documentation">
  -    <mkdir      dir="${dist.home}"/>
  -    <mkdir      dir="${dist.home}/docs"/>
  -    <mkdir      dir="${dist.home}/docs/api"/>
  -    <javadoc sourcepath="${source.home}"
  -                destdir="${dist.home}/docs/api"
  -           packagenames="org.apache.commons.*"
  -                 author="true"
  -               overview="src/java/overview.html"
  -                private="true"
  -                version="true"
  -               doctitle="&lt;h1&gt;${component.title}&lt;/h1&gt;"
  -            windowtitle="${component.title} (Version ${component.version})"
  -                 bottom="Copyright (c) 2002-2003 - Apache Software Foundation">
  -      <classpath  refid="compile.classpath"/>
  -    </javadoc>
  +  <target name="compile-tests" depends="compile">
  +    <mkdir dir="${testclassesdir}">
  +    </mkdir>
  +    <javac destdir="${testclassesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
  +      <src>
  +        <pathelement location="src/test">
  +        </pathelement>
  +      </src>
  +      <classpath>
  +        <fileset dir="${libdir}">
  +          <include name="*.jar">
  +          </include>
  +        </fileset>
  +        <pathelement path="${classesdir}">
  +        </pathelement>
  +      </classpath>
  +    </javac>
     </target>
  -
  -
  -  <target name="dist" depends="javadoc"
  -   description="Create binary distribution">
  -    <mkdir      dir="${dist.home}"/>
  -    <copy      file="../LICENSE"
  -              todir="${dist.home}"/>
  -    <jar    jarfile="${dist.home}/commons-${component.name}.jar"
  -            basedir="${build.home}/classes"
  -           manifest="${build.home}/conf/MANIFEST.MF"/>
  +  <target name="javadoc" description="o Generate javadoc" depends="jar">
  +    <mkdir dir="${javadocdir}">
  +    </mkdir>
  +    <tstamp>
  +      <format pattern="2002-yyyy" property="year">
  +      </format>
  +    </tstamp>
  +    <property name="copyright" value="Copyright &amp;copy;  Apache Software Foundation. All Rights Reserved.">
  +    </property>
  +    <property name="title" value="commons-resources 1.0-dev API">
  +    </property>
  +    <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/java" packagenames="org.apache.commons.resources.*">
  +      <classpath>
  +        <fileset dir="${libdir}">
  +          <include name="*.jar">
  +          </include>
  +        </fileset>
  +        <pathelement location="target/${final.name}.jar">
  +        </pathelement>
  +      </classpath>
  +    </javadoc>
     </target>
  -
  -
  -<!-- ========== Unit Test Targets ========================================= -->
  -
  -
  -  <target name="test" depends="compile.tests"
  -   description="Unit Tests that require only JUnit">
  -
  -    <junit printsummary="yes" fork="yes"
  -          haltonfailure="yes" haltonerror="yes">
  -
  -      <sysproperty key="org.apache.commons.logging.LogFactory"
  -                 value="${test.factory}"/>
  -      <sysproperty key="org.apache.commons.logging.Log"
  -                 value="${test.log}"/>
  -      <sysproperty key="org.apache.commons.logging.simplelog.defaultlog"
  -                 value="${test.level}"/>
  -      <classpath refid="test.classpath"/>
  -      <formatter type="plain" usefile="false"/>
  -
  -      <batchtest>
  -        <fileset dir="${build.home}/tests"
  -            includes="org/apache/commons/resources/*TestCase.class"/>
  -        <fileset dir="${build.home}/tests"
  -            includes="org/apache/commons/resources/impl/*TestCase.class"/>
  -      </batchtest>
  -
  -    </junit>
  -
  +  <target name="get-deps" unless="noget" depends="init">
  +    <get dest="${libdir}/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/xml-apis/jars/xml-apis-2.0.2.jar">
  +    </get>
  +    <get dest="${libdir}/commons-beanutils-1.5.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-1.5.jar">
  +    </get>
  +    <get dest="${libdir}/commons-collections-2.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-collections/jars/commons-collections-2.1.jar">
  +    </get>
  +    <get dest="${libdir}/commons-digester-1.3.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-digester/jars/commons-digester-1.3.jar">
  +    </get>
  +    <get dest="${libdir}/commons-discovery-0.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-discovery/jars/commons-discovery-0.1.jar">
  +    </get>
  +    <get dest="${libdir}/commons-logging-1.0.2.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.2.jar">
  +    </get>
  +    <get dest="${libdir}/servletapi-2.3.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/servletapi/jars/servletapi-2.3.jar">
  +    </get>
  +    <get dest="${libdir}/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar">
  +    </get>
  +    <get dest="${libdir}/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar">
  +    </get>
  +    <get dest="${libdir}/ant-1.5.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/ant/jars/ant-1.5.jar">
  +    </get>
  +    <get dest="${libdir}/ant-optional-1.5.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/ant/jars/ant-optional-1.5.jar">
  +    </get>
  +  </target>
  +  <target name="install-maven">
  +    <get dest="${user.home}/maven-install-latest.jar" usetimestamp="true" src="${repo}/maven/maven-install-latest.jar">
  +    </get>
  +    <unjar dest="${maven.home}" src="${user.home}/maven-install-latest.jar">
  +    </unjar>
     </target>
  -
  -</project>
  +</project>
  \ No newline at end of file
  
  
  
  1.1                  jakarta-commons-sandbox/resources/build-legacy.xml
  
  Index: build-legacy.xml
  ===================================================================
  <project name="Resource Facilities" default="compile" basedir=".">
  
  
  <!--
          "Resource Facilities" component of the Jakarta Commons Subproject
          $Id: build-legacy.xml,v 1.1 2003/09/08 18:20:52 rdonkin Exp $
          
          
           all             Clean and compile all components
           clean           Clean build and distribution directories
           compile         Compile shareable components
           compile.tests   Compile unit test cases
           dist            Create binary distribution
           init            Initialize and evaluate conditionals
           javadoc         Create component Javadoc documentation
           prepare         Prepare build directory
           static          Copy static files to build directory
           test            Run all unit test cases
          
           Default target: compile
  
  -->
  
  
  <!-- ========== Initialize Properties ===================================== -->
  
  
    <property file="build.properties"/>                <!-- Component local   -->
    <property file="../build.properties"/>             <!-- Commons local     -->
    <property file="${user.home}/build.properties"/>   <!-- User local        -->
  
  
  <!-- ========== External Dependencies ===================================== -->
  
    <!-- The home directory for the BeanUtils package -->
    <property name="commons-beanutils.home" value="../beanutils/dist" />
  
    <!-- The home directory for the Commons collection classes distribution -->
    <property name="commons-collections.home" value="../collections/dist"/>
  
    <!-- The home directory for the Digester package -->
    <property name="commons-digester.home" value="../digester/dist" />
  
    <!-- The home directory for the Discovery package -->
    <property name="commons-discovery.home" value="../discovery/dist" />
  
    <!-- The home directory for the Logging package -->
    <property name="commons-logging.home" value="../logging/dist" />
  
    <!-- The directory containing your binary distribution of JUnit,
         version 3.7 or later -->
    <property name="junit.home"              value="/usr/local/junit3.7" />
  
    <!-- The home directory for the servlet.jar file -->
    <property name="servlet.home" value="/usr/local/jakarta-tomcat/common/lib"/>
  
  
  <!-- ========== Derived Values ============================================ -->
  
  
    <!-- The pathname of the beanutils JAR file -->
    <property name="commons-beanutils.jar" value="${commons-beanutils.home}/commons-beanutils.jar"/>
  
    <!-- The pathname of the collections classes JAR file -->
    <property name="commons-collections.jar" value="${commons-collections.home}/commons-collections.jar"/>
  
    <!-- The pathname of the digester JAR file -->
    <property name="commons-digester.jar" value="${commons-digester.home}/commons-digester.jar" />
  
    <!-- The pathname of the discovery JAR file -->
    <property name="commons-discovery.jar" value="${commons-discovery.home}/commons-discovery.jar" />
  
    <!-- The pathname of the logging JAR file -->
    <property name="commons-logging.jar" value="${commons-logging.home}/commons-logging.jar" />
  
    <!-- The pathname of the "junit.jar" JAR file -->
    <property name="junit.jar"           value="${junit.home}/junit.jar"/>
  
    <!-- The pathname of the "servlet.jar" JAR file -->
    <property name="servlet.jar"         value="${servlet.home}/servlet.jar"/>
  
  
  <!-- ========== Component Declarations ==================================== -->
  
  
    <!-- The name of this component -->
    <property name="component.name"          value="resources"/>
  
    <!-- The primary package name of this component -->
    <property name="component.package"       value="org.apache.commons.resources"/>
  
    <!-- The title of this component -->
    <property name="component.title"         value="Application Resources Facilities"/>
  
    <!-- The current version number of this component -->
    <property name="component.version"       value="0.1-dev"/>
  
    <!-- The base directory for compilation targets -->
    <property name="build.home"              value="${basedir}/target"/>
  
    <!-- The base directory for component configuration files -->
    <property name="conf.home"               value="src/conf"/>
  
    <!-- The base directory for distribution targets -->
    <property name="dist.home"               value="dist"/>
  
    <!-- The base directory for component sources -->
    <property name="source.home"             value="src/java"/>
  
    <!-- The base directory for unit test sources -->
    <property name="test.home"               value="src/test"/>
  
    <!-- The base directory for the webapps -->
    <property name="webapp.home"             value="src/web"/>
  
    <!-- The base directory for the documentation -->
    <property name="doc.home"                value="src/doc"/>
  
  
  <!-- ========== Compiler Defaults ========================================= -->
  
  
    <!-- Should Java compilations set the 'debug' compiler option? -->
    <property name="compile.debug"           value="true"/>
  
    <!-- Should Java compilations set the 'deprecation' compiler option? -->
    <property name="compile.deprecation"     value="true"/>
  
    <!-- Should Java compilations set the 'optimize' compiler option? -->
    <property name="compile.optimize"        value="true"/>
  
  
    <!-- Construct compile classpath -->
    <path id="compile.classpath">
      <pathelement location="${build.home}/classes"/>
      <pathelement location="${commons-beanutils.jar}"/>
      <pathelement location="${commons-collections.jar}"/>
      <pathelement location="${commons-digester.jar}"/>
      <pathelement location="${commons-discovery.jar}"/>
      <pathelement location="${commons-logging.jar}"/>
      <pathelement location="${servlet.jar}"/>
    </path>
  
  
  <!-- ========== Test Execution Defaults =================================== -->
  
  
    <!-- Construct unit test classpath -->
    <path id="test.classpath">
      <pathelement location="${build.home}/classes"/>
      <pathelement location="${build.home}/tests"/>
      <pathelement location="${commons-beanutils.jar}"/>
      <pathelement location="${commons-collections.jar}"/>
      <pathelement location="${commons-digester.jar}"/>
      <pathelement location="${commons-discovery.jar}"/>
      <pathelement location="${commons-logging.jar}"/>
      <pathelement location="${junit.jar}"/>
      <pathelement location="${servlet.jar}"/>
    </path>
  
  
    <!-- Should all tests fail if one does? -->
    <property name="test.failonerror"        value="true"/>
  
    <!-- The test runner to execute -->
    <property name="test.runner"             value="junit.textui.TestRunner"/>
  
    <!-- The Commons Logger LogFactory implementation to use -->
    <property name="test.factory"
             value="org.apache.commons.logging.impl.LogFactoryImpl"/>
  
    <!-- The Commons Logger Log implementation to use (standard factory) -->
    <property name="test.log"
             value="org.apache.commons.logging.impl.SimpleLog"/>
  
    <!-- The Commons Logger SimpleLog level for testing -->
    <property name="test.level"               value="error"/>
  
  
  <!-- ========== Executable Targets ======================================== -->
  
  
    <target name="init"
     description="Initialize and evaluate conditionals">
      <echo message="-------- ${component.name} ${component.version} --------"/>
      <filter  token="name"                  value="${component.name}"/>
      <filter  token="package"               value="${component.package}"/>
      <filter  token="version"               value="${component.version}"/>
    </target>
  
  
    <target name="prepare" depends="init"
     description="Prepare build directory">
      <mkdir dir="${build.home}"/>
      <mkdir dir="${build.home}/classes"/>
      <mkdir dir="${build.home}/conf"/>
      <mkdir dir="${build.home}/tests"/>
      <mkdir dir="${build.home}/webapps"/>
    </target>
  
  
    <target name="static" depends="prepare"
     description="Copy static files to build directory">
      <tstamp/>
      <copy  todir="${build.home}/conf" filtering="on">
        <fileset dir="${conf.home}" includes="*.MF"/>
      </copy>
    </target>
  
  
    <target name="compile" depends="static"
     description="Compile shareable components">
      <javac  srcdir="${source.home}"
             destdir="${build.home}/classes"
               debug="${compile.debug}"
         deprecation="${compile.deprecation}"
            optimize="${compile.optimize}">
        <classpath refid="compile.classpath"/>
      </javac>
      <copy    todir="${build.home}/classes" filtering="on">
        <fileset dir="${source.home}" excludes="**/*.java"/>
      </copy>
    </target>
  
  
  
    <target name="compile.tests" depends="compile"
     description="Compile unit test cases">
      <javac  srcdir="${test.home}"
             destdir="${build.home}/tests"
               debug="${compile.debug}"
         deprecation="${compile.deprecation}"
            optimize="${compile.optimize}">
        <classpath refid="test.classpath"/>
      </javac>
      <copy    todir="${build.home}/tests" filtering="on">
        <fileset dir="${test.home}" excludes="**/*.java"/>
      </copy>
    </target>
  
  
    <target name="clean"
     description="Clean build and distribution directories">
      <delete    dir="${build.home}"/>
      <delete    dir="${dist.home}"/>
    </target>
  
  
    <target name="all" depends="clean,compile"
     description="Clean and compile all components"/>
  
  
    <target name="javadoc" depends="compile"
     description="Create component Javadoc documentation">
      <mkdir      dir="${dist.home}"/>
      <mkdir      dir="${dist.home}/docs"/>
      <mkdir      dir="${dist.home}/docs/api"/>
      <javadoc sourcepath="${source.home}"
                  destdir="${dist.home}/docs/api"
             packagenames="org.apache.commons.*"
                   author="true"
                 overview="src/java/overview.html"
                  private="true"
                  version="true"
                 doctitle="&lt;h1&gt;${component.title}&lt;/h1&gt;"
              windowtitle="${component.title} (Version ${component.version})"
                   bottom="Copyright (c) 2002-2003 - Apache Software Foundation">
        <classpath  refid="compile.classpath"/>
      </javadoc>
    </target>
  
  
    <target name="dist" depends="javadoc"
     description="Create binary distribution">
      <mkdir      dir="${dist.home}"/>
      <copy      file="../LICENSE"
                todir="${dist.home}"/>
      <jar    jarfile="${dist.home}/commons-${component.name}.jar"
              basedir="${build.home}/classes"
             manifest="${build.home}/conf/MANIFEST.MF"/>
    </target>
  
  
  <!-- ========== Unit Test Targets ========================================= -->
  
  
    <target name="test" depends="compile.tests"
     description="Unit Tests that require only JUnit">
  
      <junit printsummary="yes" fork="yes"
            haltonfailure="yes" haltonerror="yes">
  
        <sysproperty key="org.apache.commons.logging.LogFactory"
                   value="${test.factory}"/>
        <sysproperty key="org.apache.commons.logging.Log"
                   value="${test.log}"/>
        <sysproperty key="org.apache.commons.logging.simplelog.defaultlog"
                   value="${test.level}"/>
        <classpath refid="test.classpath"/>
        <formatter type="plain" usefile="false"/>
  
        <batchtest>
          <fileset dir="${build.home}/tests"
              includes="org/apache/commons/resources/*TestCase.class"/>
          <fileset dir="${build.home}/tests"
              includes="org/apache/commons/resources/impl/*TestCase.class"/>
        </batchtest>
  
      </junit>
  
    </target>
  
  </project>
  
  
  

Re: cvs commit: jakarta-commons-sandbox/resources build-legacy.xml build.xml

Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
On Tuesday, September 9, 2003, at 08:26 AM, Stefan Bodewig wrote:

> On Mon, 8 Sep 2003, robert burrell donkin
> <ro...@blueyonder.co.uk> wrote:
>
>> it is also dangerous since gump and nightly builds work from the ant
>> build.xml - if this is not maintained, then there may be false
>> positives and false negatives.
>
> For pretty much the same reason, could you please also update the Gump
> descriptor (you have commit access to jakarta-gump 8-)
>
> The current Gump run is going to fail as the maven generated build
> file runs the Unit tests (which is good IMHO) but the current (well,
> current until a few seconds ago) Gump descriptor doesn't know about
> the JUnit dependency at all.
>
> I've patched the descriptor in Gump's cvs, please compare it to a
> maven generated descriptor to see whether there is anything different.
> The version we have now works for my machine.

thanks stefan.

i've never know as much about gump as i probably should. (that's probably 
some sort of complement to the gumpeneers.) i know now a little more. i've 
generated a descriptor and the one in cvs looks fine (as far as i can tell)
.

- robert


Re: cvs commit: jakarta-commons-sandbox/resources build-legacy.xml build.xml

Posted by Stefan Bodewig <bo...@apache.org>.
On Mon, 8 Sep 2003, robert burrell donkin
<ro...@blueyonder.co.uk> wrote:

> it is also dangerous since gump and nightly builds work from the ant
> build.xml - if this is not maintained, then there may be false
> positives and false negatives.

For pretty much the same reason, could you please also update the Gump
descriptor (you have commit access to jakarta-gump 8-)

The current Gump run is going to fail as the maven generated build
file runs the Unit tests (which is good IMHO) but the current (well,
current until a few seconds ago) Gump descriptor doesn't know about
the JUnit dependency at all.

I've patched the descriptor in Gump's cvs, please compare it to a
maven generated descriptor to see whether there is anything different.
The version we have now works for my machine.

Cheers

        Stefan

Re: cvs commit: jakarta-commons-sandbox/resources build-legacy.xml build.xml

Posted by Robert Leland <rl...@apache.org>.
robert burrell donkin wrote:

> On Monday, September 8, 2003, at 09:07 PM, Robert Leland wrote:
>
>> rdonkin@apache.org wrote:
>>
>>> rdonkin     2003/09/08 11:20:53
>>>
>>>  Modified:    resources build.xml
>>>  Added:       resources build-legacy.xml
>>>  Log:
>>>  Replaced legacy build.xml with maven generated one
>>>
>> Preferace: I am not a resources committer.
>>
>> I am happy with all the other many changes that you made,
>> except this one.
>>
>> I don't consider an ant build file legacy.
>> Why was this done when to my knowledge it isn't necessary ?
>> Does the generated maven.xml do every thing that the old ant build 
>> does ?
>> Is it as well documented for build targets ?
>>
>> I would like to see this file restored as it was.
>
>
> hi rob
>
> this is what's usually meant by mavenization. (sorry if you 
> misunderstood what i mean.)
>
> the maven build becomes the primary, maintained build. the old 
> hand-written ant build file becomes the legacy build. most components 
> using maven found that maintaining two different build systems (hand 
> coded ant build script and mavenized project) produces too many 
> conflicts. it is also dangerous since gump and nightly builds work 
> from the ant build.xml - if this is not maintained, then there may be 
> false positives and false negatives.
>
> i'd be happy to revert to the manual base build but IMHO maven is 
> pretty much all-or-nothing. so i'd say that reverting this changes 
> also means reverting all the mavenization i've done. if the community 
> chooses reversion, i'd propose removing the maven build altogether and 
> instead use anakia (or forrest) to build the documentation. it's 
> cleaner, clearer and easier to maintain that way.


I responded to your CVS commit message before I read the original 
proposal, that talked about
renaming the old build.xml, I thought it was completely deleted ! I am 
not against Mavenizing resources
and I don't see it as an all or nothing proposition.
I also don't like duplication of effort. What I didn't say that was 
until maven 1.0 is released, keeping the custom build.xml
up to date in my mind is essential, which I will happily do. Is there a 
way to tell maven to place specific comments in the
generated build.xml ?

-Rob

>
> if you still feel strongly about this i'd be happy if you nominated 
> yourself as a commons-resources committer and put mavenization to the 
> VOTE.
>  (i'd be happy to revert all the changes i've made and put an anakia - 
> or forrest - based documentation build target into the ant build 
> script instead if the VOTE goes against mavenization.)
>
> - robert
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>
>



Re: cvs commit: jakarta-commons-sandbox/resources build-legacy.xml build.xml

Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Mon, 8 Sep 2003, David Graham wrote:

> >
> > the maven build becomes the primary, maintained build. the old
> > hand-written ant build file becomes the legacy build.
>
> So, does Maven generate an ant build.xml file for you?  If so, I assume
> you could build a mavenized project with just ant and the build.xml?
>

Yes, Maven builds the build.xml for you ("maven ant:generate-build"), to
reflect whatever your current Maven build process does.  The normal habit
is to regenerate and check in the build.xml file whenever you make changes
in your build process, for those of us (including my nightly build scripts
:-) that still require Ant.

If/when we switch Struts builds to use Maven, we're going to want to do
the same thing, which is why Ted's advice about doing this on a *new*
repository is probably better than trying to retrofit a build environment
as complicated as the Struts 1.1 one has grown.

Craig

RE: cvs commit: jakarta-commons-sandbox/resources build-legacy.xml build.xml

Posted by James Mitchell <jm...@apache.org>.
> -----Original Message-----
> From: David Graham [mailto:grahamdavid1980@yahoo.com] 
> 

<snip/>

> 
> -1 on using anakia or forrest.  Maven and Ant are the most 
> popular build
> tools in commons and I don't really feel like learning yet 
> another build
> process.

I am not a committer on this project yet, but I will be (err, that's the
plan) as soon as I port DBMessageResources over from it's current
Struts-based implementation.

I agree with David about not wanting to learn another build tool.

I think we should move forward with Maven, especially since (for those
of us who are used to doing it a different way) we can still use Ant
with the build-legacy.xml as we did with the original setup.


> 
> David
> 

--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx


Re: cvs commit: jakarta-commons-sandbox/resources build-legacy.xml build.xml

Posted by David Graham <gr...@yahoo.com>.
--- robert burrell donkin <ro...@blueyonder.co.uk> wrote:
> On Monday, September 8, 2003, at 09:07 PM, Robert Leland wrote:
> > rdonkin@apache.org wrote:
> >
> >> rdonkin     2003/09/08 11:20:53
> >>
> >>  Modified:    resources build.xml
> >>  Added:       resources build-legacy.xml
> >>  Log:
> >>  Replaced legacy build.xml with maven generated one
> >>
> > Preferace: I am not a resources committer.
> >
> > I am happy with all the other many changes that you made,
> > except this one.
> >
> > I don't consider an ant build file legacy.
> > Why was this done when to my knowledge it isn't necessary ?
> > Does the generated maven.xml do every thing that the old ant build
> does ?
> > Is it as well documented for build targets ?
> >
> > I would like to see this file restored as it was.
> 
> hi rob
> 
> this is what's usually meant by mavenization. (sorry if you
> misunderstood 
> what i mean.)
> 
> the maven build becomes the primary, maintained build. the old 
> hand-written ant build file becomes the legacy build. 

So, does Maven generate an ant build.xml file for you?  If so, I assume
you could build a mavenized project with just ant and the build.xml?

> most components 
> using maven found that maintaining two different build systems (hand
> coded 
> ant build script and mavenized project) produces too many conflicts. it
> is 
> also dangerous since gump and nightly builds work from the ant build.xml
> - 
> if this is not maintained, then there may be false positives and false 
> negatives.
> 
> i'd be happy to revert to the manual base build but IMHO maven is pretty
> 
> much all-or-nothing. so i'd say that reverting this changes also means 
> reverting all the mavenization i've done. if the community chooses 
> reversion, i'd propose removing the maven build altogether and instead
> use 
> anakia (or forrest) to build the documentation. it's cleaner, clearer
> and 
> easier to maintain that way.

-1 on using anakia or forrest.  Maven and Ant are the most popular build
tools in commons and I don't really feel like learning yet another build
process.

David

> 
> if you still feel strongly about this i'd be happy if you nominated 
> yourself as a commons-resources committer and put mavenization to the
> VOTE.
>   (i'd be happy to revert all the changes i've made and put an anakia -
> or 
> forrest - based documentation build target into the ant build script 
> instead if the VOTE goes against mavenization.)
> 
> - robert
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Re: cvs commit: jakarta-commons-sandbox/resources build-legacy.xml build.xml

Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
On Monday, September 8, 2003, at 09:07 PM, Robert Leland wrote:
> rdonkin@apache.org wrote:
>
>> rdonkin     2003/09/08 11:20:53
>>
>>  Modified:    resources build.xml
>>  Added:       resources build-legacy.xml
>>  Log:
>>  Replaced legacy build.xml with maven generated one
>>
> Preferace: I am not a resources committer.
>
> I am happy with all the other many changes that you made,
> except this one.
>
> I don't consider an ant build file legacy.
> Why was this done when to my knowledge it isn't necessary ?
> Does the generated maven.xml do every thing that the old ant build does ?
> Is it as well documented for build targets ?
>
> I would like to see this file restored as it was.

hi rob

this is what's usually meant by mavenization. (sorry if you misunderstood 
what i mean.)

the maven build becomes the primary, maintained build. the old 
hand-written ant build file becomes the legacy build. most components 
using maven found that maintaining two different build systems (hand coded 
ant build script and mavenized project) produces too many conflicts. it is 
also dangerous since gump and nightly builds work from the ant build.xml - 
if this is not maintained, then there may be false positives and false 
negatives.

i'd be happy to revert to the manual base build but IMHO maven is pretty 
much all-or-nothing. so i'd say that reverting this changes also means 
reverting all the mavenization i've done. if the community chooses 
reversion, i'd propose removing the maven build altogether and instead use 
anakia (or forrest) to build the documentation. it's cleaner, clearer and 
easier to maintain that way.

if you still feel strongly about this i'd be happy if you nominated 
yourself as a commons-resources committer and put mavenization to the VOTE.
  (i'd be happy to revert all the changes i've made and put an anakia - or 
forrest - based documentation build target into the ant build script 
instead if the VOTE goes against mavenization.)

- robert


Re: cvs commit: jakarta-commons-sandbox/resources build-legacy.xml build.xml

Posted by Robert Leland <rl...@apache.org>.
rdonkin@apache.org wrote:

>rdonkin     2003/09/08 11:20:53
>
>  Modified:    resources build.xml
>  Added:       resources build-legacy.xml
>  Log:
>  Replaced legacy build.xml with maven generated one
>  
>
Preferace: I am not a resources committer.

I am happy with all the other many changes that you made,
except this one.

I don't consider an ant build file legacy.
Why was this done when to my knowledge it isn't necessary ?
Does the generated maven.xml do every thing that the old ant build does ?
Is it as well documented for build targets ?

I would like to see this file restored as it was.
 

-Rob

>  Revision  Changes    Path
>  1.22      +166 -300  jakarta-commons-sandbox/resources/build.xml
>  
>  Index: build.xml
>  ===================================================================
>  RCS file: /home/cvs/jakarta-commons-sandbox/resources/build.xml,v
>  retrieving revision 1.21
>  retrieving revision 1.22
>  diff -u -r1.21 -r1.22
>  --- build.xml	7 Jan 2003 02:40:52 -0000	1.21
>  +++ build.xml	8 Sep 2003 18:20:52 -0000	1.22
>  @@ -1,313 +1,179 @@
>  -<project name="Resource Facilities" default="compile" basedir=".">
>  -
>  +<?xml version="1.0" encoding="UTF-8"?>
>   
>   <!--
>  -        "Resource Facilities" component of the Jakarta Commons Subproject
>  -        $Id$
>  -        
>  -        
>  -         all             Clean and compile all components
>  -         clean           Clean build and distribution directories
>  -         compile         Compile shareable components
>  -         compile.tests   Compile unit test cases
>  -         dist            Create binary distribution
>  -         init            Initialize and evaluate conditionals
>  -         javadoc         Create component Javadoc documentation
>  -         prepare         Prepare build directory
>  -         static          Copy static files to build directory
>  -         test            Run all unit test cases
>  -        
>  -         Default target: compile
>  -
>  +  build.xml generated by maven from project.xml version 1.0-dev
>  +  on date September 8 2003, time 1921
>   -->
>   
>  -
>  -<!-- ========== Initialize Properties ===================================== -->
>  -
>  -
>  -  <property file="build.properties"/>                <!-- Component local   -->
>  -  <property file="../build.properties"/>             <!-- Commons local     -->
>  -  <property file="${user.home}/build.properties"/>   <!-- User local        -->
>  -
>  -
>  -<!-- ========== External Dependencies ===================================== -->
>  -
>  -  <!-- The home directory for the BeanUtils package -->
>  -  <property name="commons-beanutils.home" value="../beanutils/dist" />
>  -
>  -  <!-- The home directory for the Commons collection classes distribution -->
>  -  <property name="commons-collections.home" value="../collections/dist"/>
>  -
>  -  <!-- The home directory for the Digester package -->
>  -  <property name="commons-digester.home" value="../digester/dist" />
>  -
>  -  <!-- The home directory for the Discovery package -->
>  -  <property name="commons-discovery.home" value="../discovery/dist" />
>  -
>  -  <!-- The home directory for the Logging package -->
>  -  <property name="commons-logging.home" value="../logging/dist" />
>  -
>  -  <!-- The directory containing your binary distribution of JUnit,
>  -       version 3.7 or later -->
>  -  <property name="junit.home"              value="/usr/local/junit3.7" />
>  -
>  -  <!-- The home directory for the servlet.jar file -->
>  -  <property name="servlet.home" value="/usr/local/jakarta-tomcat/common/lib"/>
>  -
>  -
>  -<!-- ========== Derived Values ============================================ -->
>  -
>  -
>  -  <!-- The pathname of the beanutils JAR file -->
>  -  <property name="commons-beanutils.jar" value="${commons-beanutils.home}/commons-beanutils.jar"/>
>  -
>  -  <!-- The pathname of the collections classes JAR file -->
>  -  <property name="commons-collections.jar" value="${commons-collections.home}/commons-collections.jar"/>
>  -
>  -  <!-- The pathname of the digester JAR file -->
>  -  <property name="commons-digester.jar" value="${commons-digester.home}/commons-digester.jar" />
>  -
>  -  <!-- The pathname of the discovery JAR file -->
>  -  <property name="commons-discovery.jar" value="${commons-discovery.home}/commons-discovery.jar" />
>  -
>  -  <!-- The pathname of the logging JAR file -->
>  -  <property name="commons-logging.jar" value="${commons-logging.home}/commons-logging.jar" />
>  -
>  -  <!-- The pathname of the "junit.jar" JAR file -->
>  -  <property name="junit.jar"           value="${junit.home}/junit.jar"/>
>  -
>  -  <!-- The pathname of the "servlet.jar" JAR file -->
>  -  <property name="servlet.jar"         value="${servlet.home}/servlet.jar"/>
>  -
>  -
>  -<!-- ========== Component Declarations ==================================== -->
>  -
>  -
>  -  <!-- The name of this component -->
>  -  <property name="component.name"          value="resources"/>
>  -
>  -  <!-- The primary package name of this component -->
>  -  <property name="component.package"       value="org.apache.commons.resources"/>
>  -
>  -  <!-- The title of this component -->
>  -  <property name="component.title"         value="Application Resources Facilities"/>
>  -
>  -  <!-- The current version number of this component -->
>  -  <property name="component.version"       value="0.1-dev"/>
>  -
>  -  <!-- The base directory for compilation targets -->
>  -  <property name="build.home"              value="${basedir}/target"/>
>  -
>  -  <!-- The base directory for component configuration files -->
>  -  <property name="conf.home"               value="src/conf"/>
>  -
>  -  <!-- The base directory for distribution targets -->
>  -  <property name="dist.home"               value="dist"/>
>  -
>  -  <!-- The base directory for component sources -->
>  -  <property name="source.home"             value="src/java"/>
>  -
>  -  <!-- The base directory for unit test sources -->
>  -  <property name="test.home"               value="src/test"/>
>  -
>  -  <!-- The base directory for the webapps -->
>  -  <property name="webapp.home"             value="src/web"/>
>  -
>  -  <!-- The base directory for the documentation -->
>  -  <property name="doc.home"                value="src/doc"/>
>  -
>  -
>  -<!-- ========== Compiler Defaults ========================================= -->
>  -
>  -
>  -  <!-- Should Java compilations set the 'debug' compiler option? -->
>  -  <property name="compile.debug"           value="true"/>
>  -
>  -  <!-- Should Java compilations set the 'deprecation' compiler option? -->
>  -  <property name="compile.deprecation"     value="true"/>
>  -
>  -  <!-- Should Java compilations set the 'optimize' compiler option? -->
>  -  <property name="compile.optimize"        value="true"/>
>  -
>  -
>  -  <!-- Construct compile classpath -->
>  -  <path id="compile.classpath">
>  -    <pathelement location="${build.home}/classes"/>
>  -    <pathelement location="${commons-beanutils.jar}"/>
>  -    <pathelement location="${commons-collections.jar}"/>
>  -    <pathelement location="${commons-digester.jar}"/>
>  -    <pathelement location="${commons-discovery.jar}"/>
>  -    <pathelement location="${commons-logging.jar}"/>
>  -    <pathelement location="${servlet.jar}"/>
>  -  </path>
>  -
>  -
>  -<!-- ========== Test Execution Defaults =================================== -->
>  -
>  -
>  -  <!-- Construct unit test classpath -->
>  -  <path id="test.classpath">
>  -    <pathelement location="${build.home}/classes"/>
>  -    <pathelement location="${build.home}/tests"/>
>  -    <pathelement location="${commons-beanutils.jar}"/>
>  -    <pathelement location="${commons-collections.jar}"/>
>  -    <pathelement location="${commons-digester.jar}"/>
>  -    <pathelement location="${commons-discovery.jar}"/>
>  -    <pathelement location="${commons-logging.jar}"/>
>  -    <pathelement location="${junit.jar}"/>
>  -    <pathelement location="${servlet.jar}"/>
>  -  </path>
>  -
>  -
>  -  <!-- Should all tests fail if one does? -->
>  -  <property name="test.failonerror"        value="true"/>
>  -
>  -  <!-- The test runner to execute -->
>  -  <property name="test.runner"             value="junit.textui.TestRunner"/>
>  -
>  -  <!-- The Commons Logger LogFactory implementation to use -->
>  -  <property name="test.factory"
>  -           value="org.apache.commons.logging.impl.LogFactoryImpl"/>
>  -
>  -  <!-- The Commons Logger Log implementation to use (standard factory) -->
>  -  <property name="test.log"
>  -           value="org.apache.commons.logging.impl.SimpleLog"/>
>  -
>  -  <!-- The Commons Logger SimpleLog level for testing -->
>  -  <property name="test.level"               value="error"/>
>  -
>  -
>  -<!-- ========== Executable Targets ======================================== -->
>  -
>  -
>  -  <target name="init"
>  -   description="Initialize and evaluate conditionals">
>  -    <echo message="-------- ${component.name} ${component.version} --------"/>
>  -    <filter  token="name"                  value="${component.name}"/>
>  -    <filter  token="package"               value="${component.package}"/>
>  -    <filter  token="version"               value="${component.version}"/>
>  -  </target>
>  -
>  -
>  -  <target name="prepare" depends="init"
>  -   description="Prepare build directory">
>  -    <mkdir dir="${build.home}"/>
>  -    <mkdir dir="${build.home}/classes"/>
>  -    <mkdir dir="${build.home}/conf"/>
>  -    <mkdir dir="${build.home}/tests"/>
>  -    <mkdir dir="${build.home}/webapps"/>
>  -  </target>
>  -
>  -
>  -  <target name="static" depends="prepare"
>  -   description="Copy static files to build directory">
>  -    <tstamp/>
>  -    <copy  todir="${build.home}/conf" filtering="on">
>  -      <fileset dir="${conf.home}" includes="*.MF"/>
>  -    </copy>
>  -  </target>
>  -
>  -
>  -  <target name="compile" depends="static"
>  -   description="Compile shareable components">
>  -    <javac  srcdir="${source.home}"
>  -           destdir="${build.home}/classes"
>  -             debug="${compile.debug}"
>  -       deprecation="${compile.deprecation}"
>  -          optimize="${compile.optimize}">
>  -      <classpath refid="compile.classpath"/>
>  +<project default="jar" name="commons-resources" basedir=".">
>  +  <property name="defaulttargetdir" value="target">
>  +  </property>
>  +  <property name="libdir" value="target/lib">
>  +  </property>
>  +  <property name="classesdir" value="target/classes">
>  +  </property>
>  +  <property name="testclassesdir" value="target/test-classes">
>  +  </property>
>  +  <property name="testreportdir" value="target/test-reports">
>  +  </property>
>  +  <property name="distdir" value="dist">
>  +  </property>
>  +  <property name="javadocdir" value="dist/docs/api">
>  +  </property>
>  +  <property name="final.name" value="commons-resources-1.0-dev">
>  +  </property>
>  +  <target name="init" description="o Initializes some properties">
>  +    <mkdir dir="${libdir}">
>  +    </mkdir>
>  +    <condition property="noget">
>  +      <equals arg2="only" arg1="${build.sysclasspath}">
>  +      </equals>
>  +    </condition>
>  +  </target>
>  +  <target name="compile" description="o Compile the code" depends="get-deps">
>  +    <mkdir dir="${classesdir}">
>  +    </mkdir>
>  +    <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
>  +      <src>
>  +        <pathelement location="src/java">
>  +        </pathelement>
>  +      </src>
>  +      <classpath>
>  +        <fileset dir="${libdir}">
>  +          <include name="*.jar">
>  +          </include>
>  +        </fileset>
>  +      </classpath>
>       </javac>
>  -    <copy    todir="${build.home}/classes" filtering="on">
>  -      <fileset dir="${source.home}" excludes="**/*.java"/>
>  +    <copy todir="${testclassesdir}">
>  +      <fileset dir="src/test">
>  +        <include name="**/*.properties">
>  +        </include>
>  +        <include name="**/*.xml">
>  +        </include>
>  +      </fileset>
>       </copy>
>     </target>
>  -
>  -
>  -
>  -  <target name="compile.tests" depends="compile"
>  -   description="Compile unit test cases">
>  -    <javac  srcdir="${test.home}"
>  -           destdir="${build.home}/tests"
>  -             debug="${compile.debug}"
>  -       deprecation="${compile.deprecation}"
>  -          optimize="${compile.optimize}">
>  -      <classpath refid="test.classpath"/>
>  -    </javac>
>  -    <copy    todir="${build.home}/tests" filtering="on">
>  -      <fileset dir="${test.home}" excludes="**/*.java"/>
>  +  <target name="jar" description="o Create the jar" depends="compile,test">
>  +    <jar jarfile="target/${final.name}.jar" excludes="**/package.html" basedir="${classesdir}">
>  +    </jar>
>  +  </target>
>  +  <target name="clean" description="o Clean up the generated directories">
>  +    <delete dir="${defaulttargetdir}">
>  +    </delete>
>  +    <delete dir="${distdir}">
>  +    </delete>
>  +  </target>
>  +  <target name="dist" description="o Create a distribution" depends="jar, javadoc">
>  +    <mkdir dir="dist">
>  +    </mkdir>
>  +    <copy todir="dist">
>  +      <fileset dir="${defaulttargetdir}" includes="*.jar">
>  +      </fileset>
>  +      <fileset dir="${basedir}" includes="LICENSE*, README*">
>  +      </fileset>
>       </copy>
>     </target>
>  -
>  -
>  -  <target name="clean"
>  -   description="Clean build and distribution directories">
>  -    <delete    dir="${build.home}"/>
>  -    <delete    dir="${dist.home}"/>
>  +  <target name="test" description="o Run the test cases" if="test.failure" depends="internal-test">
>  +    <fail message="There were test failures.">
>  +    </fail>
>  +  </target>
>  +  <target name="internal-test" depends="compile-tests">
>  +    <mkdir dir="${testreportdir}">
>  +    </mkdir>
>  +    <junit dir="./" failureproperty="test.failure" printSummary="yes" fork="true" haltonerror="true">
>  +      <sysproperty key="basedir" value=".">
>  +      </sysproperty>
>  +      <formatter type="xml">
>  +      </formatter>
>  +      <formatter usefile="false" type="plain">
>  +      </formatter>
>  +      <classpath>
>  +        <fileset dir="${libdir}">
>  +          <include name="*.jar">
>  +          </include>
>  +        </fileset>
>  +        <pathelement path="${testclassesdir}">
>  +        </pathelement>
>  +        <pathelement path="${classesdir}">
>  +        </pathelement>
>  +      </classpath>
>  +      <batchtest todir="${testreportdir}">
>  +        <fileset dir="src/test">
>  +          <include name="**/*TestCase.java">
>  +          </include>
>  +        </fileset>
>  +      </batchtest>
>  +    </junit>
>     </target>
>  -
>  -
>  -  <target name="all" depends="clean,compile"
>  -   description="Clean and compile all components"/>
>  -
>  -
>  -  <target name="javadoc" depends="compile"
>  -   description="Create component Javadoc documentation">
>  -    <mkdir      dir="${dist.home}"/>
>  -    <mkdir      dir="${dist.home}/docs"/>
>  -    <mkdir      dir="${dist.home}/docs/api"/>
>  -    <javadoc sourcepath="${source.home}"
>  -                destdir="${dist.home}/docs/api"
>  -           packagenames="org.apache.commons.*"
>  -                 author="true"
>  -               overview="src/java/overview.html"
>  -                private="true"
>  -                version="true"
>  -               doctitle="&lt;h1&gt;${component.title}&lt;/h1&gt;"
>  -            windowtitle="${component.title} (Version ${component.version})"
>  -                 bottom="Copyright (c) 2002-2003 - Apache Software Foundation">
>  -      <classpath  refid="compile.classpath"/>
>  -    </javadoc>
>  +  <target name="compile-tests" depends="compile">
>  +    <mkdir dir="${testclassesdir}">
>  +    </mkdir>
>  +    <javac destdir="${testclassesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
>  +      <src>
>  +        <pathelement location="src/test">
>  +        </pathelement>
>  +      </src>
>  +      <classpath>
>  +        <fileset dir="${libdir}">
>  +          <include name="*.jar">
>  +          </include>
>  +        </fileset>
>  +        <pathelement path="${classesdir}">
>  +        </pathelement>
>  +      </classpath>
>  +    </javac>
>     </target>
>  -
>  -
>  -  <target name="dist" depends="javadoc"
>  -   description="Create binary distribution">
>  -    <mkdir      dir="${dist.home}"/>
>  -    <copy      file="../LICENSE"
>  -              todir="${dist.home}"/>
>  -    <jar    jarfile="${dist.home}/commons-${component.name}.jar"
>  -            basedir="${build.home}/classes"
>  -           manifest="${build.home}/conf/MANIFEST.MF"/>
>  +  <target name="javadoc" description="o Generate javadoc" depends="jar">
>  +    <mkdir dir="${javadocdir}">
>  +    </mkdir>
>  +    <tstamp>
>  +      <format pattern="2002-yyyy" property="year">
>  +      </format>
>  +    </tstamp>
>  +    <property name="copyright" value="Copyright &amp;copy;  Apache Software Foundation. All Rights Reserved.">
>  +    </property>
>  +    <property name="title" value="commons-resources 1.0-dev API">
>  +    </property>
>  +    <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/java" packagenames="org.apache.commons.resources.*">
>  +      <classpath>
>  +        <fileset dir="${libdir}">
>  +          <include name="*.jar">
>  +          </include>
>  +        </fileset>
>  +        <pathelement location="target/${final.name}.jar">
>  +        </pathelement>
>  +      </classpath>
>  +    </javadoc>
>     </target>
>  -
>  -
>  -<!-- ========== Unit Test Targets ========================================= -->
>  -
>  -
>  -  <target name="test" depends="compile.tests"
>  -   description="Unit Tests that require only JUnit">
>  -
>  -    <junit printsummary="yes" fork="yes"
>  -          haltonfailure="yes" haltonerror="yes">
>  -
>  -      <sysproperty key="org.apache.commons.logging.LogFactory"
>  -                 value="${test.factory}"/>
>  -      <sysproperty key="org.apache.commons.logging.Log"
>  -                 value="${test.log}"/>
>  -      <sysproperty key="org.apache.commons.logging.simplelog.defaultlog"
>  -                 value="${test.level}"/>
>  -      <classpath refid="test.classpath"/>
>  -      <formatter type="plain" usefile="false"/>
>  -
>  -      <batchtest>
>  -        <fileset dir="${build.home}/tests"
>  -            includes="org/apache/commons/resources/*TestCase.class"/>
>  -        <fileset dir="${build.home}/tests"
>  -            includes="org/apache/commons/resources/impl/*TestCase.class"/>
>  -      </batchtest>
>  -
>  -    </junit>
>  -
>  +  <target name="get-deps" unless="noget" depends="init">
>  +    <get dest="${libdir}/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/xml-apis/jars/xml-apis-2.0.2.jar">
>  +    </get>
>  +    <get dest="${libdir}/commons-beanutils-1.5.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-1.5.jar">
>  +    </get>
>  +    <get dest="${libdir}/commons-collections-2.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-collections/jars/commons-collections-2.1.jar">
>  +    </get>
>  +    <get dest="${libdir}/commons-digester-1.3.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-digester/jars/commons-digester-1.3.jar">
>  +    </get>
>  +    <get dest="${libdir}/commons-discovery-0.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-discovery/jars/commons-discovery-0.1.jar">
>  +    </get>
>  +    <get dest="${libdir}/commons-logging-1.0.2.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.2.jar">
>  +    </get>
>  +    <get dest="${libdir}/servletapi-2.3.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/servletapi/jars/servletapi-2.3.jar">
>  +    </get>
>  +    <get dest="${libdir}/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar">
>  +    </get>
>  +    <get dest="${libdir}/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar">
>  +    </get>
>  +    <get dest="${libdir}/ant-1.5.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/ant/jars/ant-1.5.jar">
>  +    </get>
>  +    <get dest="${libdir}/ant-optional-1.5.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/ant/jars/ant-optional-1.5.jar">
>  +    </get>
>  +  </target>
>  +  <target name="install-maven">
>  +    <get dest="${user.home}/maven-install-latest.jar" usetimestamp="true" src="${repo}/maven/maven-install-latest.jar">
>  +    </get>
>  +    <unjar dest="${maven.home}" src="${user.home}/maven-install-latest.jar">
>  +    </unjar>
>     </target>
>  -
>  -</project>
>  +</project>
>  \ No newline at end of file
>  
>  
>  
>  1.1                  jakarta-commons-sandbox/resources/build-legacy.xml
>  
>  Index: build-legacy.xml
>  ===================================================================
>  <project name="Resource Facilities" default="compile" basedir=".">
>  
>  
>  <!--
>          "Resource Facilities" component of the Jakarta Commons Subproject
>          $Id: build-legacy.xml,v 1.1 2003/09/08 18:20:52 rdonkin Exp $
>          
>          
>           all             Clean and compile all components
>           clean           Clean build and distribution directories
>           compile         Compile shareable components
>           compile.tests   Compile unit test cases
>           dist            Create binary distribution
>           init            Initialize and evaluate conditionals
>           javadoc         Create component Javadoc documentation
>           prepare         Prepare build directory
>           static          Copy static files to build directory
>           test            Run all unit test cases
>          
>           Default target: compile
>  
>  -->
>  
>  
>  <!-- ========== Initialize Properties ===================================== -->
>  
>  
>    <property file="build.properties"/>                <!-- Component local   -->
>    <property file="../build.properties"/>             <!-- Commons local     -->
>    <property file="${user.home}/build.properties"/>   <!-- User local        -->
>  
>  
>  <!-- ========== External Dependencies ===================================== -->
>  
>    <!-- The home directory for the BeanUtils package -->
>    <property name="commons-beanutils.home" value="../beanutils/dist" />
>  
>    <!-- The home directory for the Commons collection classes distribution -->
>    <property name="commons-collections.home" value="../collections/dist"/>
>  
>    <!-- The home directory for the Digester package -->
>    <property name="commons-digester.home" value="../digester/dist" />
>  
>    <!-- The home directory for the Discovery package -->
>    <property name="commons-discovery.home" value="../discovery/dist" />
>  
>    <!-- The home directory for the Logging package -->
>    <property name="commons-logging.home" value="../logging/dist" />
>  
>    <!-- The directory containing your binary distribution of JUnit,
>         version 3.7 or later -->
>    <property name="junit.home"              value="/usr/local/junit3.7" />
>  
>    <!-- The home directory for the servlet.jar file -->
>    <property name="servlet.home" value="/usr/local/jakarta-tomcat/common/lib"/>
>  
>  
>  <!-- ========== Derived Values ============================================ -->
>  
>  
>    <!-- The pathname of the beanutils JAR file -->
>    <property name="commons-beanutils.jar" value="${commons-beanutils.home}/commons-beanutils.jar"/>
>  
>    <!-- The pathname of the collections classes JAR file -->
>    <property name="commons-collections.jar" value="${commons-collections.home}/commons-collections.jar"/>
>  
>    <!-- The pathname of the digester JAR file -->
>    <property name="commons-digester.jar" value="${commons-digester.home}/commons-digester.jar" />
>  
>    <!-- The pathname of the discovery JAR file -->
>    <property name="commons-discovery.jar" value="${commons-discovery.home}/commons-discovery.jar" />
>  
>    <!-- The pathname of the logging JAR file -->
>    <property name="commons-logging.jar" value="${commons-logging.home}/commons-logging.jar" />
>  
>    <!-- The pathname of the "junit.jar" JAR file -->
>    <property name="junit.jar"           value="${junit.home}/junit.jar"/>
>  
>    <!-- The pathname of the "servlet.jar" JAR file -->
>    <property name="servlet.jar"         value="${servlet.home}/servlet.jar"/>
>  
>  
>  <!-- ========== Component Declarations ==================================== -->
>  
>  
>    <!-- The name of this component -->
>    <property name="component.name"          value="resources"/>
>  
>    <!-- The primary package name of this component -->
>    <property name="component.package"       value="org.apache.commons.resources"/>
>  
>    <!-- The title of this component -->
>    <property name="component.title"         value="Application Resources Facilities"/>
>  
>    <!-- The current version number of this component -->
>    <property name="component.version"       value="0.1-dev"/>
>  
>    <!-- The base directory for compilation targets -->
>    <property name="build.home"              value="${basedir}/target"/>
>  
>    <!-- The base directory for component configuration files -->
>    <property name="conf.home"               value="src/conf"/>
>  
>    <!-- The base directory for distribution targets -->
>    <property name="dist.home"               value="dist"/>
>  
>    <!-- The base directory for component sources -->
>    <property name="source.home"             value="src/java"/>
>  
>    <!-- The base directory for unit test sources -->
>    <property name="test.home"               value="src/test"/>
>  
>    <!-- The base directory for the webapps -->
>    <property name="webapp.home"             value="src/web"/>
>  
>    <!-- The base directory for the documentation -->
>    <property name="doc.home"                value="src/doc"/>
>  
>  
>  <!-- ========== Compiler Defaults ========================================= -->
>  
>  
>    <!-- Should Java compilations set the 'debug' compiler option? -->
>    <property name="compile.debug"           value="true"/>
>  
>    <!-- Should Java compilations set the 'deprecation' compiler option? -->
>    <property name="compile.deprecation"     value="true"/>
>  
>    <!-- Should Java compilations set the 'optimize' compiler option? -->
>    <property name="compile.optimize"        value="true"/>
>  
>  
>    <!-- Construct compile classpath -->
>    <path id="compile.classpath">
>      <pathelement location="${build.home}/classes"/>
>      <pathelement location="${commons-beanutils.jar}"/>
>      <pathelement location="${commons-collections.jar}"/>
>      <pathelement location="${commons-digester.jar}"/>
>      <pathelement location="${commons-discovery.jar}"/>
>      <pathelement location="${commons-logging.jar}"/>
>      <pathelement location="${servlet.jar}"/>
>    </path>
>  
>  
>  <!-- ========== Test Execution Defaults =================================== -->
>  
>  
>    <!-- Construct unit test classpath -->
>    <path id="test.classpath">
>      <pathelement location="${build.home}/classes"/>
>      <pathelement location="${build.home}/tests"/>
>      <pathelement location="${commons-beanutils.jar}"/>
>      <pathelement location="${commons-collections.jar}"/>
>      <pathelement location="${commons-digester.jar}"/>
>      <pathelement location="${commons-discovery.jar}"/>
>      <pathelement location="${commons-logging.jar}"/>
>      <pathelement location="${junit.jar}"/>
>      <pathelement location="${servlet.jar}"/>
>    </path>
>  
>  
>    <!-- Should all tests fail if one does? -->
>    <property name="test.failonerror"        value="true"/>
>  
>    <!-- The test runner to execute -->
>    <property name="test.runner"             value="junit.textui.TestRunner"/>
>  
>    <!-- The Commons Logger LogFactory implementation to use -->
>    <property name="test.factory"
>             value="org.apache.commons.logging.impl.LogFactoryImpl"/>
>  
>    <!-- The Commons Logger Log implementation to use (standard factory) -->
>    <property name="test.log"
>             value="org.apache.commons.logging.impl.SimpleLog"/>
>  
>    <!-- The Commons Logger SimpleLog level for testing -->
>    <property name="test.level"               value="error"/>
>  
>  
>  <!-- ========== Executable Targets ======================================== -->
>  
>  
>    <target name="init"
>     description="Initialize and evaluate conditionals">
>      <echo message="-------- ${component.name} ${component.version} --------"/>
>      <filter  token="name"                  value="${component.name}"/>
>      <filter  token="package"               value="${component.package}"/>
>      <filter  token="version"               value="${component.version}"/>
>    </target>
>  
>  
>    <target name="prepare" depends="init"
>     description="Prepare build directory">
>      <mkdir dir="${build.home}"/>
>      <mkdir dir="${build.home}/classes"/>
>      <mkdir dir="${build.home}/conf"/>
>      <mkdir dir="${build.home}/tests"/>
>      <mkdir dir="${build.home}/webapps"/>
>    </target>
>  
>  
>    <target name="static" depends="prepare"
>     description="Copy static files to build directory">
>      <tstamp/>
>      <copy  todir="${build.home}/conf" filtering="on">
>        <fileset dir="${conf.home}" includes="*.MF"/>
>      </copy>
>    </target>
>  
>  
>    <target name="compile" depends="static"
>     description="Compile shareable components">
>      <javac  srcdir="${source.home}"
>             destdir="${build.home}/classes"
>               debug="${compile.debug}"
>         deprecation="${compile.deprecation}"
>            optimize="${compile.optimize}">
>        <classpath refid="compile.classpath"/>
>      </javac>
>      <copy    todir="${build.home}/classes" filtering="on">
>        <fileset dir="${source.home}" excludes="**/*.java"/>
>      </copy>
>    </target>
>  
>  
>  
>    <target name="compile.tests" depends="compile"
>     description="Compile unit test cases">
>      <javac  srcdir="${test.home}"
>             destdir="${build.home}/tests"
>               debug="${compile.debug}"
>         deprecation="${compile.deprecation}"
>            optimize="${compile.optimize}">
>        <classpath refid="test.classpath"/>
>      </javac>
>      <copy    todir="${build.home}/tests" filtering="on">
>        <fileset dir="${test.home}" excludes="**/*.java"/>
>      </copy>
>    </target>
>  
>  
>    <target name="clean"
>     description="Clean build and distribution directories">
>      <delete    dir="${build.home}"/>
>      <delete    dir="${dist.home}"/>
>    </target>
>  
>  
>    <target name="all" depends="clean,compile"
>     description="Clean and compile all components"/>
>  
>  
>    <target name="javadoc" depends="compile"
>     description="Create component Javadoc documentation">
>      <mkdir      dir="${dist.home}"/>
>      <mkdir      dir="${dist.home}/docs"/>
>      <mkdir      dir="${dist.home}/docs/api"/>
>      <javadoc sourcepath="${source.home}"
>                  destdir="${dist.home}/docs/api"
>             packagenames="org.apache.commons.*"
>                   author="true"
>                 overview="src/java/overview.html"
>                  private="true"
>                  version="true"
>                 doctitle="&lt;h1&gt;${component.title}&lt;/h1&gt;"
>              windowtitle="${component.title} (Version ${component.version})"
>                   bottom="Copyright (c) 2002-2003 - Apache Software Foundation">
>        <classpath  refid="compile.classpath"/>
>      </javadoc>
>    </target>
>  
>  
>    <target name="dist" depends="javadoc"
>     description="Create binary distribution">
>      <mkdir      dir="${dist.home}"/>
>      <copy      file="../LICENSE"
>                todir="${dist.home}"/>
>      <jar    jarfile="${dist.home}/commons-${component.name}.jar"
>              basedir="${build.home}/classes"
>             manifest="${build.home}/conf/MANIFEST.MF"/>
>    </target>
>  
>  
>  <!-- ========== Unit Test Targets ========================================= -->
>  
>  
>    <target name="test" depends="compile.tests"
>     description="Unit Tests that require only JUnit">
>  
>      <junit printsummary="yes" fork="yes"
>            haltonfailure="yes" haltonerror="yes">
>  
>        <sysproperty key="org.apache.commons.logging.LogFactory"
>                   value="${test.factory}"/>
>        <sysproperty key="org.apache.commons.logging.Log"
>                   value="${test.log}"/>
>        <sysproperty key="org.apache.commons.logging.simplelog.defaultlog"
>                   value="${test.level}"/>
>        <classpath refid="test.classpath"/>
>        <formatter type="plain" usefile="false"/>
>  
>        <batchtest>
>          <fileset dir="${build.home}/tests"
>              includes="org/apache/commons/resources/*TestCase.class"/>
>          <fileset dir="${build.home}/tests"
>              includes="org/apache/commons/resources/impl/*TestCase.class"/>
>        </batchtest>
>  
>      </junit>
>  
>    </target>
>  
>  </project>
>  
>  
>  
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>
>
>  
>