commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From froehl...@apache.org
Subject cvs commit: jakarta-commons-sandbox/simplestore build.properties.sample README.txt build.xml
Date Tue, 22 Jan 2002 22:24:16 GMT
froehlich    02/01/22 14:24:16

  Modified:    simplestore README.txt build.xml
  Added:       simplestore build.properties.sample
  Log:
  added build.properties.sample file to customize the path-to-lib externaly
  
  Revision  Changes    Path
  1.6       +35 -3     jakarta-commons-sandbox/simplestore/README.txt
  
  Index: README.txt
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/simplestore/README.txt,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- README.txt	15 Jan 2002 20:02:16 -0000	1.5
  +++ README.txt	22 Jan 2002 22:24:16 -0000	1.6
  @@ -2,7 +2,39 @@
     JAKARTA  COMMONS  -  SIMPLESTORE
   --------------------------------------------------------------------------
   
  -Building:
  +To compile this component, you'll need the
  +excellent Ant utility, which can be obtained from:
   
  -To build, you must have ant installed.  Just type 'ant' -- the default
  -target will compile the classes (no jars at present).
  \ No newline at end of file
  +   http://jakarta.apache.org/ant/
  +   
  +For the jips based Store persistence you need the jisp
  +libary from:
  +
  +  http://www.coyotegulch.com/jisp/index.html
  +
  +For compiling rename the build.properties.sample file into
  +build.properties, and modify to reflect the location of the
  +jisp.jar on your computer.
  +  
  +For testing the project, you will also need JUnit :
  +
  +  http://www.junit.org/
  +
  +Modify build.properties to reflect the location of the junit.jar on 
  +your computer.
  +
  +---
  +
  +Once you have Ant propertly installed, and the
  +build.properties file correctly reflects the location
  +of your junit.jar, you are ready to build and test.
  +
  +To compile and test the component:
  +
  +$ ant test
  +
  +To build the distribution + javadoc:
  +
  +$ ant dist
  +
  +---
  
  
  
  1.8       +56 -130   jakarta-commons-sandbox/simplestore/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/simplestore/build.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- build.xml	21 Jan 2002 22:08:09 -0000	1.7
  +++ build.xml	22 Jan 2002 22:24:16 -0000	1.8
  @@ -1,128 +1,61 @@
   <project name="simplestore" default="compile" basedir=".">
   
  -
   <!--
           "simplestore" component of the Jakarta Commons Subproject
  -        $Id: build.xml,v 1.7 2002/01/21 22:08:09 froehlich Exp $
  +        $Id: build.xml,v 1.8 2002/01/22 22:24:16 froehlich Exp $
   -->
   
  +<!-- ========== Executable Targets ======================================== -->
   
  -<!-- ========== 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 Commons collection classes distribution -->
  -  <property name="commons-collections.home" value="../collections/dist"/>
  -
  -  <!-- The directory containing your binary distribution of JUnit,
  -       version 3.7 or later -->
  -  <property name="junit.home"              value="/usr/local/junit3.7"/>
  - 
  -
  -<!-- ========== Derived Values ============================================ -->
  -
  -
  -  <!-- The pathname of the collections classes JAR file -->
  -  <property name="commons-collections.jar" value="${commons-collections.home}/commons-collections.jar"/>
  -
  -  <!-- The pathname of the "junit.jar" JAR file -->
  -  <property name="junit.jar"               value="${junit.home}/junit.jar"/>
  -
  -
  -<!-- ========== Component Declarations ==================================== -->
  -
  -  <!-- The name of this component -->
  -  <property name="component.name"          value="simplestore"/>
  -
  -  <!-- The primary package name of this component -->
  -  <property name="component.package"       value="org.apache.commons.simplestore"/>
  -
  -  <!-- The title of this component -->
  -  <property name="component.title"         value="simplestore components"/>
  -
  -  <!-- The current version number of this component -->
  -  <property name="component.version"       value="1.0-dev"/>
  -
  -  <!-- The base directory for compilation targets -->
  -  <property name="build.home"              value="build"/>
  -
  -  <!-- 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"/>
  -  
  -  <property name="source.test"             value="src/test"/>
  -
  -  <!-- The base directory for unit test sources -->
  -  <property name="test.home"               value="src/test"/>
  -  
  -  <!-- The junit library -->
  -  <property name="junit.jar"                   value="lib/junit.jar"/>
  -  
  -  <property name="jisp.jar"                   value="lib/jisp.jar"/>
  -  
  -  <property name="cp" value=""/>
  -   
  -  <property name="classpath" value="${cp}:${junit.jar}:${jisp.jar}"/>
  -
  -
  -<!-- ========== 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-collections.jar}"/>
  -    <pathelement location="lib/jisp.jar"/>
  -  </path>
  -
  -<!-- ========== Test Execution Defaults =================================== -->
  -
  -
  -  <!-- Construct unit test classpath -->
  -  <path id="test.classpath">
  -    <pathelement location="${build.home}/classes"/>
  -    <pathelement location="${commons-collections.jar}"/>
  -    <pathelement location="${junit.jar}"/>
  -  </path>
  -
  -  <property name="test.entry" value="org.apache.commons.simplestore.TestAll"/>
  -  
  -  <!-- 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"/>
  -
  +  <target name="init" description="Initialize and evaluate conditionals">
   
  -<!-- ========== Executable Targets ======================================== -->
  +    <!-- read properties from the build.properties, if any -->
  +    <property name="component-propfile" value="${basedir}/build.properties"/>
  +    <property file="${component-propfile}"/>
  +
  +    <!-- read properties from the commons build.properties, if any -->
  +    <property name="commons-propfile" value="${basedir}/../build.properties"/>
  +    <property file="${commons-propfile}"/>
  +
  +    <!-- read properties from the ${user.home}/propfile, if any -->
  +    <property name="user-propfile" value="${user.home}/build.properties"/>
  +    <property file="${user-propfile}"/>
  +    
  +    <property file="../build.properties"/>             <!-- Commons local    
