jon         02/02/27 14:18:28

  Modified:    .        CHANGES.txt BUILD.txt build.xml
  Added:       .        default.properties
  Log:
  implemented what i proposed on the mailing list with regards
  to having a default.properties define the properties and
  allow people to define their own properties easily by creating
  a build.properties file.
  
  I also updated the documentation to clearly lay out what one needs
  to do to define their own properties.
  
  -jon
  
  Revision  Changes    Path
  1.7       +6 -3      jakarta-lucene/CHANGES.txt
  
  Index: CHANGES.txt
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/CHANGES.txt,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- CHANGES.txt       14 Feb 2002 21:17:17 -0000      1.6
  +++ CHANGES.txt       27 Feb 2002 22:18:28 -0000      1.7
  @@ -1,11 +1,14 @@
   Lucene Change Log
   
  -$Id: CHANGES.txt,v 1.6 2002/02/14 21:17:17 cutting Exp $
  +$Id: CHANGES.txt,v 1.7 2002/02/27 22:18:28 jon Exp $
   
   1.2 RC5
   
  - 1. ...
  -
  + 1. Renamed build.properties to default.properties and updated
  +    the BUILD.txt document to describe how to override the
  +    default.property settings without having to edit the file. This
  +    brings the build process closer to Scarab's build process.
  +    (jon)
   
   1.2 RC4
   
  
  
  
  1.3       +29 -12    jakarta-lucene/BUILD.txt
  
  Index: BUILD.txt
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/BUILD.txt,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BUILD.txt 26 Jan 2002 15:01:31 -0000      1.2
  +++ BUILD.txt 27 Feb 2002 22:18:28 -0000      1.3
  @@ -1,9 +1,10 @@
   Lucene Build Instructions
   
  -$Id: BUILD.txt,v 1.2 2002/01/26 15:01:31 acoliver Exp $
  +$Id: BUILD.txt,v 1.3 2002/02/27 22:18:28 jon Exp $
   
   Basic steps:
  -  0) Install JDK 1.3, Ant 1.4, and the Ant 1.4 optional.jar.
  +  0) Install JDK 1.2 (or greater), Ant 1.4 (or greater), and the Ant
  +     optional.jar.
     1) Download Lucene from Apache and unpack it.
     2) Connect to the top-level of your Lucene installation.
     3) Run ant.
  @@ -54,10 +55,25 @@
   
   Step 2) Connect to the top-level of your Lucene installation
   
  -Lucene's top-level directory contains the build.properties and
  -build.xml files.  You don't need to change any of the settings in
  -these files, but you do need to run ant from this location so it knows
  -where to find them.
  +Lucene's top-level directory contains the default.properties and
  +build.xml files. By default, you do not need to change any of the
  +settings in these files, but you do need to run ant from this location
  +so it knows where to find them.
  +
  +If you would like to change the settings in the default.properties there
  +is no need to edit the default.properties file, you can override the
  +property settings by creating one or more of the following files and
  +placing your own property settings in there:
  +
  +    ~/lucene.build.properties
  +    ~/build.properties
  +    jakarta-lucene/build.properties
  +
  +The first property which is found in the order with which the files are
  +loaded becomes the property setting which is used by the Ant build
  +system.
  +
  +NOTE: the ~ character represents your user account home directory.
   
   Step 3) Run ant.
   
  @@ -67,14 +83,15 @@
   "build.xml" file in your current directory, and compile Lucene.
   
   For further information on Lucene, go to:
  -  http://jakarta.apache.org/lucene
  -
  -Please join the Lucene-User mailing list by sending a message to:
  -  [EMAIL PROTECTED]
  +  http://jakarta.apache.org/lucene/
   
  +Please join the Lucene-User mailing list by visiting this site:
  +  http://jakarta.apache.org/site/mail.html
  +  
   Please post suggestions, questions, corrections or additions to this
  -document to the lucene-user mailing list.
  +document to the Lucene-User mailing list.
   
   This file was originally written by Steven J. Owens <[EMAIL PROTECTED]>.
  +This file was modified by Jon S. Stevens <[EMAIL PROTECTED]>.
   
  -Copyright (c) 2001 The Apache Software Foundation.  All rights reserved.
  +Copyright (c) 2001-2002 The Apache Software Foundation.  All rights reserved.
  
  
  
  1.22      +6 -63     jakarta-lucene/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/build.xml,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- build.xml 27 Feb 2002 01:10:58 -0000      1.21
  +++ build.xml 27 Feb 2002 22:18:28 -0000      1.22
  @@ -2,69 +2,12 @@
   
   <project name="Lucene" default="jar" basedir=".">
   
  -  <property file="${user.home}/build.properties"/>
  -  <property file="build.properties"/>
  -
  -  <property name="name" value="lucene"/>
  -  <property name="Name" value="Lucene"/>
  -  <property name="version" value="1.2-rc5-dev"/>
  -  <property name="year" value="2000-2002"/>
  -  <property name="final.name" value="${name}-${version}"/>
  -  <property name="debug" value="off"/>
  -
  -  <property name="project.name" value="site"/>
  -  <property name="docs.src" value="./xdocs"/>
  -  <property name="docs.dest" value="./docs"/>
  -
  -  <property name="src.dir" value="./src/java"/>
  -  <property name="demo.src" value="./src/demo"/>
  -  <property name="demo.jsp" value="./src/jsp"/>
  -  <property name="test.src" value="./src/test"/>
  -  <property name="anttask.src" value="./src/ant"/>
  -  <property name="docs.dir" value="./docs"/>
  -  <property name="lib.dir" value="./lib"/>
  -  <property name="dist.dir" value="${final.name}"/>
  -  <property name="dist-src.dir" value="${final.name}-src"/>
  -
  -  <!-- javadoc packages -->
  -  <property name="packages" value="org.apache.lucene.*"/>
  -
  -  <property name="javadoc.link" 
