You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2018/07/09 19:55:05 UTC
[5/5] activemq-nms-amqp git commit: AMQNET-576 Remove deprecated AMQP
client impl from master
AMQNET-576 Remove deprecated AMQP client impl from master
Remove the now deprecated NMS.AMQP implementation that attempted to wrap
the Qpid native libraries vs a direct .NET based client impl or a wrapper
around another AMQP .NET client such as AmqpNetLite.
Deprecated code can be found in branch: deprecated-impl
Project: http://git-wip-us.apache.org/repos/asf/activemq-nms-amqp/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-nms-amqp/commit/9122762b
Tree: http://git-wip-us.apache.org/repos/asf/activemq-nms-amqp/tree/9122762b
Diff: http://git-wip-us.apache.org/repos/asf/activemq-nms-amqp/diff/9122762b
Branch: refs/heads/master
Commit: 9122762bb174ea3abb5555da42ede7aa93649f39
Parents: a14e7b9
Author: Timothy Bish <ta...@gmail.com>
Authored: Mon Jul 9 15:51:10 2018 -0400
Committer: Timothy Bish <ta...@gmail.com>
Committed: Mon Jul 9 15:52:31 2018 -0400
----------------------------------------------------------------------
Apache.NMS.AMQP.Test.nunit | 7 -
README.txt | 73 --
RELEASE.txt | 136 ----
keyfile/NMSKey.snk | Bin 596 -> 0 bytes
nant-common.xml | 658 ----------------
nant.build | 175 -----
nmsprovider-amqp.config | 20 -
nmsprovider-test.config | 35 -
package.ps1 | 69 --
src/main/csharp/BaseMessage.cs | 442 -----------
src/main/csharp/BytesMessage.cs | 511 ------------
src/main/csharp/Connection.cs | 625 ---------------
src/main/csharp/ConnectionClosedException.cs | 69 --
src/main/csharp/ConnectionFactory.cs | 306 --------
src/main/csharp/ConnectionMetaData.cs | 107 ---
src/main/csharp/DefaultMessageConverter.cs | 365 ---------
src/main/csharp/Destination.cs | 279 -------
src/main/csharp/IMessageConverter.cs | 27 -
src/main/csharp/MapMessage.cs | 51 --
src/main/csharp/MessageConsumer.cs | 316 --------
src/main/csharp/MessageProducer.cs | 270 -------
src/main/csharp/ObjectMessage.cs | 90 ---
src/main/csharp/Queue.cs | 71 --
src/main/csharp/Session.cs | 659 ----------------
src/main/csharp/SessionClosedException.cs | 69 --
src/main/csharp/StreamMessage.cs | 895 ----------------------
src/main/csharp/TextMessage.cs | 67 --
src/main/csharp/Topic.cs | 72 --
src/main/ndoc/NamespaceSummary.xml | 21 -
src/main/sandcastle/feedback_content.xml | 32 -
src/test/csharp/HelloWorld/HelloWorld.cs | 119 ---
src/test/csharp/HelloWorld/app.config | 21 -
src/test/csharp/MapMessageTest.cs | 556 --------------
src/test/csharp/MessageDeliveryTest.cs | 80 --
src/test/csharp/MessageTest.cs | 789 -------------------
src/test/csharp/NMSConnectionFactoryTest.cs | 87 ---
src/test/csharp/NmsConsoleTracer.cs | 75 --
src/test/csharp/TextMessageTest.cs | 160 ----
vs2008-HelloWorld.csproj | 115 ---
vs2008-amqp-test.csproj | 127 ---
vs2008-amqp.csproj | 126 ---
vs2008-amqp.sln | 32 -
vs2010-HelloWorld.csproj | 88 ---
vs2010-amqp-test.csproj | 149 ----
vs2010-amqp.csproj | 156 ----
vs2010-amqp.sln | 32 -
46 files changed, 9229 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq-nms-amqp/blob/9122762b/Apache.NMS.AMQP.Test.nunit
----------------------------------------------------------------------
diff --git a/Apache.NMS.AMQP.Test.nunit b/Apache.NMS.AMQP.Test.nunit
deleted file mode 100644
index 1e996af..0000000
--- a/Apache.NMS.AMQP.Test.nunit
+++ /dev/null
@@ -1,7 +0,0 @@
-<NUnitProject>
- <Settings activeconfig="Default" />
- <Config name="Default" binpathtype="Auto">
- <assembly path="Apache.NMS.Test.dll" />
- <assembly path="Apache.NMS.AMQP.Test.dll" />
- </Config>
-</NUnitProject>
http://git-wip-us.apache.org/repos/asf/activemq-nms-amqp/blob/9122762b/README.txt
----------------------------------------------------------------------
diff --git a/README.txt b/README.txt
deleted file mode 100644
index 61a6a87..0000000
--- a/README.txt
+++ /dev/null
@@ -1,73 +0,0 @@
-=======================================================================
-Welcome to:
- * Apache.NMS.AMQP : Apache NMS for AMQP Client Library
-=======================================================================
-
-For more information see http://activemq.apache.org/nms
-
-=======================================================================
-Building With NAnt 0.86 see http://nant.sourceforge.net/
-=======================================================================
-
-NAnt version 0.86 or newer is required to build Apache.NMS.AMQP. Version 0.90
-or newer is highly recommended.
-To build the code using NAnt, run:
-
- nant
-
-To run the unit tests you need to run an Apache ActiveMQ Broker first then run:
-
- nant test
-
-The NMS documentation can be generated into three different formats using
-Microsoft's Sandcastle open source product. The Sandcastle Styles project
-was used to enhance the output generated from the current release of Sandcastle.
-
-The Sandcastle project is located here:
-
-http://sandcastle.codeplex.com/
-
-The Sandcastle Styles project is located here:
-
-http://sandcastlestyles.codeplex.com/
-
-To generate the documentation, run:
-
- nant sandcastle-all
-
-=======================================================================
-Building With Visual Studio 2008 (net-2.0 only)
-=======================================================================
-
-First build the project with nant, this will download and install
-all the 3rd party dependencies for you.
-
-Open the solution File. Build using "Build"->"Build Solution"
-menu option.
-
-The resulting DLLs will be in build\${framework}\debug or the
-build\${framework}\release directories depending on your settings
-under "Build"->"Configuration Manager"
-
-If you have the Resharper plugin installed in Visual Studio, you can run
-all the Unit Tests by using the "ReSharper"->"Unit Testing"->"Run All
-Tests from Solution" menu option. Please note that you must run an
-Apache ActiveMQ Broker before kicking off the unit tests. Otherwise,
-the standalone NUnit test runner can be used. NUnit version 2.5.8
-is required to build and run the unit tests.
-
-=======================================================================
-Building With Visual Studio 2010 (net-4.0 only)
-=======================================================================
-
-First build the project with nant, this will download and install
-all the 3rd party dependencies for you.
-
-Open the solution File. Build using "Build"->"Build Solution"
-menu option.
-
-The resulting DLLs will be in build\${framework}\debug or the
-build\${framework}\release directories depending on your settings
-under "Build"->"Configuration Manager"
-
-
http://git-wip-us.apache.org/repos/asf/activemq-nms-amqp/blob/9122762b/RELEASE.txt
----------------------------------------------------------------------
diff --git a/RELEASE.txt b/RELEASE.txt
deleted file mode 100644
index 158b03c..0000000
--- a/RELEASE.txt
+++ /dev/null
@@ -1,136 +0,0 @@
-=======================================================================
- * Apache.NMS.AMQP : Apache NMS for AMQP Client Library
- * Initial Release Notes
-=======================================================================
-
-1.0 Welcome
-
-Welcome to Apache NMS AMQP! This NMS Provider will connect to the AMQP
-messaging protocol. Versions Amqp1.0 and Amqp0.10 are supported. NMS
-applications using this provider may communicate with Amqp Brokers
-such as Apache ActiveMQ and Apache Qpid qpidd, and messaging
-infrastructure such as Apache Qpid Dispatch Router.
-
-2.0 Implementation Overview
-
-The AMQP Provider leverages the interop binding "Apache Qpid
-.NET Binding for C++ Messaging". The .NET Binding is an interop layer
-that connects .NET programs to the Qpid native C++ protocol engine
-libraries.
-
-The general architecture is:
-
- +----------------------------+
- | NMS Application |
- | |
- +--------------+-------------+
- |
- V
- +----------------------------+
- | NMS AMQP Provider |
- | Apache.NMS.AMQP.dll |
- +--------------+-------------+
- |
-managed V
-(.NET) +-------------------------------+
-::::::::::::::::::::::| Qpid Interop Binding |::::::::::::
-unmanaged | org.apache.qpid.messaging.dll |
-(Native Win32/64) +-------------+-----------------+
- |
- V
- +----------------------------------+
- | Qpid C++ Messaging Libraries |
- | qpid*.dll |
- +--------+--------------+----------+
- | |
- V |
- +-----------------+ |
- | Boost Libraries | |
- +--------+--------+ |
- | |
- V V
- +---------------------------------+
- | MSVC Runtime Libraries |
- +---------------------------------+
-
-
-3.0 Getting Started
-
-3.1 Installing Apache Qpid vendor files
-
-In order to use the AMQP Provider your application must have the
-Apache Qpid native and supporting libraries available on the path.
-These files are installed automatically during the nant
-installation of the Apache.Qpid vendor kit.
-
-3.2 Selecting the correct Apache Qpid vendor files
-
-The Apache Qpid vendor files are shipped in two versions:
- * .NET 2.0 Compiled with Visual Studio 2008
- * .NET 4.0 Compiled with Visual Studio 2010
-
-Each of these kits is built for the 32-bit x86 platform in both Debug
-and Release configurations. A typical kit holds:
- * The Apache Qpid interop library
- org.apache.qpid.messaging.dll
- * Apache Qpid/Proton library files
- qpid-protond.dll
- qpidclientd.dll
- qpidcommond.dll
- qpidmessagingd.dll
- qpidtypesd.dll
- * Boost library files
- boost_chrono-vc100-mt-gd-1_47.dll
- boost_date_time-vc100-mt-gd-1_47.dll
- boost_program_options-vc100-mt-gd-1_47.dll
- boost_system-vc100-mt-gd-1_47.dll
- boost_thread-vc100-mt-gd-1_47.dll
-
-3.3 Building your Application
-
-A HelloWorld application is included in the Apache.NMS.AMQP
-development tree to get users off to a quick start.
-
-This project selects:
- Visual Studio : 2010
- Configuration : Debug
- .NET Framework : 4.0
- Platform : AnyCPU
-
-HelloWorld builds and runs on both 32-bit x86 and 64-bit x64 systems
-as long as the base project is built with the AnyCPU or the x64
-Platform. The Apache Qpid subsystem will not load under .NET projects
-that specify the x64 Platform.
-
-4.0 Using the Apache.NMS.AMQP Provider
-
-4.1 Creating AMQP Connections
-
-Connections to AMQP brokers and endpoints are controlled by arguments
-to the ConnectionFactory constructor. By default connections use
-protocol "amqp1.0".
-
- Uri connecturi = new Uri("amqp:tcp:localhost:5672");
- string clientID = "abc";
- Hashtable options = new Hashtable();
- options["username"] = "guest";
- options["password"] = "secret";
- options["protocol"] = "amqp1.0"; // or "amqp0-10"
-
- IConnectionFactory factory = new
- NMSConnectionFactory(connecturi, clientID, options);
-
-In this release connection options are passed through an option table
-and not through the connect URI/URL. More information about connection
-options is available at:
-
-http://qpid.apache.org/components/programming/book/connection-options.html
-
-5.0 Future Considerations
-
- * 64-bit x64 Apache Qpid vendor kit
- * Support for more robust object message formats
- * Transactions and message durability
- * Unit test/system tests
-
-
http://git-wip-us.apache.org/repos/asf/activemq-nms-amqp/blob/9122762b/keyfile/NMSKey.snk
----------------------------------------------------------------------
diff --git a/keyfile/NMSKey.snk b/keyfile/NMSKey.snk
deleted file mode 100644
index fdd5b24..0000000
Binary files a/keyfile/NMSKey.snk and /dev/null differ
http://git-wip-us.apache.org/repos/asf/activemq-nms-amqp/blob/9122762b/nant-common.xml
----------------------------------------------------------------------
diff --git a/nant-common.xml b/nant-common.xml
deleted file mode 100644
index 55694f9..0000000
--- a/nant-common.xml
+++ /dev/null
@@ -1,658 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<project xmlns="http://nant.sourceforge.net/release/0.85/nant.xsd">
-
- <!-- ============================================================================================ -->
- <!-- P R O P E R T Y D E F I N I T I O N S -->
- <!-- ============================================================================================ -->
-
- <!-- global project settings -->
- <property name="project.cls.compliant" value="true" unless="${property::exists('project.cls.compliant')}" />
- <property name="project.release.type" value="SNAPSHOT" unless="${property::exists('project.release.type')}" />
- <property name="project.version.full" value="${project.version + if(project.release.type == 'snapshot', '-' + project.release.type, '')}" dynamic="true" />
- <property name="project.startyear" value="2005" />
- <property name="build.dir" value="${basedir}/build" />
- <property name="doc.dir" value="${build.dir}/doc" />
- <property name="lib.dir" value="${path::combine(basedir, 'lib')}" dynamic="true" />
- <property name="lib.family.dir" value="${path::combine(lib.dir, framework::get-family(framework::get-target-framework()))}" dynamic="true" />
- <property name="lib.framework.dir" value="${path::combine(lib.family.dir, version::to-string(framework::get-version(framework::get-target-framework())))}" dynamic="true" />
- <property name="package.dir" value="${basedir}/package" />
- <property name="src.package.name" value="${project.name + '-' + project.version + if(project.release.type == 'SNAPSHOT', '-' + project.release.type, '') + '-src.zip'}" />
- <property name="bin.package.name" value="${project.name + '-' + project.version + if(project.release.type == 'SNAPSHOT', '-' + project.release.type, '') + '-bin.zip'}" />
-
- <!-- default configuration -->
- <property name="build.defines" value="" />
- <property name="build.noskip" value="false" />
- <property name="build.skip" value="false" />
- <property name="build.skip.release" value="false" unless="${property::exists('build.skip.release')}" />
- <property name="download.skip" value="false" unless="${property::exists('download.skip')}"/>
- <property name="install.skip" value="false" unless="${property::exists('install.skip')}"/>
- <property name="compile.skip" value="false" unless="${property::exists('compile.skip')}" />
- <property name="current.build.config" value="${if(project.release.type == 'release', 'release', 'debug')}" overwrite="false" />
- <property name="current.build.framework" value="${framework::get-target-framework()}" overwrite="false" />
- <property name="current.build.defines" value="${build.defines}" />
- <property name="build.framework.strings" value="net-2.0,net-3.5,net-4.0,mono-2.0,mono-4.0,netcf-2.0,netcf-3.5" unless="${property::exists('build.framework.strings')}"/>
- <property name="current.build.framework.assembly.dir" value="${framework::get-assembly-directory(framework::get-target-framework())}" dynamic="true" />
-
- <property name="build.config.strings" value="${if(property::exists('configuration'), configuration, if(build.skip.release == 'true', 'debug', 'debug,release'))}" dynamic="true" />
-
- <!-- Figure out the user's HOME directory -->
- <property name="user.home" value="${environment::get-variable('HOME')}"
- if="${environment::variable-exists('HOME') and platform::is-unix()}"
- unless="${property::exists('user.home')}" />
- <property name="user.home" value="${environment::get-variable('USERPROFILE')}"
- if="${environment::variable-exists('USERPROFILE') and platform::is-windows()}"
- unless="${property::exists('user.home')}" />
- <fail message="The HOME environment variable is not defined. Please set it to your home directory."
- unless="${property::exists('user.home')}" if="${platform::is-unix()}" />
- <fail message="The USERPROFILE environment variable is not defined. Please set it to your home directory."
- unless="${property::exists('user.home')}" if="${platform::is-windows()}" />
-
- <!-- Figure out the NANT repositories -->
- <property name="nant.remote.repo" value="${environment::get-variable('NANT_REMOTE_REPO')}"
- if="${environment::variable-exists('NANT_REMOTE_REPO')}"
- unless="${property::exists('nant.remote.repo')}" />
- <property name="nant.local.repo" value="${environment::get-variable('NANT_REPO')}/local"
- if="${environment::variable-exists('NANT_REPO')}"
- unless="${property::exists('nant.local.repo')}" />
- <property name="nant.local.repo" value="${user.home}/.nant/repository/local"
- unless="${property::exists('nant.local.repo')}" />
-
- <!-- Figure out the keyfile location -->
- <property name="snk.file" value="${environment::get-variable('ACTIVEMQ_DOTNET_SNK')}"
- if="${environment::variable-exists('ACTIVEMQ_DOTNET_SNK')}"
- unless="${property::exists('snk.file')}" />
- <property name="snk.file" value="${basedir}/keyfile/NMSKey.snk"
- if="${not property::exists('snk.file')}" />
-
- <!-- ============================================================================================ -->
- <!-- I N I T I A L I Z A T I O N T A R G E T S -->
- <!-- ============================================================================================ -->
-
- <target name="init" description="Initializes build properties">
- <!-- enabled the release or debug configuration -->
- <call target="set-${current.build.config}-configuration" />
-
- <!-- Check to see if our build setup for the target framework -->
- <if test="${not(target::exists('set-'+current.build.framework+'-framework-configuration'))}">
- <fail message="The '${current.build.framework}' framework is not supported by this version of ActiveMQ .NET" />
- </if>
- <call target="set-${current.build.framework}-framework-configuration" />
-
- <!-- Check to see current platform supports the target framework -->
- <if test="${framework::exists(current.build.framework)}">
- <property name="build.skip" value="false" />
- </if>
- <if test="${not framework::exists(current.build.framework)}">
- <if test="${build.noskip}">
- <fail message="${current.build.framework.name} is not available." />
- </if>
- <if test="${not(build.noskip)}">
- <echo message="${current.build.framework.name} is not available. Build skipped." />
- <property name="build.skip" value="true" />
- </if>
- </if>
-
- <!-- Check to see if we should skip this build framework. -->
- <if test="${not(build.skip)}">
- <if test="${property::exists('build.'+current.build.framework+'.skip')}">
- <property name="build.skip" value="true" />
- <echo message="The '${current.build.framework}' framework is not supported by this version of ActiveMQ .NET" />
- </if>
- </if>
-
- <property name="current.build.keysign" value="${current.build.framework.sign}" />
- <property name="build.bin.dir" value="${build.dir}/${current.build.framework}/${current.build.config}" />
- <if test="${not(build.skip)}">
- <echo message="Doing ${if(current.build.keysign,'a signed','an unsigned')} ${current.build.config} build for the ${current.build.framework.name} framework" />
- <mkdir dir="${build.bin.dir}" />
- </if>
- <call target="dependency-init" />
- </target>
-
- <!-- Generate four-digit build number -->
- <target name="generate-build-number">
- <if test="${not property::exists('project.version.numeric')}">
- <script language="C#">
- <imports>
- <import namespace="System.Globalization" />
- <import namespace="System.Threading" />
- </imports>
- <code>
- <!-- Format for assembly revision is the number of days from the year the project 'started', property project.startyear. -->
- <![CDATA[
- public static void ScriptMain(Project project)
- {
- int startYear = Convert.ToInt32(project.Properties["project.startyear"]);
- DateTime start = new DateTime(startYear, 1, 1);
- TimeSpan ts = DateTime.Now - start;
- project.Properties["project.version.numeric"] = project.Properties["project.version"].ToString() + "." + ts.Days.ToString();
- }
- ]]>
- </code>
- </script>
- </if>
- </target>
-
- <!-- Generate assemblyinfo.cs files -->
- <target name="generate-assemblyinfo" depends="generate-build-number" description="Generate the assembly info for the path in assemblyinfo.filename">
- <asminfo output="${assemblyinfo.filename}" language="CSharp">
- <imports>
- <import namespace="System" />
- <import namespace="System.Reflection" />
- <import namespace="System.Runtime.InteropServices" />
- </imports>
- <attributes>
- <attribute type="ComVisibleAttribute" value="false" />
- <attribute type="CLSCompliantAttribute" value="${project.cls.compliant}" />
- <attribute type="AssemblyTitleAttribute" value="${project.short_description}" />
- <attribute type="AssemblyDescriptionAttribute" value="${project.description}" />
- <attribute type="AssemblyConfigurationAttribute" value="${project.release.type}" />
- <attribute type="AssemblyCompanyAttribute" value="http://activemq.apache.org/nms" />
- <attribute type="AssemblyProductAttribute" value="${project.short_description}" />
- <attribute type="AssemblyCopyrightAttribute" value="Copyright (C) ${project.startyear}-${datetime::get-year(datetime::now())} Apache Software Foundation" />
- <attribute type="AssemblyTrademarkAttribute" value="" />
- <attribute type="AssemblyCultureAttribute" value="" />
- <attribute type="AssemblyVersionAttribute" value="${project.version.numeric}" />
- <attribute type="AssemblyInformationalVersionAttribute" value="${project.version}" />
- </attributes>
- </asminfo>
- </target>
-
- <!-- ============================================================================================ -->
- <!-- C O N F I G U R A T I O N T A R G E T S -->
- <!-- ============================================================================================ -->
-
- <target name="set-noskip-configuration" description="Disable skipping builds">
- <property name="project.noskip" value="true" />
- </target>
-
- <target name="set-debug-configuration" description="Enabled 'debug' builds">
- <property name="current.build.config" value="debug" />
- <property name="current.build.config.debug" value="true" />
- <property name="current.build.config.release" value="false" />
- <property name="current.build.defines" value="${build.defines}DEBUG,TRACE," dynamic="true" />
- <property name="csc.debug" value="Full" />
- <property name="csc.optimize" value="false" />
- </target>
-
- <target name="set-release-configuration" description="Enabled 'release' builds">
- <property name="current.build.config" value="release" />
- <property name="current.build.config.release" value="true" />
- <property name="current.build.config.debug" value="false" />
- <property name="csc.debug" value="Full" />
- <property name="csc.optimize" value="true" />
- </target>
-
- <target name="set-net-2.0-framework-configuration">
- <property name="current.build.framework" value="net-2.0" />
- <property name="current.build.framework.name" value=".NET 2.0" />
- <property name="current.build.defines" value="${build.defines}NET,NET_2_0" dynamic="true" />
- <property name="current.build.framework.sign" value="true" />
- <property name="link.sdkdoc.version" value="SDK_v2_0" />
- <property name="link.sdkdoc.web" value="true" />
- <if test="${framework::exists(current.build.framework)}">
- <property name="nant.settings.currentframework" value="${current.build.framework}" />
- </if>
- <!-- Use the .NET 3.5 compiler for improved language features. Still targets same runtime. -->
- <if test="${framework::exists('net-3.5')}">
- <property name="nant.settings.currentframework" value="net-3.5" />
- </if>
- </target>
-
- <target name="set-net-3.5-framework-configuration">
- <property name="current.build.framework" value="net-3.5" />
- <property name="current.build.framework.name" value=".NET 3.5" />
- <property name="current.build.defines" value="${build.defines}NET,NET_2_0,NET_3_5" dynamic="true" />
- <property name="current.build.framework.sign" value="true" />
- <property name="link.sdkdoc.version" value="SDK_v6_1" />
- <property name="link.sdkdoc.web" value="true" />
- <if test="${framework::exists(current.build.framework)}">
- <property name="nant.settings.currentframework" value="${current.build.framework}" />
- </if>
- </target>
-
- <target name="set-net-4.0-framework-configuration">
- <property name="current.build.framework" value="net-4.0" />
- <property name="current.build.framework.name" value=".NET 4.0" />
- <property name="current.build.defines" value="${build.defines}NET,NET_2_0,NET_3_5,NET_4_0" dynamic="true" />
- <property name="current.build.framework.sign" value="true" />
- <property name="link.sdkdoc.version" value="SDK_v7_0" />
- <property name="link.sdkdoc.web" value="true" />
- <if test="${framework::exists(current.build.framework)}">
- <property name="nant.settings.currentframework" value="${current.build.framework}" />
- </if>
- </target>
-
- <target name="set-netcf-2.0-framework-configuration">
- <property name="current.build.framework" value="netcf-2.0" />
- <property name="current.build.framework.name" value=".NET Compact Framework 2.0" />
- <property name="current.build.defines" value="${build.defines}PocketPC,NETCF,NETCF_2_0" dynamic="true" />
- <property name="current.build.framework.sign" value="true" />
- <property name="link.sdkdoc.version" value="SDK_v1_1" />
- <property name="link.sdkdoc.web" value="true" />
- <if test="${framework::exists(current.build.framework)}">
- <property name="nant.settings.currentframework" value="${current.build.framework}" />
- </if>
- </target>
-
- <target name="set-netcf-3.5-framework-configuration">
- <property name="current.build.framework" value="netcf-3.5" />
- <property name="current.build.framework.name" value=".NET Compact Framework 3.5" />
- <property name="current.build.defines" value="${build.defines}PocketPC,NETCF,NETCF_3_5" dynamic="true" />
- <property name="current.build.framework.sign" value="true" />
- <property name="link.sdkdoc.version" value="SDK_v3_5" />
- <property name="link.sdkdoc.web" value="true" />
- <if test="${framework::exists(current.build.framework)}">
- <property name="nant.settings.currentframework" value="${current.build.framework}" />
- </if>
- </target>
-
- <target name="set-mono-2.0-framework-configuration">
- <property name="current.build.framework" value="mono-2.0" />
- <property name="current.build.framework.name" value="Mono 2.0" />
- <property name="current.build.defines" value="${build.defines}MONO,MONO_2_0" dynamic="true" />
- <property name="current.build.framework.sign" value="true" />
- <property name="link.sdkdoc.version" value="SDK_v1_1" />
- <property name="link.sdkdoc.web" value="true" />
- <if test="${framework::exists(current.build.framework)}">
- <property name="nant.settings.currentframework" value="${current.build.framework}" />
- </if>
- </target>
-
- <target name="set-mono-4.0-framework-configuration">
- <property name="current.build.framework" value="mono-4.0" />
- <property name="current.build.framework.name" value="Mono 4.0" />
- <property name="current.build.defines" value="${build.defines}MONO,MONO_4_0" dynamic="true" />
- <property name="current.build.framework.sign" value="true" />
- <property name="link.sdkdoc.version" value="SDK_v1_1" />
- <property name="link.sdkdoc.web" value="true" />
- <if test="${framework::exists(current.build.framework)}">
- <property name="nant.settings.currentframework" value="${current.build.framework}" />
- </if>
- </target>
-
- <!-- ============================================================================================ -->
- <!-- C O M P I L E T A R G E T S -->
- <!-- ============================================================================================ -->
-
- <target name="compile-all" description="Compile all build configurations for all runtime configurations">
- <echo message="Compiling all build configurations for all runtime configurations." />
- <foreach item="String" in="${build.framework.strings}" delim="," property="current.build.framework">
- <foreach item="String" in="${build.config.strings}" delim="," property="current.build.config">
- <call target="compile-target" />
- </foreach>
- </foreach>
- </target>
-
- <target name="compile-target" depends="init, download-vendor, conditional-compile" />
-
- <target name="conditional-compile" depends="init" unless="${build.skip or compile.skip}"
- description="Conditionaly compiles all the modules if build framework and type are supported">
- <call target="compile" />
- </target>
-
- <target name="compile" description="Compile everything">
- <call target="compile-main" cascade="false" />
- <call target="compile-test" cascade="false" />
- </target>
-
- <target name="compile-main" depends="init" description="Build the main library">
- <echo message="Building the ${project.name} library" />
- <property name="assemblyinfo.filename" value="src/main/csharp/CommonAssemblyInfo.cs" />
- <call target="generate-assemblyinfo" />
-
- <csc if="${current.build.keysign}" keyfile="${snk.file}" target="library"
- define="${current.build.defines}" warnaserror="false" debug="${csc.debug}" optimize="${csc.optimize}"
- output="${build.bin.dir}/${project.name}.dll" doc="${build.bin.dir}/${project.name}.xml">
- <nowarn>
- <warning number="1591" /> <!-- do not report warnings for missing XML comments -->
- </nowarn>
- <sources failonempty="true">
- <include name="src/main/csharp/**.cs" />
- </sources>
- <references refid="dependencies" />
- </csc>
- <csc if="${not current.build.keysign}" target="library"
- define="${current.build.defines}" warnaserror="false" debug="${csc.debug}" optimize="${csc.optimize}"
- output="${build.bin.dir}/${project.name}.dll" doc="${build.bin.dir}/${project.name}.xml">
- <nowarn>
- <warning number="1591" /> <!-- do not report warnings for missing XML comments -->
- </nowarn>
- <sources failonempty="true">
- <include name="src/main/csharp/**.cs" />
- </sources>
- <references refid="dependencies" />
- </csc>
- <call target="copy-content" />
- </target>
-
- <!-- Compile the nms-test module -->
- <target name="compile-test" depends="compile-main" description="Build the test library">
- <echo message="Building the ${project.name}.Test library" />
- <property name="assemblyinfo.filename" value="src/test/csharp/CommonAssemblyInfo.cs" />
- <call target="generate-assemblyinfo" />
-
- <csc if="${current.build.keysign}" keyfile="${snk.file}" target="library"
- define="${current.build.defines}" warnaserror="false" debug="${csc.debug}" optimize="${csc.optimize}"
- output="${build.bin.dir}/${project.name}.Test.dll" doc="${build.bin.dir}/${project.name}.Test.xml">
- <nowarn>
- <warning number="1591" /> <!-- do not report warnings for missing XML comments -->
- <warning number="3016" /> <!-- do not report warnings for array parameters -->
- </nowarn>
- <sources failonempty="true">
- <include name="src/test/csharp/**.cs" />
- </sources>
- <references refid="test.dependencies" />
- </csc>
- <csc if="${not current.build.keysign}" target="library"
- define="${current.build.defines}" warnaserror="false" debug="${csc.debug}" optimize="${csc.optimize}"
- output="${build.bin.dir}/${project.name}.Test.dll" doc="${build.bin.dir}/${project.name}.Test.xml">
- <nowarn>
- <warning number="1591" /> <!-- do not report warnings for missing XML comments -->
- <warning number="3016" /> <!-- do not report warnings for array parameters -->
- </nowarn>
- <sources failonempty="true">
- <include name="src/test/csharp/**.cs" />
- </sources>
- <references refid="test.dependencies" />
- </csc>
- <call target="copy-content" />
- </target>
-
- <target name="copy-content">
- <foreach item="File" property="content.filename">
- <in>
- <items refid="content.filenames" />
- </in>
- <do>
- <copy todir="${build.bin.dir}" file="${content.filename}" if="${not file::up-to-date(content.filename, '${build.bin.dir}/${content.filename}')}" />
- </do>
- </foreach>
- </target>
-
- <!-- ============================================================================================ -->
- <!-- I N S T A L L T A R G E T S -->
- <!-- ============================================================================================ -->
-
- <target name="install-all" description="Install all build configurations for all runtime configurations">
- <echo message="Installing all build configurations for all runtime configurations." />
- <foreach item="String" in="${build.framework.strings}" delim="," property="current.build.framework">
- <foreach item="String" in="${build.config.strings}" delim="," property="current.build.config">
- <call target="install" />
- </foreach>
- </foreach>
- </target>
-
- <!-- Install the modules to the local repo -->
- <target name="install" depends="init, compile-target, conditional-install"
- description="Install the artifacts into the nant repo" />
-
- <target name="conditional-install" unless="${build.skip or install.skip}"
- description="Install the artifacts into the nant repo">
- <property name="path" value="${project.group}/${project.name}/${project.version.full}/${current.build.framework}/${current.build.config}" />
- <foreach item="File" property="install.filename">
- <in>
- <items refid="install.filenames" />
- </in>
- <do>
- <property name="repo.task.artifact" value="${path}/${path::get-file-name(install.filename)}" />
- <property name="repo.task.src" value="${install.filename}" />
- <property name="repo.task.dest" value="${nant.local.repo}/${repo.task.artifact}" />
- <mkdir dir="${directory::get-parent-directory(repo.task.dest)}" />
- <copy file="${repo.task.src}" tofile="${repo.task.dest}" />
- </do>
- </foreach>
- </target>
-
- <!-- ============================================================================================ -->
- <!-- R E P O D O W N L O A D T A R G E T S -->
- <!-- ============================================================================================ -->
-
- <target name="download-vendor-all" description="Download vendor files for all runtime configurations">
- <echo message="Downloading vendor files for all runtime configurations." />
- <property name="current.build.config" value="release" />
- <foreach item="String" in="${build.framework.strings}" delim="," property="current.build.framework">
- <call target="download-vendor" />
- </foreach>
- </target>
-
- <target name="download-vendor" depends="vendor-init, conditional-download"
- description="Download the vendor artifacts from the nant repo" />
-
- <target name="conditional-download" unless="${build.skip or download.skip}"
- description="Download the artifacts from the nant repo">
- <!-- Iterate over the defined vendor filesets. -->
- <foreach item="String" in="${vendor.fileset.names}" delim="," property="current.vendor">
- <property name="vendor.name" value="${property::get-value(current.vendor + '.name')}" />
- <property name="vendor.group" value="${property::get-value(current.vendor + '.group')}" />
- <property name="vendor.version" value="${property::get-value(current.vendor + '.version')}" />
- <property name="vendor.filenames" value="${property::get-value(current.vendor + '.filenames')}" />
- <property name="local.repo.vendor.path" value="${nant.local.repo}/${vendor.group}/${vendor.name}/${vendor.version}/${current.build.framework}/${current.build.config}" />
- <property name="lib.path" value="lib/${vendor.name}/${current.build.framework}" />
- <!--
- Update the LIB folder with the latest version of the file. If there is a newer version
- installed in the local repository, then that version will be copied into the LIB folder.
- -->
- <foreach item="String" in="${vendor.filenames}" delim="," property="repo.task.artifact">
- <property name="lib.task.dest" value="${lib.path}/${repo.task.artifact}" />
- <mkdir dir="${directory::get-parent-directory(lib.task.dest)}" />
- <property name="repo.task.src" value="${local.repo.vendor.path}/${repo.task.artifact}" />
- <copy file="${repo.task.src}" tofile="${lib.task.dest}" if="${file::exists(repo.task.src)}" />
- <if test="${not file::exists(lib.task.dest)}">
- <echo message="Required dependent assembly ${repo.task.artifact} from ${vendor.name} for ${current.build.framework} is not available. Build skipped." />
- <property name="build.skip" value="true" />
- </if>
- </foreach>
- </foreach>
- </target>
-
- <!-- ============================================================================================ -->
- <!-- T E S T T A R G E T S -->
- <!-- ============================================================================================ -->
-
- <target name="test" depends="test-debug" description="Alias test target to test-debug" />
-
- <target name="test-all" depends="test-debug, test-release" description="Test all build configurations for all runtime configurations" />
-
- <target name="test-debug" depends="" description="Test debug build configurations for all runtime configurations">
- <property name="current.build.config" value="debug" />
- <call target="test-frameworks" />
- </target>
-
- <target name="test-release" depends="" description="Test release build configurations for all runtime configurations">
- <property name="current.build.config" value="release" />
- <call target="test-frameworks" />
- </target>
-
- <target name="test-frameworks">
- <foreach item="String" in="${build.framework.strings}" delim="," property="current.build.framework">
- <call target="init" />
- <if test="${not build.skip}">
- <exec program="nunit-console" failonerror="true" workingdir="build/${current.build.framework}/${current.build.config}">
- <arg value="${NUnit.Projectfile}" />
- <arg value="-labels" />
- <arg value="-exclude=Manual,LongRunning" />
- <arg value="-xml=Nunit.TestOutput.xml" />
- </exec>
- </if>
- </foreach>
- </target>
-
- <!-- ============================================================================================ -->
- <!-- M I S C E L L A N E O U S T A R G E T S -->
- <!-- ============================================================================================ -->
-
- <target name="build" depends="default" description="Build the project." />
-
- <target name="rebuild" depends="clean,build" description="Rebuild the project." />
-
- <target name="clean" description="Deletes build">
- <if test="${target::exists('clean-init')}">
- <call target="clean-init" />
- </if>
- <foreach item="String" in="${build.framework.strings}" delim="," property="current.build.framework">
- <foreach item="String" in="${build.config.strings}" delim="," property="current.build.config">
- <call target="clean-proj" />
- </foreach>
- </foreach>
- </target>
-
- <target name="clean-proj" depends="init" description="Deletes specific project build">
- <property name="clean.dir" value="build/${current.build.framework}/${current.build.config}" />
- <delete dir="${clean.dir}" if="${directory::exists(clean.dir)}" />
- <property name="clean.dir" value="package/${current.build.config}" />
- <delete dir="${clean.dir}" if="${directory::exists(clean.dir)}" />
- </target>
-
- <target name="package" description="Bundle the source and binary distributions.">
- <mkdir dir="${package.dir}"
- if="${not directory::exists(package.dir)}" />
- <zip zipfile="${package.dir}/${bin.package.name}">
- <fileset refid="bin.package.contents"/>
- </zip>
- <zip zipfile="${package.dir}/${src.package.name}">
- <fileset refid="src.package.contents"/>
- </zip>
- </target>
-
- <target name="doc" depends="build">
- <mkdir dir="${doc.dir}" />
- <ndoc failonerror="false">
- <assemblies basedir="${build.bin.dir}">
- <include name="${project.name}.dll" />
- </assemblies>
- <summaries basedir="${basedir}/src/main/ndoc">
- <include name="NamespaceSummary.xml" />
- </summaries>
- <documenters>
- <documenter name="MSDN">
- <property name="OutputDirectory" value="${doc.dir}" />
- <property name="HtmlHelpName" value="${project.name}" />
- <property name="HtmlHelpCompilerFilename" value="hhc.exe" />
- <property name="IncludeFavorites" value="False" />
- <property name="Title" value="${project.short_description}" />
- <property name="SplitTOCs" value="False" />
- <property name="DefaulTOC" value="" />
- <!--
- <property name="ShowVisualBasic" value="True" />
- <property name="ShowMissingSummaries" value="True" />
- <property name="ShowMissingRemarks" value="True" />
- <property name="ShowMissingParams" value="True" />
- <property name="ShowMissingReturns" value="True" />
- <property name="ShowMissingValues" value="True" />
- -->
- <property name="DocumentInternals" value="False" />
- <property name="DocumentProtected" value="True" />
- <property name="DocumentPrivates" value="False" />
- <property name="DocumentEmptyNamespaces" value="False" />
- <property name="IncludeAssemblyVersion" value="True" />
- <property name="CopyrightText" value="" />
- <property name="CopyrightHref" value="" />
- </documenter>
- </documenters>
- </ndoc>
- </target>
-
- <target name="sandcastle" depends="set-release-configuration, init, conditional-compile">
- <!-- Directories -->
- <property name="sandcastle.style" value="vs2005" unless="${property::exists('sandcastle.style')}" />
- <property name="documentation.dir" value="${build.bin.dir}" />
- <property name="bin.intern.dir" value="${build.bin.dir}" />
- <property name="bin.extern.dir" value="${basedir}\lib\NUnit\net-2.0" />
- <property name="sandcastle.dir" value="${environment::get-variable('DXROOT')}" />
- <property name="sandcastle.workingdir" value="${build.dir}\doc\${sandcastle.style}" />
- <property name="sandcastle.output.dir" value="${sandcastle.workingdir}\Output" />
-
- <!-- Executables -->
- <property name="sandcastle.mrefbuilder.exe" value="${sandcastle.dir}\productiontools\mrefbuilder.exe" />
- <property name="sandcastle.buildassembler.exe" value="${sandcastle.dir}\productiontools\buildassembler.exe" />
- <property name="sandcastle.xsltransform.exe" value="${sandcastle.dir}\productiontools\xsltransform.exe" />
- <property name="sandcastle.productiontransforms.dir" value="${sandcastle.dir}\ProductionTransforms" />
-
- <!-- Create or Cleanup Working Directory -->
- <mkdir dir="${sandcastle.workingdir}"
- if="${not directory::exists(sandcastle.workingdir)}" />
- <delete>
- <fileset basedir="${sandcastle.workingdir}">
- <include name="**\*" />
- </fileset>
- </delete>
-
- <!-- Copy configuration file, and hard code references -->
- <copy file="${sandcastle.dir}/Presentation/${sandcastle.style}/Configuration/Sandcastle.config"
- tofile="${sandcastle.workingdir}/Sandcastle.config">
- <filterchain>
- <replacestring from=""..\..\" to=""${sandcastle.dir}\" />
- <replacestring from=""..\" to=""${sandcastle.dir}\Examples\" />
- <replacestring from="".\comments.xml" to=""${documentation.dir}\${project.name}.xml" />
- <replacestring from=""%DXROOT%\Presentation\${sandcastle.style}\content\feedback_content.xml"" to=""${basedir}/src/main/sandcastle/feedback_content.xml"" />
- </filterchain>
- </copy>
-
- <!-- Run MRefBuilder (introspection on assemblies) to create basic Reflection XML -->
- <exec program="${sandcastle.mrefbuilder.exe}" workingdir="${sandcastle.workingdir}">
- <arg value="${bin.intern.dir}/${project.name}.dll" />
- <arg value="/out:reflection.int.xml" />
- <arg value="/dep:${bin.extern.dir}\*.dll" />
- </exec>
-
- <!-- Create Reflection XML -->
- <exec program="${sandcastle.xsltransform.exe}" workingdir="${sandcastle.workingdir}">
- <arg value="/xsl:"${sandcastle.productiontransforms.dir}\ApplyVSDocModel.xsl"" if="${sandcastle.style != 'prototype'}" />
- <arg value="/xsl:"${sandcastle.productiontransforms.dir}\ApplyPrototypeDocModel.xsl"" if="${sandcastle.style == 'prototype'}" />
- <arg value="/xsl:"${sandcastle.productiontransforms.dir}\AddFriendlyFilenames.xsl"" /> <!-- if="${sandcastle.style != 'prototype'}" /> -->
- <arg value="/xsl:"${sandcastle.productiontransforms.dir}\AddGuidFilenames.xsl"" if="${sandcastle.style == 'disabled'}" />
- <arg value="reflection.int.xml" />
- <arg value="/out:reflection.xml" />
- <arg value="/arg:IncludeAllMembersTopic=true" />
- <arg value="/arg:IncludeInheritedOverloadTopics=true" />
- </exec>
-
- <!-- Create Manifest (list of Topics) -->
- <exec program="${sandcastle.xsltransform.exe}" workingdir="${sandcastle.workingdir}">
- <arg value="/xsl:"${sandcastle.productiontransforms.dir}\ReflectionToManifest.xsl"" />
- <arg value="reflection.xml" />
- <arg value="/out:manifest.xml" />
- </exec>
-
- <!-- Create Output Environment -->
- <mkdir dir="${sandcastle.output.dir}" />
- <mkdir dir="${sandcastle.output.dir}/html" />
- <copy todir="${sandcastle.output.dir}">
- <fileset basedir="${sandcastle.dir}/Presentation/${sandcastle.style}">
- <include name="icons/*" />
- <include name="media/*" />
- <include name="scripts/*" />
- <include name="styles/*" />
- </fileset>
- </copy>
-
- <!-- Run BuildAssembler (create html topic files) -->
- <exec program="${sandcastle.buildassembler.exe}" workingdir="${sandcastle.workingdir}">
- <arg value="/config:Sandcastle.config" />
- <arg value="manifest.xml" />
- </exec>
- </target>
-
- <target name="sandcastle-all" description="Generate all formats of the Sandcastle documentation files.">
- <foreach item="String" in="vs2005,prototype,hana" delim="," property="sandcastle.style">
- <call target="sandcastle" />
- </foreach>
- </target>
-</project>
http://git-wip-us.apache.org/repos/asf/activemq-nms-amqp/blob/9122762b/nant.build
----------------------------------------------------------------------
diff --git a/nant.build b/nant.build
deleted file mode 100644
index 5698ffb..0000000
--- a/nant.build
+++ /dev/null
@@ -1,175 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<project name="Apache.NMS.AMQP" default="default" xmlns="http://nant.sourceforge.net/release/0.85/nant.xsd">
- <!-- ============================================================================================ -->
- <!-- I N I T I A L I Z A T I O N -->
- <!-- ============================================================================================ -->
- <property name="basedir" value="${project::get-base-directory()}" />
- <property name="project.name" value="Apache.NMS.AMQP" />
- <property name="project.group" value="org.apache.activemq" />
- <property name="project.version" value="1.8.0" unless="${property::exists('project.version')}" />
- <property name="project.release.type" value="SNAPSHOT" unless="${property::exists('project.release.type')}" />
- <property name="project.short_description" value="Apache NMS for AMQP Class Library" />
- <property name="project.description" value="Apache NMS for AMQP Class Library (.Net Messaging Library Implementation): An implementation of the NMS API for AMQP using Apache QPID and Proton" />
-
- <!-- Native Qpid DLLs -->
- <property name="boost_chrono" value="boost_chrono-${vcver}-mt-1_47.dll" dynamic="true" />
- <property name="boost_date_time" value="boost_date_time-${vcver}-mt-1_47.dll" dynamic="true" />
- <property name="boost_program_options" value="boost_program_options-${vcver}-mt-1_47.dll" dynamic="true" />
- <property name="boost_system" value="boost_system-${vcver}-mt-1_47.dll" dynamic="true" />
- <property name="boost_thread" value="boost_thread-${vcver}-mt-1_47.dll" dynamic="true" />
- <property name="qpidclient" value="qpidclient.dll" dynamic="true" />
- <property name="qpidcommon" value="qpidcommon.dll" dynamic="true" />
- <property name="qpidmessaging" value="qpidmessaging.dll" dynamic="true" />
- <property name="qpid-proton" value="qpid-proton.dll" dynamic="true" />
- <property name="qpidtypes" value="qpidtypes.dll" dynamic="true" />
-
- <!-- Repository organized as: organization/module/version/plaform/artifact, platform might be something like 'all' or 'net-2.0/release' -->
- <property name="nunit.dll" value="${basedir}/lib/NUnit/${current.build.framework}/nunit.framework.dll" dynamic="true" />
- <property name="Apache.NMS.dll" value="${basedir}/lib/Apache.NMS/${current.build.framework}/Apache.NMS.dll" dynamic="true" />
- <property name="Apache.NMS.pdb" value="${basedir}/lib/Apache.NMS/${current.build.framework}/Apache.NMS.pdb" dynamic="true" />
- <property name="Apache.NMS.Test.dll" value="${basedir}/lib/Apache.NMS/${current.build.framework}/Apache.NMS.Test.dll" dynamic="true" />
- <property name="Apache.NMS.Test.pdb" value="${basedir}/lib/Apache.NMS/${current.build.framework}/Apache.NMS.Test.pdb" dynamic="true" />
- <property name="Apache.Qpid.dll" value="${basedir}/lib/Apache.Qpid/${current.build.framework}/org.apache.qpid.messaging.dll" dynamic="true" />
- <property name="NUnit.Projectfile" value="Apache.NMS.AMQP.Test.nunit" />
-
- <!-- Skip certain frameworks, since Apache Qpid is not supported on those platforms.
- net-2.0 built by Visual Studio 2008, net4.0 built by Visual Studio 2010
- to align .NET build with underlying unmanaged C runtime. -->
- <property name="build.framework.strings" value="net-2.0,net-4.0"/>
-
- <target name="vendor-init" description="Initializes Vendor library from local repository.">
- <!--
- Vendor specific info. The prefix of 'vendor.apache.org' is taken from the property
- 'vendor.fileset.names'. This comma-delimited list is iterated, and properties with
- well-known suffixes are used to access and copy down vendor file dependencies.
- -->
- <property name="vendor.fileset.names" value="vendor.apache.org,vendor.nunit.org,vendor.qpid.apache.org" />
-
- <!-- Property grouping for 'vendor.apache.org' -->
- <property name="vendor.apache.org.name" value="Apache.NMS" />
- <property name="vendor.apache.org.group" value="org.apache.activemq" />
- <property name="vendor.apache.org.version" value="1.8.0" />
- <property name="vendor.apache.org.filenames" value="Apache.NMS.dll,Apache.NMS.pdb,Apache.NMS.Test.dll,Apache.NMS.Test.pdb" />
-
- <!-- Property grouping for 'vendor.nunit.org' -->
- <property name="vendor.nunit.org.name" value="NUnit" />
- <property name="vendor.nunit.org.group" value="org.nunit" />
- <property name="vendor.nunit.org.version" value="2.5.8" />
- <property name="vendor.nunit.org.filenames" value="nunit.framework.dll" />
-
- <!-- Property grouping for 'vendor.qpid.apache.org' -->
- <property name="vendor.qpid.apache.org.name" value="Apache.Qpid" />
- <property name="vendor.qpid.apache.org.group" value="org.apache.qpid" />
- <property name="vendor.qpid.apache.org.version" value="0.28.0.16239" />
- <!-- net-4.0 built with VS2010 (vc100), net-2.0 built with VS2008 (vc90) -->
- <property name="vcver" value="${if(current.build.framework == 'net-4.0', 'vc100', 'vc90')}" />
- <echo message="Vendor-init current.build.framework = ${current.build.framework}, current.build.config = ${current.build.config}, vcver = ${vcver}" />
-
- <property name="vendor.qpid.apache.org.filenames" value="org.apache.qpid.messaging.dll,${boost_chrono},${boost_date_time},${boost_program_options},${boost_system},${boost_thread},${qpidclient},${qpidcommon},${qpidmessaging},${qpid-proton},${qpidtypes}" dynamic="true"/>
- </target>
-
- <target name="dependency-init" description="Initializes build dependencies">
- <assemblyfileset failonempty="true" id="dependencies">
- <include name="${current.build.framework.assembly.dir}/mscorlib.dll" />
- <include name="${current.build.framework.assembly.dir}/System.dll" />
- <include name="${current.build.framework.assembly.dir}/System.Xml.dll" />
- <include name="${Apache.NMS.dll}" />
- <include name="${Apache.Qpid.dll}" />
- </assemblyfileset>
-
- <assemblyfileset failonempty="true" id="test.dependencies">
- <include name="${current.build.framework.assembly.dir}/mscorlib.dll" />
- <include name="${current.build.framework.assembly.dir}/System.dll" />
- <include name="${current.build.framework.assembly.dir}/System.Xml.dll" />
- <include name="${Apache.NMS.dll}" />
- <include name="${Apache.NMS.Test.dll}" />
- <include name="${Apache.Qpid.dll}" />
- <include name="${build.bin.dir}/${project.name}.dll" />
- <include name="${nunit.dll}" />
- </assemblyfileset>
-
- <fileset id="content.filenames">
- <include name="LICENSE.txt" />
- <include name="NOTICE.txt" />
- <include name="nmsprovider-*.config" />
- <include name="${Apache.NMS.dll}" />
- <include name="${Apache.NMS.pdb}" />
- <include name="${Apache.NMS.Test.dll}" />
- <include name="${Apache.NMS.Test.pdb}" />
- <include name="${Apache.Qpid.dll}" />
- <include name="${nunit.dll}" />
- <include name="${NUnit.Projectfile}" />
- <!-- boost unmanaged: net-2.0 -->
- <include name="${basedir}/lib/Apache.Qpid/${current.build.framework}/boost_chrono-vc90-mt-1_47.dll" />
- <include name="${basedir}/lib/Apache.Qpid/${current.build.framework}/boost_date_time-vc90-mt-1_47.dll" />
- <include name="${basedir}/lib/Apache.Qpid/${current.build.framework}/boost_program_options-vc90-mt-1_47.dll" />
- <include name="${basedir}/lib/Apache.Qpid/${current.build.framework}/boost_system-vc90-mt-1_47.dll" />
- <include name="${basedir}/lib/Apache.Qpid/${current.build.framework}/boost_thread-vc90-mt-1_47.dll" />
- <!-- boost unmanaged net-4.0 -->
- <include name="${basedir}/lib/Apache.Qpid/${current.build.framework}/boost_chrono-vc100-mt-1_47.dll" />
- <include name="${basedir}/lib/Apache.Qpid/${current.build.framework}/boost_date_time-vc100-mt-1_47.dll" />
- <include name="${basedir}/lib/Apache.Qpid/${current.build.framework}/boost_program_options-vc100-mt-1_47.dll" />
- <include name="${basedir}/lib/Apache.Qpid/${current.build.framework}/boost_system-vc100-mt-1_47.dll" />
- <include name="${basedir}/lib/Apache.Qpid/${current.build.framework}/boost_thread-vc100-mt-1_47.dll" />
- <!-- qpid native: identical names regardless of framework -->
- <include name="${basedir}/lib/Apache.Qpid/${current.build.framework}/qpid-proton.dll" />
- <include name="${basedir}/lib/Apache.Qpid/${current.build.framework}/qpidclient.dll" />
- <include name="${basedir}/lib/Apache.Qpid/${current.build.framework}/qpidcommon.dll" />
- <include name="${basedir}/lib/Apache.Qpid/${current.build.framework}/qpidmessaging.dll" />
- <include name="${basedir}/lib/Apache.Qpid/${current.build.framework}/qpidtypes.dll" />
- </fileset>
-
- <fileset id="install.filenames">
- <include name="LICENSE.txt" />
- <include name="NOTICE.txt" />
- <include name="${build.bin.dir}/${project.name}.dll" />
- <include name="${build.bin.dir}/${project.name}.pdb" />
- </fileset>
-
- </target>
-
- <target name="default" depends="install-all" />
-
- <zipfileset id="src.package.contents" basedir="${basedir}">
- <include name="LICENSE.txt" />
- <include name="NOTICE.txt" />
- <include name="nant-common.xml" />
- <include name="nant.build" />
- <include name="nmsprovider*.config" />
- <include name="vs2008-*.csproj" />
- <include name="vs2010-*.csproj" />
- <include name="vs2008-*.sln" />
- <include name="vs2010-*.sln" />
- <include name="keyfile/*" />
- <include name="src/**/*.cs" />
- <exclude name="src/sandbox/**" />
- </zipfileset>
-
- <zipfileset id="bin.package.contents" basedir="${basedir}">
- <include name="LICENSE.txt" />
- <include name="NOTICE.txt" />
- <include name="build/**/nmsprovider*" />
- <include name="build/**/${project.name}*" />
- <include name="lib/**/*" />
- <exclude name="build/**/%temp%/**" />
- </zipfileset>
-
- <!-- Load the common target definitions -->
- <include buildfile="${basedir}/nant-common.xml" />
-</project>
http://git-wip-us.apache.org/repos/asf/activemq-nms-amqp/blob/9122762b/nmsprovider-amqp.config
----------------------------------------------------------------------
diff --git a/nmsprovider-amqp.config b/nmsprovider-amqp.config
deleted file mode 100644
index a5b39a5..0000000
--- a/nmsprovider-amqp.config
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<!--
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements. See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License. You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
--->
-<configuration>
- <provider assembly="Apache.NMS.Amqp" classFactory="Apache.NMS.Amqp.ConnectionFactory"/>
-</configuration>
http://git-wip-us.apache.org/repos/asf/activemq-nms-amqp/blob/9122762b/nmsprovider-test.config
----------------------------------------------------------------------
diff --git a/nmsprovider-test.config b/nmsprovider-test.config
deleted file mode 100644
index b4fc407..0000000
--- a/nmsprovider-test.config
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<!--
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements. See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License. You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
--->
-<configuration>
- <defaultURI value="amqp:tcp://${qpidhost}:5672"/>
- <InvalidCredentials-BogusUser value="qpid:tcp://${qpidhost}:5672">
- <factoryParams>
- <param type="string" value="InvalidCredentialsTestClient"/>
- </factoryParams>
- <userName value="BogusUser"/>
- <passWord value="BogusPassword"/>
- </InvalidCredentials-BogusUser>
-
- <InvalidCredentials-AuthenticUser value="amqp:tcp://${qpidhost}:5672">
- <factoryParams>
- <param type="string" value="InvalidCredentialsTestClient"/>
- </factoryParams>
- <userName value="system"/>
- <passWord value="manager"/>
- </InvalidCredentials-AuthenticUser>
-</configuration>
http://git-wip-us.apache.org/repos/asf/activemq-nms-amqp/blob/9122762b/package.ps1
----------------------------------------------------------------------
diff --git a/package.ps1 b/package.ps1
deleted file mode 100644
index ee7a926..0000000
--- a/package.ps1
+++ /dev/null
@@ -1,69 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-$pkgname = "Apache.NMS.AMQP"
-$pkgver = "1.6-SNAPSHOT"
-$configurations = "release", "debug"
-$frameworks = "net-2.0", "net-4.0"
-
-write-progress "Creating package directory." "Initializing..."
-if(!(test-path package))
-{
- md package
-}
-
-if(test-path build)
-{
- pushd build
-
- $pkgdir = "..\package"
-
- write-progress "Packaging Application files." "Scanning..."
- $zipfile = "$pkgdir\$pkgname-$pkgver-bin.zip"
- zip -9 -u -j "$zipfile" ..\LICENSE.txt
- zip -9 -u -j "$zipfile" ..\NOTICE.txt
- foreach($configuration in $configurations)
- {
- foreach($framework in $frameworks)
- {
- zip -9 -u "$zipfile" "$framework\$configuration\$pkgname.dll"
- zip -9 -u "$zipfile" "$framework\$configuration\$pkgname.xml"
- zip -9 -u "$zipfile" "$framework\$configuration\nmsprovider*.config"
- zip -9 -u "$zipfile" "$framework\$configuration\$pkgname.Test.dll"
- zip -9 -u "$zipfile" "$framework\$configuration\$pkgname.Test.xml"
- if($framework -ieq "mono-2.0")
- {
- zip -9 -u "$zipfile" "$framework\$configuration\$pkgname.dll.mdb"
- zip -9 -u "$zipfile" "$framework\$configuration\$pkgname.Test.dll.mdb"
- }
- else
- {
- zip -9 -u "$zipfile" "$framework\$configuration\$pkgname.pdb"
- zip -9 -u "$zipfile" "$framework\$configuration\$pkgname.Test.pdb"
- }
- }
- }
-
- popd
-}
-
-write-progress "Packaging Source code files." "Scanning..."
-$pkgdir = "package"
-$zipfile = "$pkgdir\$pkgname-$pkgver-src.zip"
-
-zip -9 -u "$zipfile" LICENSE.txt NOTICE.txt nant-common.xml nant.build package.ps1 vs2008-amqp-test.csproj vs2008-amqp.csproj vs2008-amqp.sln vs2010-amqp-test.csproj vs2010-amqp.csproj vs2010-amqp.sln nmsprovider*.config
-zip -9 -u -r "$zipfile" keyfile src
-
-write-progress -Completed "Packaging" "Complete."
http://git-wip-us.apache.org/repos/asf/activemq-nms-amqp/blob/9122762b/src/main/csharp/BaseMessage.cs
----------------------------------------------------------------------
diff --git a/src/main/csharp/BaseMessage.cs b/src/main/csharp/BaseMessage.cs
deleted file mode 100644
index c2e49bc..0000000
--- a/src/main/csharp/BaseMessage.cs
+++ /dev/null
@@ -1,442 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-using System;
-using Apache.NMS.Util;
-
-namespace Apache.NMS.Amqp
-{
- public delegate void AcknowledgeHandler(BaseMessage baseMessage);
-
- public class BaseMessage : IMessage, ICloneable
- {
- private PrimitiveMap propertiesMap = new PrimitiveMap();
- private IDestination destination;
- private string correlationId;
- private TimeSpan timeToLive;
- private string messageId;
- private MsgDeliveryMode deliveryMode = MsgDeliveryMode.NonPersistent;
- private MsgPriority priority = MsgPriority.Normal;
- private Destination replyTo;
- private byte[] content;
- private string type;
- private event AcknowledgeHandler Acknowledger;
- private DateTime timestamp = new DateTime();
- private bool readOnlyMsgBody = false;
-
- public BaseMessage() { }
-
- public BaseMessage(BaseMessage copy)
- {
- this.propertiesMap = copy.propertiesMap;
- this.destination = copy.destination;
- this.correlationId = copy.correlationId;
- this.timeToLive = copy.timeToLive;
- this.messageId = copy.messageId;
- this.deliveryMode = copy.deliveryMode;
- this.priority = copy.priority;
- this.replyTo = copy.replyTo;
- this.content = copy.content;
- this.type = copy.type;
- this.Acknowledger = copy.Acknowledger;
- this.timestamp = copy.timestamp;
- this.readOnlyMsgBody = copy.readOnlyMsgBody;
- }
-
- ///
- /// <summary>
- /// Clone this object and return a new instance that the caller now owns.
- /// </summary>
- ///
- public virtual Object Clone()
- {
- return this.MemberwiseClone();
- }
-
-
- public override bool Equals(object obj)
- {
- // If parameter is null return false.
- if (obj == null)
- {
- return false;
- }
-
- // If parameter cannot be cast to BaseMessage return false.
- BaseMessage p = obj as BaseMessage;
- if ((System.Object)p == null)
- {
- return false;
- }
-
- if (propertiesMap == null ^ p.propertiesMap == null)
- {
- return false;
- }
- if (propertiesMap != null)
- {
- if (!propertiesMap.ToString().Equals(p.propertiesMap.ToString()))
- {
- return false;
- }
- }
-
- if (destination == null ^ p.destination == null)
- {
- return false;
- }
- if (destination != null)
- {
- if (!destination.ToString().Equals(p.destination.ToString()))
- {
- return false;
- }
- }
-
- if (correlationId == null ^ p.correlationId == null)
- {
- return false;
- }
- if (correlationId != null)
- {
- if (!correlationId.Equals(p.correlationId))
- {
- return false;
- }
- }
-
- if (timeToLive == null ^ p.timeToLive == null)
- {
- return false;
- }
- if (timeToLive != null)
- {
- if (!timeToLive.ToString().Equals(p.timeToLive.ToString()))
- {
- return false;
- }
- }
-
- if (messageId == null ^ p.messageId == null)
- {
- return false;
- }
- if (messageId != null)
- {
- if (!messageId.Equals(p.messageId))
- {
- return false;
- }
- }
-
- if (deliveryMode != p.deliveryMode)
- {
- return false;
- }
-
- if (priority != p.priority)
- {
- return false;
- }
-
- if (replyTo == null ^ p.replyTo == null)
- {
- return false;
- }
- if (replyTo != null)
- {
- if (!replyTo.ToString().Equals(p.replyTo.ToString()))
- {
- return false;
- }
- }
-
- if (content == null ^ p.content == null)
- {
- return false;
- }
- if (content != null)
- {
- if (!content.ToString().Equals(p.content.ToString()))
- {
- return false;
- }
- }
-
- if (type == null ^ p.type == null)
- {
- return false;
- }
- if (type != null)
- {
- if (!type.Equals(p.type))
- {
- return false;
- }
- }
-
- if (timestamp == null ^ p.timestamp == null)
- {
- return false;
- }
- if (timestamp != null)
- {
- if (!timestamp.ToString().Equals(p.timestamp.ToString()))
- {
- return false;
- }
- }
-
- if (readOnlyMsgBody != p.readOnlyMsgBody)
- {
- return false;
- }
-
- return true;
- }
-
- public override int GetHashCode()
- {
- int hashCode = 0;
-
- if(propertiesMap != null)
- {
- hashCode ^= propertiesMap.GetHashCode();
- }
-
- if(destination != null)
- {
- hashCode ^= destination.GetHashCode();
- }
-
- if(correlationId != null)
- {
- hashCode ^= correlationId.GetHashCode();
- }
-
- if(timeToLive != null)
- {
- hashCode ^= timeToLive.GetHashCode();
- }
-
- if(messageId != null)
- {
- hashCode ^= messageId.GetHashCode();
- }
-
- hashCode ^= deliveryMode.GetHashCode();
- hashCode ^= priority.GetHashCode();
-
- if(replyTo != null)
- {
- hashCode ^= replyTo.GetHashCode();
- }
-
- if(content != null)
- {
- hashCode ^= content.GetHashCode();
- }
-
- if(type != null)
- {
- hashCode ^= type.GetHashCode();
- }
-
- if(timestamp != null)
- {
- hashCode ^= timestamp.GetHashCode();
- }
-
- hashCode ^= readOnlyMsgBody.GetHashCode();
- return hashCode;
- }
-
- public bool ReadOnlyBody
- {
- get { return readOnlyMsgBody; }
- set { readOnlyMsgBody = value; }
- }
-
- // IMessage interface
-
- public void Acknowledge()
- {
- if(null != Acknowledger)
- {
- Acknowledger(this);
- }
- }
-
- /// <summary>
- /// Clears out the message body. Clearing a message's body does not clear its header
- /// values or property entries.
- ///
- /// If this message body was read-only, calling this method leaves the message body in
- /// the same state as an empty body in a newly created message.
- /// </summary>
- public virtual void ClearBody()
- {
- this.Content = null;
- this.readOnlyMsgBody = false;
- }
-
- /// <summary>
- /// Clears a message's properties.
- ///
- /// The message's header fields and body are not cleared.
- /// </summary>
- public virtual void ClearProperties()
- {
- propertiesMap.Clear();
- }
-
- // Properties
-
- public IPrimitiveMap Properties
- {
- get { return propertiesMap; }
- }
-
-
- // NMS headers
-
- /// <summary>
- /// The correlation ID used to correlate messages with conversations or long running business processes
- /// </summary>
- public string NMSCorrelationID
- {
- get { return correlationId; }
- set { correlationId = value; }
- }
-
- /// <summary>
- /// The destination of the message
- /// </summary>
- public IDestination NMSDestination
- {
- get { return destination; }
- set { destination = value; }
- }
-
- /// <summary>
- /// The time in milliseconds that this message should expire in
- /// </summary>
- public TimeSpan NMSTimeToLive
- {
- get { return timeToLive; }
- set { timeToLive = value; }
- }
-
- /// <summary>
- /// The message ID which is set by the provider
- /// </summary>
- public string NMSMessageId
- {
- get { return messageId; }
- set { messageId = value; }
- }
-
- /// <summary>
- /// Whether or not this message is persistent
- /// </summary>
- public MsgDeliveryMode NMSDeliveryMode
- {
- get { return deliveryMode; }
- set { deliveryMode = value; }
- }
-
- /// <summary>
- /// The Priority on this message
- /// </summary>
- public MsgPriority NMSPriority
- {
- get { return priority; }
- set { priority = value; }
- }
-
- /// <summary>
- /// Returns true if this message has been redelivered to this or another consumer before being acknowledged successfully.
- /// </summary>
- public bool NMSRedelivered
- {
- get { return false; }
- set { }
- }
-
-
- /// <summary>
- /// The destination that the consumer of this message should send replies to
- /// </summary>
- public IDestination NMSReplyTo
- {
- get { return replyTo; }
- set { replyTo = (Destination) value; }
- }
-
-
- /// <summary>
- /// The timestamp the broker added to the message
- /// </summary>
- public DateTime NMSTimestamp
- {
- get { return timestamp; }
- set { timestamp = value; }
- }
-
- public byte[] Content
- {
- get { return content; }
- set { this.content = value; }
- }
-
- /// <summary>
- /// The type name of this message
- /// </summary>
- public string NMSType
- {
- get { return type; }
- set { type = value; }
- }
-
-
- public object GetObjectProperty(string name)
- {
- return null;
- }
-
- public void SetObjectProperty(string name, object value)
- {
- }
-
- protected void FailIfReadOnlyBody()
- {
- if(ReadOnlyBody == true)
- {
- throw new MessageNotWriteableException("Message is in Read-Only mode.");
- }
- }
-
- protected void FailIfWriteOnlyBody()
- {
- if( ReadOnlyBody == false )
- {
- throw new MessageNotReadableException("Message is in Write-Only mode.");
- }
- }
- }
-}
-