-->
  +    <property file="${user.home}/build.properties"/>   <!-- User local       
-->
  +    <property name="commons-collections.home" value="../collections/dist"/>
  +    <property name="commons-collections.jar" value="${commons-collections.home}/commons-collections.jar"/>
  +
  +    <property name="component.name"          value="simplestore"/>
  +    <property name="component.package"       value="org.apache.commons.simplestore"/>
  +    <property name="component.title"         value="simplestore components"/>
  +    <property name="component.version"       value="1.0-dev"/>
  +    <property name="build.home"              value="build"/>
  +    <property name="dist.home"               value="dist"/>
  +    <property name="source.home"             value="src/java"/>
  +    <property name="source.test"             value="src/test"/>
  +  
  +    <property name="compile.debug"           value="true"/>
  +    <property name="compile.deprecation"     value="true"/>
  +    <property name="compile.optimize"        value="true"/>
  +
  +    <path id="compile.classpath">
  +      <pathelement location="${build.home}/classes"/>
  +      <pathelement location="${commons-collections.jar}"/>
  +      <pathelement location="lib/jisp.jar"/>
  +    </path>
  +
  +    <!-- ========== Test Execution Defaults =================================== -->
  +    <property name="cp" value=""/>
  +    <property name="classpath" value="${cp}:${junit.jar}:${jisp.jar}"/>
  +
  +    <property name="test.entry" value="org.apache.commons.simplestore.TestAll"/>
  +    <property name="test.failonerror"        value="true"/>
  +    <property name="test.runner"             value="junit.textui.TestRunner"/>
   
  -  <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}"/>
  @@ -130,7 +63,6 @@
       <mkdir dir="${build.home}/conf"/>
     </target>
   
  -
     <target name="compile" depends="prepare" description="Compile shareable components">
       <javac  srcdir="${source.home}"
               destdir="${build.home}/classes"
  @@ -147,11 +79,9 @@
       <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}"/>
  @@ -168,39 +98,35 @@
                    bottom="Copyright (c) 2001 - Apache Software Foundation"/>
     </target>
   
  -
     <target name="dist" depends="compile,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="src/conf/MANIFEST.MF">
         <include name="org/apache/commons/simplestore/**"/>
       </jar>    
  -    
     </target>
     
     <target name="build-test" depends="init,compile">
  -      <mkdir dir="${dest.classes}"/>
  -       <javac srcdir="${source.test}"
  -              destdir="${build.home}/classes"
  -              debug="${compile.debug}"
  -              deprecation="${compile.deprecation}"
  -              optimize="${compile.optimize}"/>
  +    <javac srcdir="${source.test}"
  +           destdir="${build.home}/classes"
  +           debug="${compile.debug}"
  +           deprecation="${compile.deprecation}"
  +           optimize="${compile.optimize}"/>
     </target>
     
     <target name="test" depends="build-test" description="runs (junit) unit tests">
  -      <java classname="${test.runner}" fork="yes" failonerror="${test.failonerror}">
  -        <arg value="${test.entry}"/>
  +    <java classname="${test.runner}" fork="yes" failonerror="${test.failonerror}">
  +      <arg value="${test.entry}"/>
           <classpath>
             <pathelement path=" ${build.home}/classes" />
             <pathelement path="${classpath}" />
             <pathelement path="${java.class.path}" />
           </classpath>
  -      </java>
  -   </target>
  -  
  +    </java>
  +  </target>
   </project>
  
  
  
  1.1                  jakarta-commons-sandbox/simplestore/build.properties.sample
  
  Index: build.properties.sample
  ===================================================================
  # See the README.txt file for details
  
  # jisp.jar - jisp jar file. 
  # (http://www.coyotegulch.com/jisp/index.html)
  jisp.jar=lib/jisp.jar
  
  # junit.jar - JUnit 3.2+ Classpath
  # (http://junit.org/)
  junit.jar=lib/junit.jar
  
  
  

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


Mime
View raw message