User: vincent 
  Date: 00/08/24 22:58:30

  Modified:    build    build.sh build.xml
  Log:
  Getting more in line with JBoss everyday...
  
  Revision  Changes    Path
  1.6       +1 -30     spyderMQ/build/build.sh
  
  Index: build.sh
  ===================================================================
  RCS file: /products/cvs/ejboss/spyderMQ/build/build.sh,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- build.sh  2000/08/25 05:16:44     1.5
  +++ build.sh  2000/08/25 05:58:29     1.6
  @@ -1,21 +1,5 @@
   #!/bin/sh
   
  -# Choose your JDK
  -#
  -
  -# If your java binary is not in the path, edit this to point to the actual
  -# location
  -
  -JAVA=java
  -TARGET=${1}
  -
  -#-------------------------------------------------------------------
  -# Define the paths to each of the packages
  -#-------------------------------------------------------------------
  -
  -# change dir to ".." because Ant has some problems when basedir!="."
  -#cd ..
  -
   # set the LIB variable to the lib in the CVS tree
   # these are the libraries needed by the application
   
  @@ -25,19 +9,6 @@
   
   BF=.
   
  -#--------------------------------------------
  -# No need to edit anything past here
  -#--------------------------------------------
  -if test -z "${TARGET}" ; then
  -TARGET=dist
  -fi
  -
  -echo Now building ${TARGET} for JDK${JDK}...
   CP=${BF}/xml.jar:${BF}/ant.jar:${BF}/javac.jar:${LIB}/jms.jar:${LIB}/jnp.jar
  -
  -BUILDFILE=${BF}/build.xml
  -
  -# antRun must be executable
  -chmod +x ${BF}/bin/antRun
   
  -${JAVA} -classpath ${CP} -Dfinal.dir=${SPYDERMQ_HOME} 
-Dproject.home=${PROJECT_HOME} -Dant.home=${BF} -Dbuild.files=${BF} 
org.apache.tools.ant.Main -buildfile ${BUILDFILE} ${TARGET}
  +java -classpath $CP org.apache.tools.ant.Main $*
  
  
  
  1.16      +13 -12    spyderMQ/build/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /products/cvs/ejboss/spyderMQ/build/build.xml,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- build.xml 2000/08/25 05:16:44     1.15
  +++ build.xml 2000/08/25 05:58:30     1.16
  @@ -5,6 +5,7 @@
                <property name="project"        value="spydermq"/>
                <property name="version"        value="0.5"/>
                <property name="final.name"     value="${project}-${version}"/>
  +                <property name="dist.dir"      value="${basedir}/dist"/>
                
                <!-- COMPILATION PARAMETERS -->
                <property name="build.compiler" value="classic"/>  
  @@ -19,18 +20,18 @@
                <property name="docs.dir"               value="${basedir}/docs"/>
                <property name="examples.dir"           value="${basedir}/examples"/>
                
  -             <property name="build.src"              value="${final.dir}/src"/>
  +             <property name="build.src"              value="${dist.dir}/src"/>
                <property name="build.dest"             value="${basedir}/classes"/>
  -             <property name="build.lib"              value="${final.dir}/lib"/>
  -             <property name="build.docs"             value="${final.dir}/docs"/>
  -             <property name="build.conf"             value="${final.dir}/conf"/>
  -             <property name="build.bin"              value="${final.dir}/bin"/>
  -             <property name="build.examples"         value="${final.dir}/examples"/>
  +             <property name="build.lib"              value="${dist.dir}/lib"/>
  +             <property name="build.docs"             value="${dist.dir}/docs"/>
  +             <property name="build.conf"             value="${dist.dir}/conf"/>
  +             <property name="build.bin"              value="${dist.dir}/bin"/>
  +             <property name="build.examples"         value="${dist.dir}/examples"/>
        </target>
     
        <target name="prepare" depends="init">
                <!-- MAKE THE DIRECTORIES IF NEEDED -->
  -             <mkdir dir="${final.dir}"/>
  +             <mkdir dir="${dist.dir}"/>
                <mkdir dir="${build.src}"/>
                <mkdir dir="${build.dest}"/>            
                <mkdir dir="${build.lib}"/>
  @@ -60,9 +61,9 @@
                <copyfile  src="${conf.dir}/spyderMQ.plugin" 
dest="${build.conf}/spyderMQ.plugin"/>
   
                <!-- MISC FILES -->
  -             <copyfile src="AUTHORS"   dest="${final.dir}/AUTHORS"/>
  -             <copyfile src="COPYING"   dest="${final.dir}/COPYING"/>
  -             <copyfile src="README"    dest="${final.dir}/README"/>
  +             <copyfile src="AUTHORS"   dest="${dist.dir}/AUTHORS"/>
  +             <copyfile src="COPYING"   dest="${dist.dir}/COPYING"/>
  +             <copyfile src="README"    dest="${dist.dir}/README"/>
                
        </target>
   
  @@ -84,11 +85,11 @@
        </target>
        
        <target name="dist" depends="init,core">
  -             <jar jarfile="${final.dir}/lib/spydermq.jar" basedir="${build.dest}" 
includes="org/**"/>
  +             <jar jarfile="${dist.dir}/lib/spydermq.jar" basedir="${build.dest}" 
includes="org/**"/>
        </target>       
        
        <target name="clean" depends="init">
  -             <deltree dir="${final.dir}"/>
  +             <deltree dir="${dist.dir}"/>
                <deltree dir="${build.dest}"/>
        </target>
   
  
  
  

Reply via email to