value="http://java.sun.com/products/jdk/1.3/docs/api/"/>
  -
  -  <property name="build.compiler.pedantic" value="false"/>
  -
  -  <property name="build.dir" value="./bin"/>
  -  <property name="build.classes" value="${build.dir}/classes"/>
  -  <property name="build.lib" value="${build.dir}/lib"/>
  -  <property name="build.javadocs" value="${build.dir}/docs/api"/>
  -  <property name="build.src" value="${build.dir}/src"/>
  -
  -  <property name="build.demo" value="${build.dir}/demo"/>
  -  <property name="build.demo.src" value="${build.demo}/src"/>
  -  <property name="build.demo.classes" value="${build.demo}/classes"/>
  -  <property name="build.demo.name" value="${name}-demos-${version}"/>
  -  <property name="build.demo.war.name" value="luceneweb"/>
  -
  -  <property name="build.anttask" value="${build.dir}/anttask"/>
  -  <property name="build.anttask.classes" value="${build.anttask}/classes"/>
  -
  -  <property name="build.docweb" value="${build.dir}/docweb"/>
  -  <property name="build.docweb.war.name" value="lucenedocweb"/>
  -
  -  <property name="build.test" value="${build.dir}/test"/>
  -  <property name="build.test.src" value="${build.test}/src"/>
  -  <property name="build.test.classes" value="${build.test}/classes"/>
  -
  -  <property name="junit.src" value="${basedir}/src/test"/>
  -  <property name="junit.classes" value="${build.dir}/unit-classes"/>
  -  <property name="junit.reports" value="${build.dir}/unit-reports"/>
  -
  -  <property name="javacc.home" value="."/>
  -  <property name="javacc.zip.dir" value="${javacc.home}/lib"/>
  -  <property name="javacc.zip" value="${javacc.zip.dir}/JavaCC.zip"/>
  -
  -  <property name="jakarta.site2.home" value="../jakarta-site2"/>
  -
  +    <!-- Give user a chance to override without editing this file
  +        (and without typing -D each time it compiles it -->
  +  <property file="${user.home}/lucene.build.properties" /> 
  +  <property file="${user.home}/build.properties" />
  +  <property file="${basedir}/build.properties" />
  +  <property file="${basedir}/default.properties" />
   
     <!-- Build classpath -->
     <path id="classpath">
  
  
  
  1.1                  jakarta-lucene/default.properties
  
  Index: default.properties
  ===================================================================
  # ---------------------------------------------------------
  # L U C E N E  B U I L D  P R O P E R T I E S
  # ---------------------------------------------------------
  name=lucene
  Name=Lucene
  version=1.2-rc5-dev
  year=2000-2001
  final.name=${name}-${version}
  debug=off
  
  project.name = site
  docs.src =  ./xdocs
  docs.dest = ./docs
  
  src.dir = ./src/java
  demo.src = ./src/demo
  demo.jsp = ./src/jsp
  test.src = ./src/test
  docs.dir = ./docs
  lib.dir = ./lib
  dist.dir=${final.name}
  dist-src.dir = ${final.name}-src
  
  # javadoc packages
  packages=org.apache.lucene.*
  
  # javadoc link
  javadoc.link=http://java.sun.com/products/jdk/1.3/docs/api/
  
  build.compiler.pedantic=false
  
  build.dir = ./bin
  build.classes = ${build.dir}/classes
  build.lib = ${build.dir}/lib
  build.javadocs = ${build.dir}/docs/api
  build.src = ${build.dir}/src
  
  build.demo = ${build.dir}/demo
  build.demo.src = ${build.demo}/src
  build.demo.classes = ${build.demo}/classes
  build.demo.name = ${name}-demos-${version}
  build.war.name = luceneweb
  
  build.anttask = ${build.dir}/anttask
  build.anttask.classes = ${build.anttask}/classes
  
  build.docweb = ${build.dir}/docweb
  build.docweb.war.name = lucenedocweb
  
  build.test = ${build.dir}/test
  build.test.src = ${build.test}/src
  build.test.classes = ${build.test}/classes
  
  junit.src = ${basedir}/src/test
  junit.classes = ${build.dir}/unit-classes
  junit.reports = ${build.dir}/unit-reports
  
  # Home directory of JavaCC
  javacc.home = .
  javacc.zip.dir = ${javacc.home}/lib
  javacc.zip = ${javacc.zip.dir}/JavaCC.zip
  
  # Home directory of jakarta-site2
  jakarta.site2.home = ../jakarta-site2
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to