commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-commons-sandbox/messenger build-legacy.xml build.xml
Date Thu, 18 Jul 2002 10:07:27 GMT
jstrachan    2002/07/18 03:07:27

  Modified:    messenger build.xml
  Added:       messenger build-legacy.xml
  Log:
  renamed the old hand-crafted build.xml to build-legacy.xml and included the auto-generated build.xml from Maven
  
  Revision  Changes    Path
  1.34      +35 -581   jakarta-commons-sandbox/messenger/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/messenger/build.xml,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- build.xml	14 Jun 2002 17:50:13 -0000	1.33
  +++ build.xml	18 Jul 2002 10:07:26 -0000	1.34
  @@ -1,606 +1,60 @@
  -<project name="messenger" default="compile" basedir=".">
  +<?xml version="1.0" encoding="UTF-8"?>
   
  -<!--
  -        "messenger" component of the Jakarta Commons Subproject
  -        $Id$
  --->
  +<project default="jar" name="commons-messenger" basedir=".">
   
  -<!-- ========== Initialize Properties ===================================== -->
  +  <target name="jar" depends="get-deps">
   
  +    <mkdir dir="target/classes"></mkdir>
   
  -  <property file="build.properties"/>                <!-- Component local   -->
  -  <property file="../build.properties"/>             <!-- Commons local     -->
  -  <property file="${user.home}/build.properties"/>   <!-- User local        -->
  -
  -
  -  <!-- Allow any user specific values to override the defaults -->
  -  <property file="${user.home}/build.properties" />
  -  <!-- Allow user defaults for this project -->
  -  <property file="build.properties" />
  -  <!-- Set default values for the build -->
  -  <property file="project.properties" />
  -  
  -  <!-- maven:start -->
  -  
  -  <!-- ================================================================== -->
  -  <!-- D E F I N E   A N T   T A S K S                                    -->
  -  <!-- ================================================================== -->
  -  <taskdef
  -	name="maven-ant"
  -	classname="org.apache.maven.ant.Ant">
  -	<classpath>
  -      <pathelement location="${lib.repo}/maven.jar"/>
  -	</classpath>
  -  </taskdef>
  -
  -        
  -  <!-- ================================================================== -->
  -  <!-- D E L E G A T O R S                                                -->
  -  <!-- ================================================================== -->
  -        
  -	<target name="maven:gump-descriptor">
  -	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="gump-descriptor"/>
  -	</target>
  -	
  -	<target name="maven:maven-update">
  -	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="maven-update"/>
  -	</target>
  -	
  -	<target name="maven:update-jars">
  -	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="update-jars"/>
  -	</target>
  -	
  -	<target name="maven:jar">
  -	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="jar"/>
  -	</target>
  -	
  -	<target name="maven:docs-quick">
  -	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="docs-quick"/>
  -	</target>
  -	
  -	<target name="maven:run-singletest">
  -	  <maven-ant antfile="${maven.home}/plugins/test/build.xml" target="run-singletest"/>
  -	</target>
  -	
  -	<target name="maven:compile">
  -	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="compile"/>
  -	</target>
  -	
  -	<target name="maven:jar-resources">
  -	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="jar-resources"/>
  -	</target>
  -	
  -	<target name="maven:fo">
  -	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="fo"/>
  -	</target>
  -	
  -	<target name="maven:cvs-change-log">
  -	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="cvs-change-log"/>
  -	</target>
  -	
  -	<target name="maven:war">
  -	  <maven-ant antfile="${maven.home}/plugins/j2ee/build.xml" target="war"/>
  -	</target>
  -	
  -	<target name="maven:generate-reactor">
  -	  <maven-ant antfile="${maven.home}/plugins/reactor/build.xml" target="generate-reactor"/>
  -	</target>
  -	
  -	<target name="maven:cross-ref">
  -	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="cross-ref"/>
  -	</target>
  -	
  -	<target name="maven:deploy-site">
  -	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="deploy-site"/>
  -	</target>
  -	
  -	<target name="maven:ear">
  -	  <maven-ant antfile="${maven.home}/plugins/j2ee/build.xml" target="ear"/>
  -	</target>
  -	
  -	<target name="maven:install-jar">
  -	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="install-jar"/>
  -	</target>
  -	
  -	<target name="maven:task-list">
  -	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="task-list"/>
  -	</target>
  -	
  -	<target name="maven:docs">
  -	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="docs"/>
  -	</target>
  -	
  -	<target name="maven:site">
  -	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="site"/>
  -	</target>
  -	
  -	<target name="maven:deploy-dist">
  -	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="deploy-dist"/>
  -	</target>
  -	
  -	<target name="maven:javadocs">
  -	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="javadocs"/>
  -	</target>
  -	
  -	<target name="maven:announce">
  -	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="announce"/>
  -	</target>
  -	
  -	<target name="maven:check-source">
  -	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="check-source"/>
  -	</target>
  -	
  -	<target name="maven:dist">
  -	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="dist"/>
  -	</target>
  -	
  -	<target name="maven:dist-build">
  -	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="dist-build"/>
  -	</target>
  -	
  -	<target name="maven:metrics">
  -	  <maven-ant antfile="${maven.home}/plugins/metrics/build.xml" target="metrics"/>
  -	</target>
  -	
  -	<target name="maven:clean">
  -	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="clean"/>
  -	</target>
  -	
  -	<target name="maven:env">
  -	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="env"/>
  -	</target>
  -	
  -	<target name="maven:test">
  -	  <maven-ant antfile="${maven.home}/plugins/test/build.xml" target="test"/>
  -	</target>
  -	
  -	<target name="maven:pdf">
  -	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="pdf"/>
  -	</target>
  -	
  -	<target name="maven:iutest">
  -	  <maven-ant antfile="${maven.home}/plugins/uitest/build.xml" target="iutest"/>
  -	</target>
  -	
  -	<target name="maven:activity-log">
  -	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="activity-log"/>
  -	</target>
  -	
  -	<target name="maven:verify-project">
  -	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="verify-project"/>
  -	</target>
  -	
  -	<target name="maven:validate-pom">
  -	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="validate-pom"/>
  -	</target>
  -	
  -	<target name="maven:validate-war">
  -	  <maven-ant antfile="${maven.home}/plugins/j2ee/build.xml" target="validate-war"/>
  -	</target>
  -	
  -
  -  <!-- maven:end -->
  -
  -<!-- ========== Helper Targets ============================================ -->
  -
  -	<target name="clean" depends="maven:clean">
  -	  <delete file="velocity.log"/>
  -	</target>
  -	
  -
  -	<target name="compile" depends="maven:compile">
  -	  <path id="jms.classpath">
  -	    <pathelement path="${maven.build.dest}"/>
  -	    <path refid="maven.dependency.classpath"/>
  -	    <pathelement location="${lib.repo}/xmlParserAPIs-2.0.0.jar"/>
  -	    <pathelement location="${lib.repo}/xercesImpl-2.0.0.jar"/>
  -	    <pathelement path="${jms.classes.dir}"/>
  -	    <fileset dir="${jms.lib.dir}">
  -	      <include name="**/*.jar"/>
  -	    </fileset>
  -	  </path>
  -    <!-- add the JARs required for a pluggable JMS provider -->
  -    </target>	
  -
  -	<target name="compile.test" depends="compile"/>
  -	<target name="test" depends="maven:test"/>
  -	<target name="dist" depends="maven:dist-build"/>
  -	<target name="site" depends="maven:site"/>
  -	
  -
  -
  -<!-- ========== External Dependencies ===================================== -->
  -
  -
  -  <!-- The directory containing your binary distribution of JUnit,
  -       version 3.7 or later -->
  -  <property name="junit.home"              value="/usr/local/junit3.7"/>
  -
  -  <!-- The directories corresponding to your necessary dependencies -->
  -  <property name="jaxp.home"               value="/usr/local/jaxp1.1"/>
  -  <property name="jdk.home"                value="/usr/local/jdk1.3"/>
  -  <property name="commons.home"            value="../../jakarta-commons"/>
  -  <property name="beanutils.home"          value="${commons.home}/beanutils"/>
  -  <property name="collections.home"        value="${commons.home}/collections"/>
  -  <property name="logging.home"            value="${commons.home}/logging"/>
  -  <property name="digester.home"           value="${commons.home}/digester"/>
  -
  -  <property name="j2sdkee"                 value="/j2sdkee1.3"/>
  -
  -  <property name="messenger.xml"           value="src/conf/Messenger.xml"/>
  -  
  -  <property name="testMessenger.xml"       value="{conf.home}/test-connections.xml"/>  
  -  <property name="jms.classes.dir"         value="jms/classes"/>
  -  <property name="jms.lib.dir"             value="jms/lib"/>
  -
  -
  -<!-- ========== Derived Values ============================================ -->
  -
  -
  -  <!-- The locations of necessary jar files -->
  -  <property name="junit.jar"               value="${junit.home}/junit.jar"/>
  -  <property name="jdk.api"                 value="${jdk.home}/docs/api"/>
  -  <property name="j2ee.api"                value="${j2sdkee}/lib/j2ee.jar"/>
  -  <property name="j2ee.jar"                value="${j2sdkee}/doc/api"/>
  -  <property name="jaxp.jaxp.jar"           value="${jaxp.home}/jaxp.jar"/>
  -  <property name="jaxp.parser.jar"         value="${jaxp.home}/crimson.jar"/>
  -  <property name="jaxp.api"                value="${jaxp.home}/docs/api"/>
  -  <property name="commons-beanutils.api"   value="${beanutils.home}/dist/docs/api"/>
  -  <property name="commons-beanutils.jar"   value="${beanutils.home}/dist/commons-beanutils.jar"/>
  -  <property name="commons-collections.api" value="${collections.home}/dist/docs/api"/>
  -  <property name="commons-collections.jar" value="${collections.home}/dist/commons-collections.jar"/>
  -  <property name="commons-logging.api"     value="${logging.home}/dist/docs/api"/>
  -  <property name="commons-logging.jar"     value="${logging.home}/dist/commons-logging.jar"/>
  -  <property name="commons-digester.api"    value="${digester.home}/dist/docs/api"/>
  -  <property name="commons-digester.jar"    value="${digester.home}/dist/commons-digester.jar"/>
  -
  -<!-- ========== Component Declarations ==================================== -->
  -
  -
  -  <!-- The name of this component -->
  -  <property name="component.name"          value="messenger"/>
  -
  -  <!-- The primary package name of this component -->
  -  <property name="component.package"       value="org.apache.commons.messenger"/>
  -
  -  <!-- The title of this component -->
  -  <property name="component.title"         value="Messenger: JMS Framework"/>
  -
  -  <!-- 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="target"/>
  -
  -  <!-- The base directory for component configuration files -->
  -  <property name="conf.home"               value="src/conf"/>
  -
  -  <!-- 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"/>
  -
  -  <!-- The base directory for unit test sources -->
  -  <property name="test.home"               value="src/test"/>
  -
  -  <!-- The base directory for the example web app -->
  -  <property name="webapp.dir"              value="src/webapp"/>
  -
  -  <!-- The build directory for the web app -->
  -  <property name="build.webapp"            value="${webapp.dir}/web/WEB-INF"/>
  -
  -<!-- ========== 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="false"/>
  -
  -  <!-- 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="${jaxp.jaxp.jar}"/>
  -    <pathelement location="${jaxp.parser.jar}"/>
  -    <pathelement location="${servlet.jar}"/>
  -    <pathelement location="${jms.jar}"/>
  -    <pathelement location="${commons-beanutils.jar}"/>
  -    <pathelement location="${commons-collections.jar}"/>
  -    <pathelement location="${commons-logging.jar}"/>
  -    <pathelement location="${commons-digester.jar}"/>
  -  </path>
  -
  -
  -<!-- ========== Test Execution Defaults =================================== -->
  -
  -
  -  <!-- Construct unit test classpath -->
  -  <path id="old.test.classpath">
  -    <pathelement location="${build.home}/classes"/>
  -    <pathelement location="${build.home}/tests"/>
  -    <pathelement location="${servlet.jar}"/>
  -    <pathelement location="${jms.jar}"/>
  -    <pathelement location="${jaxp.jaxp.jar}"/>
  -    <pathelement location="${jaxp.parser.jar}"/>
  -    <pathelement location="${commons-beanutils.jar}"/>
  -    <pathelement location="${commons-collections.jar}"/>
  -    <pathelement location="${commons-logging.jar}"/>
  -    <pathelement location="${commons-digester.jar}"/>
  -    <pathelement location="${junit.jar}"/>
  -    <pathelement location="${j2ee.jar}"/>
  -    <pathelement location="${j2sdkee}/lib/local"/>
  -
  -    <!-- not sure why this is needed - something to do with JNDI I think -->
  -    <!-- if this is missing then the JNDI initial context fails for some reason -->
  -    <pathelement path="${java.class.path}"/>
  -
  -    <!-- add the JARs required for a pluggable JMS provider -->
  -    <pathelement path="${jms.classes.dir}"/>
  -    <fileset dir="${jms.lib.dir}">
  -      <include name="**/*.jar"/>
  -    </fileset>
  -  </path>
  -
  -  <!-- Running sample programs against the configured JMS provider -->
  -  <path id="old.jms.classpath">
  -    <pathelement location="${build.home}/classes"/>
  -    <pathelement location="${build.home}/tests"/>
  -    <pathelement location="${servlet.jar}"/>
  -    <pathelement location="${jms.jar}"/>
  -    <pathelement location="${jaxp.jaxp.jar}"/>
  -    <pathelement location="${jaxp.parser.jar}"/>
  -    <pathelement location="${commons-beanutils.jar}"/>
  -    <pathelement location="${commons-collections.jar}"/>
  -    <pathelement location="${commons-logging.jar}"/>
  -    <pathelement location="${commons-digester.jar}"/>
  -
  -    <!-- add the JARs required for a pluggable JMS provider -->
  -    <pathelement path="${jms.classes.dir}"/>
  -    <fileset dir="${jms.lib.dir}">
  -      <include name="**/*.jar"/>
  -    </fileset>
  -  </path>
  -
  -  <!-- 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"/>
  -
  -
  -
  -<!-- ========== Unit Test Targets ========================================= -->
  -
  -
  -  <target name="test.messenger" depends="compile.test">
  -    <echo message="Running messenger tests ..."/>
  -    <java classname="${test.runner}" fork="yes"
  -        failonerror="${test.failonerror}">
  -      <classpath refid="test.classpath"/>
  -
  -      <arg value="org.apache.commons.messenger.TestAll"/>
  -
  -      <!-- J2EE SDK properties -->
  -      <sysproperty key="jms.properties" value="${j2sdkee}/config/jms_client.properties"/>
  -      <sysproperty key="java.security.policy" value="${j2sdkee}/lib/security/client.policy"/>
  -      <sysproperty key="java.security.auth.login.config" value="${j2sdkee}/lib/security/login.config"/>
  -      <sysproperty key="com.sun.enterprise.home" value="${j2sdkee}"/>
  -      <sysproperty key="org.apache.commons.messenger" value="${testMessenger.xml}"/>
  -    </java>
  -  </target>
  -
  -<!-- ========== Example Web App =========================================== -->
  -
  -  <target name="webapp" depends="maven:jar"
  -    description="Builds the sample web application">
  -    <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"
  -           debug="false"
  -           deprecation="true"
  -           optimize="true"
  -           fork="true">
  -      <classpath refid="compile.classpath"/>
  +    <javac destdir="target/classes" deprecation="false" debug="false" optimize="false" excludes="**/package.html">
  +      <src>
  +        <pathelement location="src/java"></pathelement>
  +      </src>
  +      <classpath>
  +        <fileset dir="lib">
  +          <include name="*.jar"></include>
  +        </fileset>
  +      </classpath>
       </javac>
   
  -    <copy toDir="${build.webapp}">
  -      <fileset dir="${webapp.dir}/conf" includes="*.tld, *.xml"/>
  -    </copy>
  -
  -    <copy tofile="${build.webapp}/Messenger.xml" file="${messenger.xml}"/>
  -
  -    <!-- commons jars... -->
  -    <copy todir="${build.webapp}/lib" file="${dist.home}/commons-${component.name}.jar"/>
  -    <copy todir="${build.webapp}/lib" file="${commons-digester.jar}"/>
  -    <copy todir="${build.webapp}/lib" file="${commons-collections.jar}"/>
  -    <copy todir="${build.webapp}/lib" file="${commons-beanutils.jar}"/>
  -    <copy todir="${build.webapp}/lib" file="${commons-logging.jar}"/>
  -
  -    <copy toDir="${build.webapp}/classes">
  -      <fileset dir="${jms.classes.dir}"/>
  -    </copy>
  -
  -    <copy toDir="${build.webapp}/lib">
  -      <fileset dir="${jms.lib.dir}"/>
  -    </copy>
  -  </target>
  -
  -<!-- ========== Demos using Messagelets =================================== -->
  -
  -<!--   
  -  the following require the webapp target to have been built and then
  -  the j2ee server to be running this webapp. To do this you need to edit
  -  the ${j2eesdk}/conf/web.properties to point to the src/webapp/web directory
  --->
  -
  -  <target name="demo.j2eesdk.call" depends="compile.test"
  -    description="Sends a message to a Messagelet engine and displays the result">
  -    <echo message="Sending a message to the Messagelet engine using the J2EE SDK JMS..."/>
  -    <java classname="org.apache.commons.messenger.tool.Caller" fork="yes">
  -      <classpath refid="test.classpath"/>
  -
  -      <arg value="queue"/>
  -      <arg value="jms/Queue"/>
  -      <arg value="src/conf/sampleMessage.txt"/>
  -
  -      <!-- J2EE SDK properties -->
  -      <sysproperty key="jms.properties" value="${j2sdkee}/config/jms_client.properties"/>
  -      <sysproperty key="java.security.policy" value="${j2sdkee}/lib/security/client.policy"/>
  -      <sysproperty key="java.security.auth.login.config" value="${j2sdkee}/lib/security/login.config"/>
  -      <sysproperty key="com.sun.enterprise.home" value="${j2sdkee}"/>
  -      <sysproperty key="org.apache.commons.messenger" value="${conf.home}/test-connections.xml"/>
  -    </java>
  -  </target>
  -  
  -<!--   
  -    the following demos assume that some JMS provider is being used
  -    and that the messenger.xml variable points to the config file to use and
  -    jms.classpath points to the required JARs & config files etc.
  --->
  -
  -  <target name="demo.jms.call.mdo" depends="compile.test"
  -    description="Sends a message to a Messagelet engine for processing by a MDO and displays the result">
  -    <echo message="Sending a message to the Messagelet engine using the configured JMS provider..."/>
  -    <java classname="org.apache.commons.messenger.tool.Caller" fork="yes">
  -      <classpath refid="jms.classpath"/>
  -
  -      <arg value="queue"/>
  -      <arg value="jms/Queue"/>
  -      <arg value="src/conf/sampleMessage.txt"/>
  +    <jar jarfile="target/commons-messenger-1.0-dev.jar" excludes="**/package.html" basedir="target/classes"></jar>
   
  -      <sysproperty key="org.apache.commons.messenger" value="${messenger.xml}"/>
  -    </java>
     </target>
   
  -  <target name="demo.jms.call.servlet" depends="compile.test"
  -    description="Sends a message to a Messagelet engine for processing by a Servlet and displays the result">
  -    <echo message="Sending a message to the Messagelet engine using the configured JMS provider..."/>
  -    <java classname="org.apache.commons.messenger.tool.Caller" fork="yes">
  -      <classpath refid="jms.classpath"/>
  -
  -      <arg value="queue"/>
  -      <arg value="echo.servlet"/>
  -      <arg value="src/conf/sampleMessage.txt"/>
  -
  -      <sysproperty key="org.apache.commons.messenger" value="${messenger.xml}"/>
  -    </java>
  -  </target>
  +  <target name="get-deps">
     
  -
  -  <target name="demo.jms.call.messagelet" depends="compile.test"
  -    description="Sends a message to a Messagelet engine for processing by a Messagelet and displays the result">
  -    <echo message="Sending a message to the Messagelet engine using the configured JMS provider..."/>
  -    <java classname="org.apache.commons.messenger.tool.Caller" fork="yes">
  -      <classpath refid="jms.classpath"/>
  -      <arg value="queue"/>
  -      <arg value="echo.messagelet"/>
  -      <arg value="src/conf/sampleMessage.txt"/>
  -      <sysproperty key="org.apache.commons.messenger" value="${messenger.xml}"/>
  -    </java>
  -  </target>
  -
  +    <mkdir dir="lib"></mkdir>
  +    
  +    <get dest="lib/commons-logging-1.0.jar" usetimestamp="true" src="http://jakarta.apache.org/turbine/jars/commons-logging-1.0.jar"></get>
  +    <get dest="lib/commons-beanutils-1.3.jar" usetimestamp="true" src="http://jakarta.apache.org/turbine/jars/commons-beanutils-1.3.jar"></get>
  +    <get dest="lib/commons-collections-2.0.jar" usetimestamp="true" src="http://jakarta.apache.org/turbine/jars/commons-collections-2.0.jar"></get>
  +    <get dest="lib/commons-digester-1.2.jar" usetimestamp="true" src="http://jakarta.apache.org/turbine/jars/commons-digester-1.2.jar"></get>
  +    <get dest="lib/servletapi-2.3.jar" usetimestamp="true" src="http://jakarta.apache.org/turbine/jars/servletapi-2.3.jar"></get>
  +    <get dest="lib/jms-1.0.2b.jar" usetimestamp="true" src="http://jakarta.apache.org/turbine/jars/jms-1.0.2b.jar"></get>
  +    <get dest="lib/xmlParserAPIs-2.0.0.jar" usetimestamp="true" src="http://jakarta.apache.org/turbine/jars/xmlParserAPIs-2.0.0.jar"></get>
  +    <get dest="lib/ant-1.4.1.jar" usetimestamp="true" src="http://jakarta.apache.org/turbine/jars/ant-1.4.1.jar"></get>
  +    <get dest="lib/junit-3.7.jar" usetimestamp="true" src="http://jakarta.apache.org/turbine/jars/junit-3.7.jar"></get>
     
  -  <target name="demo.jms.call.bridge" depends="compile.test"
  -    description="Sends a message to a Messagelet engine for processing by a Bridge MDO">
  -    <echo message="Sending a message to the Messagelet engine using the configured JMS provider..."/>
  -    <java classname="org.apache.commons.messenger.tool.Producer" fork="yes">
  -      <classpath refid="jms.classpath"/>
  -      <arg value="queue"/>
  -      <arg value="foo.input"/>
  -      <arg value="src/conf/sampleMessage.txt"/>
  -      <sysproperty key="org.apache.commons.messenger" value="${messenger.xml}"/>
  -    </java>
     </target>
   
     
  -
  -  <target name="demo.jms.call.jsp" depends="compile.test"
  -    description="Sends a message to a Messagelet engine for processing by a JSP page and displays the result">
  -    <echo message="Sending a message to the Messagelet engine using the configured JMS provider..."/>
  -    <java classname="org.apache.commons.messenger.tool.Caller" fork="yes">
  -      <classpath refid="jms.classpath"/>
  -
  -      <arg value="queue"/>
  -      <arg value="echo.jsp"/>
  -      <arg value="src/conf/sampleMessage.txt"/>
  -
  -      <sysproperty key="org.apache.commons.messenger" value="${messenger.xml}"/>
  -    </java>
  -  </target>
     
  -  <target name="demo.send" depends="compile.test"
  -    description="Sends a number of messages to a JMS destination using the jmsSend task">
  -
  -    <taskdef
  -      name="jmsSend"
  -      classname="org.apache.commons.messenger.task.ProducerTask">
  -      <classpath refid="jms.classpath"/>
  -    </taskdef>
  -
  -    <jmsSend messengerName="queue" configuration="${messenger.xml}" subject="jms/Queue">
  -      <fileset dir="src/conf" excludes="**/*.txt"/>
  -    </jmsSend> 
  -  </target>
     
     
  -  <target name="demo.receive.loop" depends="compile.test"
  -    description="Receives a number of messages from a JMS destination using the jmsReceive task">
  -
  -    <taskdef
  -      name="jmsReceive"
  -      classname="org.apache.commons.messenger.task.ConsumerTask">
  -      <classpath refid="jms.classpath"/>
  -    </taskdef>
  -
  -	<mkdir dir="target/output"/>		
  -    <jmsReceive messengerName="queue" configuration="${messenger.xml}" subject="jms/Queue" dir="target/output"/>
  -  </target>
     
  -
  -  <target name="demo.receive" depends="compile.test"
  -    description="Receives a number of messages from a JMS destination">
  -    
  -    <property name="test.subject" value="jms/Queue"/>
  -
  -    <echo message="Waiting to recieve messages on subject: ${test.subject}"/>
  -    <java classname="org.apache.commons.messenger.tool.Consumer" fork="yes">
  -      <classpath refid="jms.classpath"/>
  -
  -      <arg value="queue"/>
  -      <arg value="${test.subject}"/>
  -
  -      <sysproperty key="org.apache.commons.messenger" value="${messenger.xml}"/>
  -    </java>
  -  </target>
     
  -  <target name="demo.receive.bridge" depends="compile.test"
  -    description="Receives a number of messages from the bridge on a JMS destination">
  +  
  +  
   
  -    <property name="test.subject" value="foo.output"/>
  +  <target name="install-maven">
   
  -    <echo message="Waiting to recieve messages on subject: ${test.subject}"/>
  -    <java classname="org.apache.commons.messenger.tool.Consumer" fork="yes">
  -      <classpath refid="jms.classpath"/>
  -      <arg value="queue"/>
  -      <arg value="${test.subject}"/>
  -      <sysproperty key="org.apache.commons.messenger" value="${messenger.xml}"/>
  -    </java>
  +    
   
  +    <get dest="${user.home}/" usetimestamp="true" src="${maven.repo.remote}maven/"></get>
  +    
  +    <unjar dest="${maven.home}" src="${user.home}/"></unjar>
  +    
     </target>
   
  -  
  -
  -
   </project>
  +    
  \ No newline at end of file
  
  
  
  1.1                  jakarta-commons-sandbox/messenger/build-legacy.xml
  
  Index: build-legacy.xml
  ===================================================================
  <project name="messenger" default="compile" basedir=".">
  
  <!--
          "messenger" component of the Jakarta Commons Subproject
          $Id: build.xml,v 1.33 2002/06/14 17:50:13 jstrachan Exp $
  -->
  
  <!-- ========== Initialize Properties ===================================== -->
  
  
    <property file="build.properties"/>                <!-- Component local   -->
    <property file="../build.properties"/>             <!-- Commons local     -->
    <property file="${user.home}/build.properties"/>   <!-- User local        -->
  
  
    <!-- Allow any user specific values to override the defaults -->
    <property file="${user.home}/build.properties" />
    <!-- Allow user defaults for this project -->
    <property file="build.properties" />
    <!-- Set default values for the build -->
    <property file="project.properties" />
    
    <!-- maven:start -->
    
    <!-- ================================================================== -->
    <!-- D E F I N E   A N T   T A S K S                                    -->
    <!-- ================================================================== -->
    <taskdef
  	name="maven-ant"
  	classname="org.apache.maven.ant.Ant">
  	<classpath>
        <pathelement location="${lib.repo}/maven.jar"/>
  	</classpath>
    </taskdef>
  
          
    <!-- ================================================================== -->
    <!-- D E L E G A T O R S                                                -->
    <!-- ================================================================== -->
          
  	<target name="maven:gump-descriptor">
  	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="gump-descriptor"/>
  	</target>
  	
  	<target name="maven:maven-update">
  	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="maven-update"/>
  	</target>
  	
  	<target name="maven:update-jars">
  	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="update-jars"/>
  	</target>
  	
  	<target name="maven:jar">
  	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="jar"/>
  	</target>
  	
  	<target name="maven:docs-quick">
  	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="docs-quick"/>
  	</target>
  	
  	<target name="maven:run-singletest">
  	  <maven-ant antfile="${maven.home}/plugins/test/build.xml" target="run-singletest"/>
  	</target>
  	
  	<target name="maven:compile">
  	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="compile"/>
  	</target>
  	
  	<target name="maven:jar-resources">
  	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="jar-resources"/>
  	</target>
  	
  	<target name="maven:fo">
  	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="fo"/>
  	</target>
  	
  	<target name="maven:cvs-change-log">
  	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="cvs-change-log"/>
  	</target>
  	
  	<target name="maven:war">
  	  <maven-ant antfile="${maven.home}/plugins/j2ee/build.xml" target="war"/>
  	</target>
  	
  	<target name="maven:generate-reactor">
  	  <maven-ant antfile="${maven.home}/plugins/reactor/build.xml" target="generate-reactor"/>
  	</target>
  	
  	<target name="maven:cross-ref">
  	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="cross-ref"/>
  	</target>
  	
  	<target name="maven:deploy-site">
  	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="deploy-site"/>
  	</target>
  	
  	<target name="maven:ear">
  	  <maven-ant antfile="${maven.home}/plugins/j2ee/build.xml" target="ear"/>
  	</target>
  	
  	<target name="maven:install-jar">
  	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="install-jar"/>
  	</target>
  	
  	<target name="maven:task-list">
  	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="task-list"/>
  	</target>
  	
  	<target name="maven:docs">
  	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="docs"/>
  	</target>
  	
  	<target name="maven:site">
  	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="site"/>
  	</target>
  	
  	<target name="maven:deploy-dist">
  	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="deploy-dist"/>
  	</target>
  	
  	<target name="maven:javadocs">
  	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="javadocs"/>
  	</target>
  	
  	<target name="maven:announce">
  	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="announce"/>
  	</target>
  	
  	<target name="maven:check-source">
  	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="check-source"/>
  	</target>
  	
  	<target name="maven:dist">
  	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="dist"/>
  	</target>
  	
  	<target name="maven:dist-build">
  	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="dist-build"/>
  	</target>
  	
  	<target name="maven:metrics">
  	  <maven-ant antfile="${maven.home}/plugins/metrics/build.xml" target="metrics"/>
  	</target>
  	
  	<target name="maven:clean">
  	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="clean"/>
  	</target>
  	
  	<target name="maven:env">
  	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="env"/>
  	</target>
  	
  	<target name="maven:test">
  	  <maven-ant antfile="${maven.home}/plugins/test/build.xml" target="test"/>
  	</target>
  	
  	<target name="maven:pdf">
  	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="pdf"/>
  	</target>
  	
  	<target name="maven:iutest">
  	  <maven-ant antfile="${maven.home}/plugins/uitest/build.xml" target="iutest"/>
  	</target>
  	
  	<target name="maven:activity-log">
  	  <maven-ant antfile="${maven.home}/plugins/docs/build.xml" target="activity-log"/>
  	</target>
  	
  	<target name="maven:verify-project">
  	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="verify-project"/>
  	</target>
  	
  	<target name="maven:validate-pom">
  	  <maven-ant antfile="${maven.home}/plugins/core/build.xml" target="validate-pom"/>
  	</target>
  	
  	<target name="maven:validate-war">
  	  <maven-ant antfile="${maven.home}/plugins/j2ee/build.xml" target="validate-war"/>
  	</target>
  	
  
    <!-- maven:end -->
  
  <!-- ========== Helper Targets ============================================ -->
  
  	<target name="clean" depends="maven:clean">
  	  <delete file="velocity.log"/>
  	</target>
  	
  
  	<target name="compile" depends="maven:compile">
  	  <path id="jms.classpath">
  	    <pathelement path="${maven.build.dest}"/>
  	    <path refid="maven.dependency.classpath"/>
  	    <pathelement location="${lib.repo}/xmlParserAPIs-2.0.0.jar"/>
  	    <pathelement location="${lib.repo}/xercesImpl-2.0.0.jar"/>
  	    <pathelement path="${jms.classes.dir}"/>
  	    <fileset dir="${jms.lib.dir}">
  	      <include name="**/*.jar"/>
  	    </fileset>
  	  </path>
      <!-- add the JARs required for a pluggable JMS provider -->
      </target>	
  
  	<target name="compile.test" depends="compile"/>
  	<target name="test" depends="maven:test"/>
  	<target name="dist" depends="maven:dist-build"/>
  	<target name="site" depends="maven:site"/>
  	
  
  
  <!-- ========== External Dependencies ===================================== -->
  
  
    <!-- The directory containing your binary distribution of JUnit,
         version 3.7 or later -->
    <property name="junit.home"              value="/usr/local/junit3.7"/>
  
    <!-- The directories corresponding to your necessary dependencies -->
    <property name="jaxp.home"               value="/usr/local/jaxp1.1"/>
    <property name="jdk.home"                value="/usr/local/jdk1.3"/>
    <property name="commons.home"            value="../../jakarta-commons"/>
    <property name="beanutils.home"          value="${commons.home}/beanutils"/>
    <property name="collections.home"        value="${commons.home}/collections"/>
    <property name="logging.home"            value="${commons.home}/logging"/>
    <property name="digester.home"           value="${commons.home}/digester"/>
  
    <property name="j2sdkee"                 value="/j2sdkee1.3"/>
  
    <property name="messenger.xml"           value="src/conf/Messenger.xml"/>
    
    <property name="testMessenger.xml"       value="{conf.home}/test-connections.xml"/>  
    <property name="jms.classes.dir"         value="jms/classes"/>
    <property name="jms.lib.dir"             value="jms/lib"/>
  
  
  <!-- ========== Derived Values ============================================ -->
  
  
    <!-- The locations of necessary jar files -->
    <property name="junit.jar"               value="${junit.home}/junit.jar"/>
    <property name="jdk.api"                 value="${jdk.home}/docs/api"/>
    <property name="j2ee.api"                value="${j2sdkee}/lib/j2ee.jar"/>
    <property name="j2ee.jar"                value="${j2sdkee}/doc/api"/>
    <property name="jaxp.jaxp.jar"           value="${jaxp.home}/jaxp.jar"/>
    <property name="jaxp.parser.jar"         value="${jaxp.home}/crimson.jar"/>
    <property name="jaxp.api"                value="${jaxp.home}/docs/api"/>
    <property name="commons-beanutils.api"   value="${beanutils.home}/dist/docs/api"/>
    <property name="commons-beanutils.jar"   value="${beanutils.home}/dist/commons-beanutils.jar"/>
    <property name="commons-collections.api" value="${collections.home}/dist/docs/api"/>
    <property name="commons-collections.jar" value="${collections.home}/dist/commons-collections.jar"/>
    <property name="commons-logging.api"     value="${logging.home}/dist/docs/api"/>
    <property name="commons-logging.jar"     value="${logging.home}/dist/commons-logging.jar"/>
    <property name="commons-digester.api"    value="${digester.home}/dist/docs/api"/>
    <property name="commons-digester.jar"    value="${digester.home}/dist/commons-digester.jar"/>
  
  <!-- ========== Component Declarations ==================================== -->
  
  
    <!-- The name of this component -->
    <property name="component.name"          value="messenger"/>
  
    <!-- The primary package name of this component -->
    <property name="component.package"       value="org.apache.commons.messenger"/>
  
    <!-- The title of this component -->
    <property name="component.title"         value="Messenger: JMS Framework"/>
  
    <!-- 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="target"/>
  
    <!-- The base directory for component configuration files -->
    <property name="conf.home"               value="src/conf"/>
  
    <!-- 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"/>
  
    <!-- The base directory for unit test sources -->
    <property name="test.home"               value="src/test"/>
  
    <!-- The base directory for the example web app -->
    <property name="webapp.dir"              value="src/webapp"/>
  
    <!-- The build directory for the web app -->
    <property name="build.webapp"            value="${webapp.dir}/web/WEB-INF"/>
  
  <!-- ========== 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="false"/>
  
    <!-- 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="${jaxp.jaxp.jar}"/>
      <pathelement location="${jaxp.parser.jar}"/>
      <pathelement location="${servlet.jar}"/>
      <pathelement location="${jms.jar}"/>
      <pathelement location="${commons-beanutils.jar}"/>
      <pathelement location="${commons-collections.jar}"/>
      <pathelement location="${commons-logging.jar}"/>
      <pathelement location="${commons-digester.jar}"/>
    </path>
  
  
  <!-- ========== Test Execution Defaults =================================== -->
  
  
    <!-- Construct unit test classpath -->
    <path id="old.test.classpath">
      <pathelement location="${build.home}/classes"/>
      <pathelement location="${build.home}/tests"/>
      <pathelement location="${servlet.jar}"/>
      <pathelement location="${jms.jar}"/>
      <pathelement location="${jaxp.jaxp.jar}"/>
      <pathelement location="${jaxp.parser.jar}"/>
      <pathelement location="${commons-beanutils.jar}"/>
      <pathelement location="${commons-collections.jar}"/>
      <pathelement location="${commons-logging.jar}"/>
      <pathelement location="${commons-digester.jar}"/>
      <pathelement location="${junit.jar}"/>
      <pathelement location="${j2ee.jar}"/>
      <pathelement location="${j2sdkee}/lib/local"/>
  
      <!-- not sure why this is needed - something to do with JNDI I think -->
      <!-- if this is missing then the JNDI initial context fails for some reason -->
      <pathelement path="${java.class.path}"/>
  
      <!-- add the JARs required for a pluggable JMS provider -->
      <pathelement path="${jms.classes.dir}"/>
      <fileset dir="${jms.lib.dir}">
        <include name="**/*.jar"/>
      </fileset>
    </path>
  
    <!-- Running sample programs against the configured JMS provider -->
    <path id="old.jms.classpath">
      <pathelement location="${build.home}/classes"/>
      <pathelement location="${build.home}/tests"/>
      <pathelement location="${servlet.jar}"/>
      <pathelement location="${jms.jar}"/>
      <pathelement location="${jaxp.jaxp.jar}"/>
      <pathelement location="${jaxp.parser.jar}"/>
      <pathelement location="${commons-beanutils.jar}"/>
      <pathelement location="${commons-collections.jar}"/>
      <pathelement location="${commons-logging.jar}"/>
      <pathelement location="${commons-digester.jar}"/>
  
      <!-- add the JARs required for a pluggable JMS provider -->
      <pathelement path="${jms.classes.dir}"/>
      <fileset dir="${jms.lib.dir}">
        <include name="**/*.jar"/>
      </fileset>
    </path>
  
    <!-- 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"/>
  
  
  
  <!-- ========== Unit Test Targets ========================================= -->
  
  
    <target name="test.messenger" depends="compile.test">
      <echo message="Running messenger tests ..."/>
      <java classname="${test.runner}" fork="yes"
          failonerror="${test.failonerror}">
        <classpath refid="test.classpath"/>
  
        <arg value="org.apache.commons.messenger.TestAll"/>
  
        <!-- J2EE SDK properties -->
        <sysproperty key="jms.properties" value="${j2sdkee}/config/jms_client.properties"/>
        <sysproperty key="java.security.policy" value="${j2sdkee}/lib/security/client.policy"/>
        <sysproperty key="java.security.auth.login.config" value="${j2sdkee}/lib/security/login.config"/>
        <sysproperty key="com.sun.enterprise.home" value="${j2sdkee}"/>
        <sysproperty key="org.apache.commons.messenger" value="${testMessenger.xml}"/>
      </java>
    </target>
  
  <!-- ========== Example Web App =========================================== -->
  
    <target name="webapp" depends="maven:jar"
      description="Builds the sample web application">
      <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"
             debug="false"
             deprecation="true"
             optimize="true"
             fork="true">
        <classpath refid="compile.classpath"/>
      </javac>
  
      <copy toDir="${build.webapp}">
        <fileset dir="${webapp.dir}/conf" includes="*.tld, *.xml"/>
      </copy>
  
      <copy tofile="${build.webapp}/Messenger.xml" file="${messenger.xml}"/>
  
      <!-- commons jars... -->
      <copy todir="${build.webapp}/lib" file="${dist.home}/commons-${component.name}.jar"/>
      <copy todir="${build.webapp}/lib" file="${commons-digester.jar}"/>
      <copy todir="${build.webapp}/lib" file="${commons-collections.jar}"/>
      <copy todir="${build.webapp}/lib" file="${commons-beanutils.jar}"/>
      <copy todir="${build.webapp}/lib" file="${commons-logging.jar}"/>
  
      <copy toDir="${build.webapp}/classes">
        <fileset dir="${jms.classes.dir}"/>
      </copy>
  
      <copy toDir="${build.webapp}/lib">
        <fileset dir="${jms.lib.dir}"/>
      </copy>
    </target>
  
  <!-- ========== Demos using Messagelets =================================== -->
  
  <!--   
    the following require the webapp target to have been built and then
    the j2ee server to be running this webapp. To do this you need to edit
    the ${j2eesdk}/conf/web.properties to point to the src/webapp/web directory
  -->
  
    <target name="demo.j2eesdk.call" depends="compile.test"
      description="Sends a message to a Messagelet engine and displays the result">
      <echo message="Sending a message to the Messagelet engine using the J2EE SDK JMS..."/>
      <java classname="org.apache.commons.messenger.tool.Caller" fork="yes">
        <classpath refid="test.classpath"/>
  
        <arg value="queue"/>
        <arg value="jms/Queue"/>
        <arg value="src/conf/sampleMessage.txt"/>
  
        <!-- J2EE SDK properties -->
        <sysproperty key="jms.properties" value="${j2sdkee}/config/jms_client.properties"/>
        <sysproperty key="java.security.policy" value="${j2sdkee}/lib/security/client.policy"/>
        <sysproperty key="java.security.auth.login.config" value="${j2sdkee}/lib/security/login.config"/>
        <sysproperty key="com.sun.enterprise.home" value="${j2sdkee}"/>
        <sysproperty key="org.apache.commons.messenger" value="${conf.home}/test-connections.xml"/>
      </java>
    </target>
    
  <!--   
      the following demos assume that some JMS provider is being used
      and that the messenger.xml variable points to the config file to use and
      jms.classpath points to the required JARs & config files etc.
  -->
  
    <target name="demo.jms.call.mdo" depends="compile.test"
      description="Sends a message to a Messagelet engine for processing by a MDO and displays the result">
      <echo message="Sending a message to the Messagelet engine using the configured JMS provider..."/>
      <java classname="org.apache.commons.messenger.tool.Caller" fork="yes">
        <classpath refid="jms.classpath"/>
  
        <arg value="queue"/>
        <arg value="jms/Queue"/>
        <arg value="src/conf/sampleMessage.txt"/>
  
        <sysproperty key="org.apache.commons.messenger" value="${messenger.xml}"/>
      </java>
    </target>
  
    <target name="demo.jms.call.servlet" depends="compile.test"
      description="Sends a message to a Messagelet engine for processing by a Servlet and displays the result">
      <echo message="Sending a message to the Messagelet engine using the configured JMS provider..."/>
      <java classname="org.apache.commons.messenger.tool.Caller" fork="yes">
        <classpath refid="jms.classpath"/>
  
        <arg value="queue"/>
        <arg value="echo.servlet"/>
        <arg value="src/conf/sampleMessage.txt"/>
  
        <sysproperty key="org.apache.commons.messenger" value="${messenger.xml}"/>
      </java>
    </target>
    
  
    <target name="demo.jms.call.messagelet" depends="compile.test"
      description="Sends a message to a Messagelet engine for processing by a Messagelet and displays the result">
      <echo message="Sending a message to the Messagelet engine using the configured JMS provider..."/>
      <java classname="org.apache.commons.messenger.tool.Caller" fork="yes">
        <classpath refid="jms.classpath"/>
        <arg value="queue"/>
        <arg value="echo.messagelet"/>
        <arg value="src/conf/sampleMessage.txt"/>
        <sysproperty key="org.apache.commons.messenger" value="${messenger.xml}"/>
      </java>
    </target>
  
    
    <target name="demo.jms.call.bridge" depends="compile.test"
      description="Sends a message to a Messagelet engine for processing by a Bridge MDO">
      <echo message="Sending a message to the Messagelet engine using the configured JMS provider..."/>
      <java classname="org.apache.commons.messenger.tool.Producer" fork="yes">
        <classpath refid="jms.classpath"/>
        <arg value="queue"/>
        <arg value="foo.input"/>
        <arg value="src/conf/sampleMessage.txt"/>
        <sysproperty key="org.apache.commons.messenger" value="${messenger.xml}"/>
      </java>
    </target>
  
    
  
    <target name="demo.jms.call.jsp" depends="compile.test"
      description="Sends a message to a Messagelet engine for processing by a JSP page and displays the result">
      <echo message="Sending a message to the Messagelet engine using the configured JMS provider..."/>
      <java classname="org.apache.commons.messenger.tool.Caller" fork="yes">
        <classpath refid="jms.classpath"/>
  
        <arg value="queue"/>
        <arg value="echo.jsp"/>
        <arg value="src/conf/sampleMessage.txt"/>
  
        <sysproperty key="org.apache.commons.messenger" value="${messenger.xml}"/>
      </java>
    </target>
    
    <target name="demo.send" depends="compile.test"
      description="Sends a number of messages to a JMS destination using the jmsSend task">
  
      <taskdef
        name="jmsSend"
        classname="org.apache.commons.messenger.task.ProducerTask">
        <classpath refid="jms.classpath"/>
      </taskdef>
  
      <jmsSend messengerName="queue" configuration="${messenger.xml}" subject="jms/Queue">
        <fileset dir="src/conf" excludes="**/*.txt"/>
      </jmsSend> 
    </target>
    
    
    <target name="demo.receive.loop" depends="compile.test"
      description="Receives a number of messages from a JMS destination using the jmsReceive task">
  
      <taskdef
        name="jmsReceive"
        classname="org.apache.commons.messenger.task.ConsumerTask">
        <classpath refid="jms.classpath"/>
      </taskdef>
  
  	<mkdir dir="target/output"/>		
      <jmsReceive messengerName="queue" configuration="${messenger.xml}" subject="jms/Queue" dir="target/output"/>
    </target>
    
  
    <target name="demo.receive" depends="compile.test"
      description="Receives a number of messages from a JMS destination">
      
      <property name="test.subject" value="jms/Queue"/>
  
      <echo message="Waiting to recieve messages on subject: ${test.subject}"/>
      <java classname="org.apache.commons.messenger.tool.Consumer" fork="yes">
        <classpath refid="jms.classpath"/>
  
        <arg value="queue"/>
        <arg value="${test.subject}"/>
  
        <sysproperty key="org.apache.commons.messenger" value="${messenger.xml}"/>
      </java>
    </target>
    
    <target name="demo.receive.bridge" depends="compile.test"
      description="Receives a number of messages from the bridge on a JMS destination">
  
      <property name="test.subject" value="foo.output"/>
  
      <echo message="Waiting to recieve messages on subject: ${test.subject}"/>
      <java classname="org.apache.commons.messenger.tool.Consumer" fork="yes">
        <classpath refid="jms.classpath"/>
        <arg value="queue"/>
        <arg value="${test.subject}"/>
        <sysproperty key="org.apache.commons.messenger" value="${messenger.xml}"/>
      </java>
  
    </target>
  
    
  
  
  </project>
  
  
  

--
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