Tag as RC1 for 1.2.0
Project: http://git-wip-us.apache.org/repos/asf/activemq-nms-msmq/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-nms-msmq/commit/e964b541 Tree: http://git-wip-us.apache.org/repos/asf/activemq-nms-msmq/tree/e964b541 Diff: http://git-wip-us.apache.org/repos/asf/activemq-nms-msmq/diff/e964b541 Branch: refs/heads/1.4.x Commit: e964b541a0254873178d9fbd52f185cd2e90d386 Parents: 4ad4e5f Author: Timothy A. Bish <[email protected]> Authored: Tue Nov 24 16:14:05 2009 +0000 Committer: Timothy A. Bish <[email protected]> Committed: Tue Nov 24 16:14:05 2009 +0000 ---------------------------------------------------------------------- tags/1.2.0-RC1/Apache.NMS.MSMQ.Test.nunit | 7 + tags/1.2.0-RC1/LICENSE.txt | 764 ++++++++++++++++ tags/1.2.0-RC1/NOTICE.txt | 12 + tags/1.2.0-RC1/README.txt | 42 + tags/1.2.0-RC1/keyfile/NMSKey.snk | Bin 0 -> 596 bytes tags/1.2.0-RC1/nant-common.xml | 602 +++++++++++++ tags/1.2.0-RC1/nant.build | 111 +++ tags/1.2.0-RC1/nmsprovider-test.config | 26 + tags/1.2.0-RC1/package.ps1 | 67 ++ tags/1.2.0-RC1/src/main/csharp/BaseMessage.cs | 214 +++++ tags/1.2.0-RC1/src/main/csharp/BytesMessage.cs | 511 +++++++++++ tags/1.2.0-RC1/src/main/csharp/Connection.cs | 216 +++++ .../src/main/csharp/ConnectionFactory.cs | 119 +++ .../src/main/csharp/ConnectionMetaData.cs | 107 +++ .../src/main/csharp/DefaultMessageConverter.cs | 267 ++++++ tags/1.2.0-RC1/src/main/csharp/Destination.cs | 148 +++ .../src/main/csharp/IMessageConverter.cs | 34 + tags/1.2.0-RC1/src/main/csharp/MapMessage.cs | 33 + .../src/main/csharp/MessageConsumer.cs | 231 +++++ .../src/main/csharp/MessageProducer.cs | 276 ++++++ tags/1.2.0-RC1/src/main/csharp/ObjectMessage.cs | 94 ++ tags/1.2.0-RC1/src/main/csharp/Queue.cs | 60 ++ tags/1.2.0-RC1/src/main/csharp/Session.cs | 247 +++++ tags/1.2.0-RC1/src/main/csharp/StreamMessage.cs | 893 +++++++++++++++++++ tags/1.2.0-RC1/src/main/csharp/TextMessage.cs | 101 +++ .../src/main/ndoc/NamespaceSummary.xml | 21 + .../src/main/sandcastle/feedback_content.xml | 32 + tags/1.2.0-RC1/src/test/csharp/MSMQTest.cs | 120 +++ tags/1.2.0-RC1/vs2008-msmq-test.csproj | 121 +++ tags/1.2.0-RC1/vs2008-msmq.csproj | 114 +++ tags/1.2.0-RC1/vs2008-msmq.sln | 30 + 31 files changed, 5620 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-nms-msmq/blob/e964b541/tags/1.2.0-RC1/Apache.NMS.MSMQ.Test.nunit ---------------------------------------------------------------------- diff --git a/tags/1.2.0-RC1/Apache.NMS.MSMQ.Test.nunit b/tags/1.2.0-RC1/Apache.NMS.MSMQ.Test.nunit new file mode 100644 index 0000000..3b29e26 --- /dev/null +++ b/tags/1.2.0-RC1/Apache.NMS.MSMQ.Test.nunit @@ -0,0 +1,7 @@ +<NUnitProject> + <Settings activeconfig="Default" /> + <Config name="Default" binpathtype="Auto"> + <assembly path="Apache.NMS.MSMQ.Test.dll" /> + <assembly path="Apache.NMS.Test.dll" /> + </Config> +</NUnitProject> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq-nms-msmq/blob/e964b541/tags/1.2.0-RC1/LICENSE.txt ---------------------------------------------------------------------- diff --git a/tags/1.2.0-RC1/LICENSE.txt b/tags/1.2.0-RC1/LICENSE.txt new file mode 100755 index 0000000..e52ce5d --- /dev/null +++ b/tags/1.2.0-RC1/LICENSE.txt @@ -0,0 +1,764 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed 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. + +APACHE ACTIVEMQ DEPENDENCIES: + +The Apache ActiveMQ message broker includes a number of dependencies, many +of them optional, with separate copyright notices and license terms. Your +use of the source code for the these subcomponents is subject to the terms +and conditions of the following licenses. + +For the backport-util-concurrent library: + +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> +<html><head><title>Creative Commons Public Domain</title> + +<body> + +<p align="center"><em>Copyright-Only Dedication (based on United States law) or Public Domain Certification</em></p> + + <p>The +person or persons who have associated work with this document (the +"Dedicator" or "Certifier") hereby either (a) certifies that, to the +best of his knowledge, the work of authorship identified is in the +public domain of the country from which the work is published, or (b) +hereby dedicates whatever copyright the dedicators holds in the work of +authorship identified below (the "Work") to the public domain. A +certifier, morever, dedicates any copyright interest he may have in the +associated work, and for these purposes, is described as a "dedicator" +below.</p> + + <p>A certifier has taken reasonable steps to verify +the copyright status of this work. Certifier recognizes that his good +faith efforts may not shield him from liability if in fact the work +certified is not in the public domain.</p> + + <p>Dedicator makes +this dedication for the benefit of the public at large and to the +detriment of the Dedicator's heirs and successors. Dedicator intends +this dedication to be an overt act of relinquishment in perpetuity of +all present and future rights under copyright law, whether vested or +contingent, in the Work. Dedicator understands that such relinquishment +of all rights includes the relinquishment of all rights to enforce (by +lawsuit or otherwise) those copyrights in the Work.</p> + + <p>Dedicator +recognizes that, once placed in the public domain, the Work may be +freely reproduced, distributed, transmitted, used, modified, built +upon, or otherwise exploited by anyone for any purpose, commercial or +non-commercial, and in any way, including by methods that have not yet +been invented or conceived.</p> + </div> +</div> +</body></html> + +For the mx4j, mx4j-remote, and mx4j-tools library: + + The MX4J License, Version 1.0 + + Copyright (c) 2001-2004 by the MX4J contributors. All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + + 3. The end-user documentation included with the redistribution, + if any, must include the following acknowledgment: + "This product includes software developed by the + MX4J project (http://mx4j.sourceforge.net)." + Alternately, this acknowledgment may appear in the software itself, + if and wherever such third-party acknowledgments normally appear. + + 4. The name "MX4J" must not be used to endorse or promote + products derived from this software without prior written + permission. + For written permission, please contact + biorn_steedom [at] users [dot] sourceforge [dot] net + + 5. Products derived from this software may not be called "MX4J", + nor may "MX4J" appear in their name, without prior written + permission of Simone Bordet. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE MX4J CONTRIBUTORS + BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + ==================================================================== + + This software consists of voluntary contributions made by many + individuals on behalf of the MX4J project. For more information on + MX4J, please see + <a href="http://mx4j.sourceforge.net" target="_top">the MX4J website</a>. + +For the jetty and jetty-util library: + + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed 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. + +For the xmlpull library: + +XMLPULL API IS FREE +------------------- + +All of the XMLPULL API source code, compiled code, and documentation +contained in this distribution *except* for tests (see separate LICENSE_TESTS.txt) +are in the Public Domain. + +XMLPULL API comes with NO WARRANTY or guarantee of fitness for any purpose. + +Initial authors: + + Stefan Haustein + Aleksander Slominski + +2001-12-12 + +For the spring library: + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed 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. + +For the xstream library: + +(BSD Style License) + +Copyright (c) 2003-2004, Joe Walnes +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright notice, this list of +conditions and the following disclaimer. Redistributions in binary form must reproduce +the above copyright notice, this list of conditions and the following disclaimer in +the documentation and/or other materials provided with the distribution. + +Neither the name of XStream nor the names of its contributors may be used to endorse +or promote products derived from this software without specific prior written +permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT +SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY +WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. http://git-wip-us.apache.org/repos/asf/activemq-nms-msmq/blob/e964b541/tags/1.2.0-RC1/NOTICE.txt ---------------------------------------------------------------------- diff --git a/tags/1.2.0-RC1/NOTICE.txt b/tags/1.2.0-RC1/NOTICE.txt new file mode 100644 index 0000000..6860153 --- /dev/null +++ b/tags/1.2.0-RC1/NOTICE.txt @@ -0,0 +1,12 @@ +========================================================================= +== NOTICE file corresponding to the section 4 d of == +== the Apache License, Version 2.0, == +== in this case for the Apache ActiveMQ distribution. == +========================================================================= + +Apache ActiveMQ +Copyright 2005-2006 The Apache Software Foundation + +This product includes software developed by +The Apache Software Foundation (http://www.apache.org/). + http://git-wip-us.apache.org/repos/asf/activemq-nms-msmq/blob/e964b541/tags/1.2.0-RC1/README.txt ---------------------------------------------------------------------- diff --git a/tags/1.2.0-RC1/README.txt b/tags/1.2.0-RC1/README.txt new file mode 100644 index 0000000..9a01bb8 --- /dev/null +++ b/tags/1.2.0-RC1/README.txt @@ -0,0 +1,42 @@ +======================================================================= +Welcome to: + * Apache.NMS.MSMQ : Apache NMS for MSMQ Class Library +======================================================================= + +For more information see http://activemq.apache.org/nms + +======================================================================= +Building With NAnt 0.86-Beta2 http://nant.sourceforge.net/ +======================================================================= + +A recent nightly build of the NAnt 0.86 beta 2 is required to build Apache.NMS. +To build the code using NAnt type + + nant + +To run the unit tests you need to run an Apache ActiveMQ Broker first then type + + nant test + +To generate the documentation type + + nant doc + + +======================================================================= +Building With Visual Stuido 2008 +======================================================================= + +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 bin\Debug or the bin\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. http://git-wip-us.apache.org/repos/asf/activemq-nms-msmq/blob/e964b541/tags/1.2.0-RC1/keyfile/NMSKey.snk ---------------------------------------------------------------------- diff --git a/tags/1.2.0-RC1/keyfile/NMSKey.snk b/tags/1.2.0-RC1/keyfile/NMSKey.snk new file mode 100644 index 0000000..fdd5b24 Binary files /dev/null and b/tags/1.2.0-RC1/keyfile/NMSKey.snk differ http://git-wip-us.apache.org/repos/asf/activemq-nms-msmq/blob/e964b541/tags/1.2.0-RC1/nant-common.xml ---------------------------------------------------------------------- diff --git a/tags/1.2.0-RC1/nant-common.xml b/tags/1.2.0-RC1/nant-common.xml new file mode 100644 index 0000000..c5797dc --- /dev/null +++ b/tags/1.2.0-RC1/nant-common.xml @@ -0,0 +1,602 @@ +<?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" /> + + <!-- 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="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,mono-2.0,netcf-2.0" 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}/${nant.settings.currentframework}/${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-1.1-framework-configuration"> + <property name="current.build.framework" value="net-1.1" /> + <property name="current.build.framework.name" value=".NET 1.1" /> + <property name="current.build.defines" value="${build.defines}NET,NET_1_1" dynamic="true" /> + <property name="current.build.framework.sign" value="false" /> + <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-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> + </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-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="false" /> + <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-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> + + <!-- ============================================================================================ --> + <!-- 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 --> + </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 --> + </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}" + 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}" + 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.name} 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="-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> + <delete dir="build" if="${directory::exists('build')}" /> + <delete dir="obj" if="${directory::exists('obj')}" /> + <delete dir="package" if="${directory::exists('package')}" /> + </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}\vendor\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-msmq/blob/e964b541/tags/1.2.0-RC1/nant.build ---------------------------------------------------------------------- diff --git a/tags/1.2.0-RC1/nant.build b/tags/1.2.0-RC1/nant.build new file mode 100644 index 0000000..2340914 --- /dev/null +++ b/tags/1.2.0-RC1/nant.build @@ -0,0 +1,111 @@ +<?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.MSMQ" 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.MSMQ" /> + <property name="project.group" value="org.apache.activemq" /> + <property name="project.version" value="1.2.0" unless="${property::exists('project.version')}" /> + <property name="project.release.type" value="RC" unless="${property::exists('project.release.type')}" /> + <property name="project.short_description" value="Apache NMS for MSMQ Class Library" /> + <property name="project.description" value="Apache NMS for MSMQ Class Library (.Net Messaging Library Implementation): An implementation of the NMS API for MSMQ" /> + + <!-- 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="nunit.extensions.dll" value="${basedir}/lib/NUnit/${current.build.framework}/nunit.framework.extensions.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="NUnit.Projectfile" value="Apache.NMS.MSMQ.Test.nunit" /> + + <!-- Skip certain frameworks, since MSMQ is not supported on those platforms. --> + <property name="build.netcf-2.0.skip" value="true" /> + <property name="build.mono-2.0.skip" value="true" /> + + <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" /> + + <!-- 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.2.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.4.8" /> + <property name="vendor.nunit.org.filenames" value="nunit.framework.dll,nunit.framework.extensions.dll" /> + </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="${current.build.framework.assembly.dir}/System.Messaging.dll" /> + <include name="${Apache.NMS.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="${current.build.framework.assembly.dir}/System.Messaging.dll" /> + <include name="${Apache.NMS.dll}" /> + <include name="${Apache.NMS.Test.dll}" /> + <include name="${build.bin.dir}/${project.name}.dll" /> + <include name="${nunit.dll}" /> + <include name="${nunit.extensions.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="${nunit.dll}" /> + <include name="${nunit.extensions.dll}" /> + <include name="${NUnit.Projectfile}" /> + </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" /> + + <!-- Load the common target definitions --> + <include buildfile="${basedir}/nant-common.xml" /> +</project>
