Local Build Scripts Cleaned Up and Unified

Gerald Bauer <[email protected]> Mon, 15 Sep 2003 18:58:31 -0700 (PDT)
Newsgroups gmane.comp.java.luxor-xul.user
Message-ID <[email protected]>
Hi,

  Just to let you know I've cleaned up and unified all
local Ant build scripts. I went over the following
sourceforge projects/modules:

  * apollo
  * houston
  * caramel
  * cypress
  * salsa
  * salsa-richtext
  * rachel
  * luxilla 
  * rachel 

  Now if you want to build any of the above modules
all you need is two property files in your user home
directory in the .ant directory, that is,
lib.properties and local.properties

  lib.properties lists all the libraries and tracks
their version number in a single central file.

  local.properties lists all the directory paths used
in Ant build scripts and to configure them for your
machine you need to change three root dir properties,
that is, build.dir, lib.dir, and prod.dir

  That's it. If you have any questions let me know.

   - Gerald

PS: Here are the two property files using my machine's
settings:

lib.properties
==============================================================
# lib.properties
# note: lib.properties must follow build.properties
#   lib.dir property required


luxor.version=1.0-b9
salsa.version=1.0-b2
houston.version=1.0-b1
apollo.version=1.0-b1
caramel.version=1.0-b2
rachel.version=2.0-b2
cypress.version=1.0-b1

jdom.version=1.0-b8
jaxen.version=1.0
saxpath.version=1.0
velocity.version=1.3-rc1
collections.version=2.0
jython.version=2.1

logging.version=1.0-3
ant.version=1.5-3
jnlp.version=1.2
skinlf.version=1.2-4


j2h.version=1.2

# todo: should i use houston.jar.name or
houston.jarname?
luxor.name=luxor-${luxor.version}.jar
salsa.name=salsa-${salsa.version}.jar
houston.name=houston-${houston.version}.jar
apollo.name=apollo-${apollo.version}.jar
caramel.name=caramel-${caramel.version}.jar
rachel.name=rachel-${rachel.version}.jar
cypress.name=cypress-${cypress.version}.jar

jdom.name=jdom-${jdom.version}.jar
jaxen.name=jaxen-${jaxen.version}.jar
saxpath.name=saxpath-${saxpath.version}.jar
velocity.name=velocity-${velocity.version}.jar
collections.name=collections-${collections.version}.jar
jython.name=jython-${jython.version}.jar

logging.name=logging-${logging.version}.jar
ant.name=ant-${ant.version}.jar
jnlp.name=jnlp-${jnlp.version}.jar
skinlf.name=skinlf-${skinlf.version}.jar

j2h.name=j2h-${j2h.version}.jar


luxor.jar=${lib.dir}/${luxor.name}
salsa.jar=${lib.dir}/${salsa.name}
houston.jar=${lib.dir}/${houston.name}
apollo.jar=${lib.dir}/${apollo.name}
caramel.jar=${lib.dir}/${caramel.name}
rachel.jar=${lib.dir}/${rachel.name}
cypress.jar=${lib.dir}/${cypress.name}

jdom.jar=${lib.dir}/${jdom.name}
jaxen.jar=${lib.dir}/${jaxen.name}
saxpath.jar=${lib.dir}/${saxpath.name}
velocity.jar=${lib.dir}/${velocity.name}
collections.jar=${lib.dir}/${collections.name}
jython.jar=${lib.dir}/${jython.name}

logging.jar=${lib.dir}/${logging.name}
ant.jar=${lib.dir}/${ant.name}
jnlp.jar=${lib.dir}/${jnlp.name}
skinlf.jar=${lib.dir}/${skinlf.name}

j2h.jar=${lib.dir}/${j2h.name}
===============================================================

local.properties
==============================================================
# required properties that you need to pass in
#
# src.dir  -- root source path
# name     -- base name for project e.g. luxor
# version  -- version for project e.g. 1.0-b8


build.dir=c:/nightly/build

build.classes.dir=${build.dir}/${name}-${version}/classes
build.crossref.dir=${build.dir}/${name}-${version}/doc/crossref
build.javadoc.dir=${build.dir}/${name}-${version}/doc/api
build.bin.dir=${build.dir}/${name}-${version}/bin


lib.dir=c:/java/lib


prod.dir=c:/nightly/prod

prod.bin.dir=${prod.dir}/${name}-${version}/bin
prod.src.dir=${prod.dir}/${name}-${version}/src
prod.ico.dir=${prod.dir}/${name}-${version}/ico
prod.top.dir=${prod.dir}/${name}-${version}
prod.lib.dir=${prod.dir}/${name}-${version}/lib
==============================================================
   


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf