You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by js...@apache.org on 2001/10/30 09:55:47 UTC

cvs commit: jakarta-commons-sandbox/messenger build.xml

jstrachan    01/10/30 00:55:47

  Modified:    messenger build.xml
  Log:
  Tidied the build process so that the example web application will build fine without any customization of the build.properties which can then be deployed in the J2EE SDK. Otherwise the JMS implementation can be overridden in the build.proerties via the messenger.xml, jms.classes.dir and jms.lib.dir properties such that it can run against any JMS implementation(s)
  
  Revision  Changes    Path
  1.21      +19 -7     jakarta-commons-sandbox/messenger/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/messenger/build.xml,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- build.xml	2001/10/30 08:30:09	1.20
  +++ build.xml	2001/10/30 08:55:47	1.21
  @@ -1,4 +1,4 @@
  -<!-- $Id: build.xml,v 1.20 2001/10/30 08:30:09 jstrachan Exp $ -->
  +<!-- $Id: build.xml,v 1.21 2001/10/30 08:55:47 jstrachan Exp $ -->
   <project name="messenger" default="test" basedir=".">
   
      <!-- patternset describing files to be copied from the doc directory -->
  @@ -43,17 +43,12 @@
         <property name="user-propfile" value="${user.home}/build.properties"/>
         <property file="${user-propfile}"/>
   
  +
         <!-- command line classpath, if any -->
         <property name="cp" value=""/>
   
         <property name="j2ee.jar" value="${j2sdkee}/lib/j2ee.jar"/>
   
  -      <!-- now combine the classpaths -->
  -      <property name="classpath" value="${cp}:${jms.jar}:${servlet.jar}:${commons-digester.jar}:${commons-collections.jar}:${commons-beanutils.jar}"/>
  -
  -      <!-- classpath for unit tests -->
  -      <property name="test.classpath" value="${cp}:${j2ee.jar}:${j2sdkee}/lib/local}:${junit.jar}:${commons-digester.jar}:${commons-collections.jar}:${commons-beanutils.jar}"/>
  -
         <property name="name" value="messenger"/>
         <property name="Name" value="Commons Messenger"/>
         <property name="Name-Long" value="Jakarta Commons Messenger Package"/>
  @@ -66,6 +61,7 @@
         <property name="test.runner" value="junit.textui.TestRunner" />
   
         <property name="workdir" value="${java.io.tmpdir}/buildtemp_${DSTAMP}${TSTAMP}"/>
  +
         <property name="source" value="${basedir}"/>
         <property name="source.src" value="${basedir}/src"/>
         <property name="source.src.conf" value="${source.src}/conf"/>
  @@ -88,6 +84,18 @@
         <available property="available-src-java" file="${source.src.java}"/> <!-- does this module have java src? -->
         <available property="available-src-test" file="${source.src.test}"/> <!-- does this module have test src? -->
   
  +
  +      <!-- default properties which can be overridden -->
  +      <property name="messenger.xml" value="${source.src.conf}/Messenger.xml"/>
  +      <property name="jms.classes.dir" value="${workdir}/jms/classes"/>
  +      <property name="jms.lib.dir" value="${workdir}/jms/lib"/>
  +
  +      <!-- now combine the classpaths -->
  +      <property name="classpath" value="${cp}:${jms.jar}:${servlet.jar}:${commons-digester.jar}:${commons-collections.jar}:${commons-beanutils.jar}"/>
  +
  +      <!-- classpath for unit tests -->
  +      <property name="test.classpath" value="${cp}:${j2ee.jar}:${j2sdkee}/lib/local}:${junit.jar}:${commons-digester.jar}:${commons-collections.jar}:${commons-beanutils.jar}"/>
  +
      </target>
   
      <!-- ######################################################### -->
  @@ -237,6 +245,10 @@
       <mkdir dir="${build.webapp}"/>
       <mkdir dir="${build.webapp}/classes"/>
       <mkdir dir="${build.webapp}/lib"/>
  +
  +    <!-- avoid not-exist errors if no properties defined -->
  +    <mkdir dir="${jms.classes.dir}"/>
  +    <mkdir dir="${jms.lib.dir}"/>
   
       <javac destdir="${build.webapp}/classes"
              srcdir="${webapp.dir}/src"
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>