Skip to content

Commit 2adc7c9

Browse files
author
Emile Joubert
committed
Merged default into bug23320
2 parents 6db18df + 86a2c2c commit 2adc7c9

File tree

137 files changed

+15963
-6893
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+15963
-6893
lines changed

.hgignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ rabbit\.snk$
66
^rabbit\-mock\.snk$
77

88
^scratch$
9-
^releases/
9+
^release/
1010
^build$
1111
^commit$
1212
^diff$
@@ -31,4 +31,7 @@ rabbit\.snk$
3131
^build/
3232

3333
~$
34+
[Rr]e[Ss]harper
35+
\.user$
36+
\.orig$
3437

Dist-dotnet-2.0.props.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<PropTargetFramework>v2.0</PropTargetFramework>
5+
<PropUsingMono>@USINGMONO@</PropUsingMono>
6+
<PropLaunchExe Condition="'$(PropUsingMono)' == 'true'">mono </PropLaunchExe>
57
<PropAssemblyVersion>@VERSION@</PropAssemblyVersion>
68
<PropKeyfile>$(MSBuildProjectDirectory)\..\..\..\@KEYFILE@</PropKeyfile>
79
</PropertyGroup>
810
</Project>
11+

Dist-dotnet-3.0.props.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<PropTargetFramework>v3.0</PropTargetFramework>
5-
<PropBuildWcf>true</PropBuildWcf>
5+
<PropUsingMono>@USINGMONO@</PropUsingMono>
6+
<PropLaunchExe Condition="'$(PropUsingMono)' == 'true'">mono </PropLaunchExe>
7+
<PropBuildWcf Condition="'$(PropUsingMono)' != 'true'">true</PropBuildWcf>
68
<PropAssemblyVersion>@VERSION@</PropAssemblyVersion>
79
<PropKeyfile>$(MSBuildProjectDirectory)\..\..\..\@KEYFILE@</PropKeyfile>
810
</PropertyGroup>
911
</Project>
12+

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
NAME=rabbitmq-dotnet-client
22
NAME_VSN=${NAME}-${RABBIT_VSN}
33

4-
RELEASE_DIR=releases/${NAME}/v${RABBIT_VSN}
4+
RELEASE_DIR=release
55

66
TMPXMLZIP=${NAME_VSN}-tmp-xmldoc.zip
77

@@ -17,7 +17,7 @@ dist: rabbit-vsn ensure-deliverables ensure-universally-readable
1717
rm -f $(RELEASE_DIR)/$(TMPXMLZIP)
1818

1919
ensure-universally-readable:
20-
chmod -R a+rX releases
20+
chmod -R a+rX release
2121

2222
ensure-deliverables: rabbit-vsn
2323
file ${RELEASE_DIR}/${NAME_VSN}.zip
@@ -60,3 +60,5 @@ doc: rabbit-vsn ensure-prerequisites ensure-release-dir ensure-docs
6060
rm -rf ${NAME_VSN}-wcf-htmldoc && \
6161
unzip ${NAME_VSN}-wcf-htmldoc.zip -d ${NAME_VSN}-wcf-htmldoc
6262

63+
clean:
64+
rm -rf $(RELEASE_DIR)/*

README.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
Please see http://www.rabbitmq.com/build-dotnet-client.html for build
1+
Please see http://www.rabbitmq.com/build-dotnet-client.html for build
22
instructions.
33

4-
For your convenience, a text copy of these instructions is available
5-
below. Please be aware that the instructions here may not be as up to
4+
For your convenience, a text copy of these instructions is available
5+
below. Please be aware that the instructions here may not be as up to
66
date as those at the above URL.
77

88
===========================================================================

RabbitMQDotNetClient.sln

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RabbitMQ.Client.Examples.Sh
6060
EndProject
6161
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RabbitMQ.Client.Examples.PerfTest", "projects\examples\client\PerfTest\RabbitMQ.Client.Examples.PerfTest.csproj", "{6ED176D6-B789-4673-8300-CB671962FE00}"
6262
EndProject
63+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RabbitMQ.Client.Examples.Subscriber", "projects\examples\client\Subscriber\RabbitMQ.Client.Examples.Subscriber.csproj", "{F6DF1899-A038-4DBF-86D0-0DE64F2422EC}"
64+
EndProject
6365
Global
6466
GlobalSection(SolutionConfigurationPlatforms) = preSolution
6567
Debug|Any CPU = Debug|Any CPU
@@ -192,6 +194,12 @@ Global
192194
{6ED176D6-B789-4673-8300-CB671962FE00}.DebugNoTest|Any CPU.Build.0 = Debug|Any CPU
193195
{6ED176D6-B789-4673-8300-CB671962FE00}.Release|Any CPU.ActiveCfg = Release|Any CPU
194196
{6ED176D6-B789-4673-8300-CB671962FE00}.Release|Any CPU.Build.0 = Release|Any CPU
197+
{F6DF1899-A038-4DBF-86D0-0DE64F2422EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
198+
{F6DF1899-A038-4DBF-86D0-0DE64F2422EC}.Debug|Any CPU.Build.0 = Debug|Any CPU
199+
{F6DF1899-A038-4DBF-86D0-0DE64F2422EC}.DebugNoTest|Any CPU.ActiveCfg = Debug|Any CPU
200+
{F6DF1899-A038-4DBF-86D0-0DE64F2422EC}.DebugNoTest|Any CPU.Build.0 = Debug|Any CPU
201+
{F6DF1899-A038-4DBF-86D0-0DE64F2422EC}.Release|Any CPU.ActiveCfg = Release|Any CPU
202+
{F6DF1899-A038-4DBF-86D0-0DE64F2422EC}.Release|Any CPU.Build.0 = Release|Any CPU
195203
EndGlobalSection
196204
GlobalSection(SolutionProperties) = preSolution
197205
HideSolutionNode = FALSE
@@ -219,6 +227,7 @@ Global
219227
{44D14FF0-1015-4AAA-ABCA-BF611879816C} = {78D13AD2-B1AC-442C-95C8-958D643FC40B}
220228
{8BCE15DB-C92F-4FA4-AE57-9CA73DE91EB2} = {78D13AD2-B1AC-442C-95C8-958D643FC40B}
221229
{6ED176D6-B789-4673-8300-CB671962FE00} = {78D13AD2-B1AC-442C-95C8-958D643FC40B}
230+
{F6DF1899-A038-4DBF-86D0-0DE64F2422EC} = {78D13AD2-B1AC-442C-95C8-958D643FC40B}
222231
{20E34D9F-EE72-4B55-B6FE-1D0DBE5B74CD} = {EA42A7EF-7CE6-4EDA-98EA-6675C7EF7F69}
223232
{39CA1299-1F9E-452E-AA00-4BF874944B1E} = {EA42A7EF-7CE6-4EDA-98EA-6675C7EF7F69}
224233
{201B37E1-9BFC-4A01-9760-30C5BB19CFE3} = {20E34D9F-EE72-4B55-B6FE-1D0DBE5B74CD}

dist-msi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ test "$SKIP_MSIVAL2" || SKIP_MSIVAL2=
7272
### Other, general vars
7373
NAME=rabbitmq-dotnet-client
7474
NAME_VSN=$NAME-$RABBIT_VSN
75-
RELEASE_DIR=releases/$NAME/v$RABBIT_VSN
75+
RELEASE_DIR=release
7676

7777

7878
function main {

dist.sh

Lines changed: 45 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,23 @@ CYGWIN=nontsec
6969
### Overrideable vars
7070
test "$KEYFILE" || KEYFILE=rabbit-mock.snk
7171
test "$RABBIT_VSN" || RABBIT_VSN=0.0.0
72-
test "$MSBUILD" || MSBUILD=msbuild.exe
7372
test "$WEB_URL" || WEB_URL=http://stage.rabbitmq.com/
7473
test "$UNOFFICIAL_RELEASE" || UNOFFICIAL_RELEASE=
74+
test "$MONO_DIST" || MONO_DIST=
7575

7676
### Other, general vars
7777
NAME=rabbitmq-dotnet-client
7878
NAME_VSN=$NAME-$RABBIT_VSN
79-
RELEASE_DIR=releases/$NAME/v$RABBIT_VSN
79+
RELEASE_DIR=release
80+
if [ "$MONO_DIST" ] ; then
81+
INCLUDE_WCF=true
82+
MSBUILD=xbuild
83+
DOTNET_PROGRAM_PREPEND="mono"
84+
else
85+
INCLUDE_WCF=true
86+
MSBUILD=msbuild.exe
87+
DOTNET_PROGRAM_PREPEND=
88+
fi
8089

8190

8291
function main {
@@ -117,27 +126,35 @@ function dist-zips {
117126
dist-target-framework dotnet-2.0
118127
### HTML documentation for the .NET 2.0 library dist
119128
gendoc-dist \
120-
projects/client/RabbitMQ.Client/build/bin/RabbitMQ.Client.xml \
129+
build/bin/RabbitMQ.Client.xml \
121130
$NAME_VSN-client-htmldoc.zip \
122131
"/suppress:RabbitMQ.Client.Framing.v0_8 \
123132
/suppress:RabbitMQ.Client.Framing.v0_8qpid \
124133
/suppress:RabbitMQ.Client.Framing.v0_9 \
134+
/suppress:RabbitMQ.Client.Framing.v0_9_1 \
125135
/suppress:RabbitMQ.Client.Framing.Impl.v0_8 \
126136
/suppress:RabbitMQ.Client.Framing.Impl.v0_8qpid \
127137
/suppress:RabbitMQ.Client.Framing.Impl.v0_9 \
138+
/suppress:RabbitMQ.Client.Framing.Impl.v0_9_1 \
128139
/suppress:RabbitMQ.Client.Impl \
129140
/suppress:RabbitMQ.Client.Apigen.Attributes" \
130-
$NAME_VSN-tmp-xmldoc.zip
141+
$NAME_VSN-tmp-xmldoc.zip \
142+
projects/client/RabbitMQ.Client \
143+
../../..
131144

132145
### .NET 3.0 library (bin), examples (src and bin), WCF bindings library (bin)
133-
### and WCF examples (src) dist
146+
### and WCF examples (src) dist (WCF built only if MONO_DIST is undefined)
134147
dist-target-framework dotnet-3.0
135-
### HTML documentation for the WCF bindings library dist
136-
gendoc-dist \
137-
projects/wcf/RabbitMQ.ServiceModel/build/bin/RabbitMQ.ServiceModel.xml \
138-
$NAME_VSN-wcf-htmldoc.zip \
139-
"" \
140-
""
148+
if [ -z "$MONO_DIST" ]; then
149+
### HTML documentation for the WCF bindings library dist
150+
gendoc-dist \
151+
build/bin/RabbitMQ.ServiceModel.xml \
152+
$NAME_VSN-wcf-htmldoc.zip \
153+
"" \
154+
"" \
155+
projects/wcf/RabbitMQ.ServiceModel \
156+
../../..
157+
fi
141158
}
142159

143160

@@ -187,7 +204,7 @@ function src-dist {
187204
function dist-target-framework {
188205
TARGET_FRAMEWORK="$1"
189206
BUILD_WCF=
190-
test "$TARGET_FRAMEWORK" == "dotnet-3.0" && BUILD_WCF="true"
207+
test "$TARGET_FRAMEWORK" == "dotnet-3.0" && test -z "$MONO_DIST" && BUILD_WCF="true"
191208

192209
### Make sure we can use MSBuild.Community.Tasks.dll (it might be from a
193210
### remote location)
@@ -235,8 +252,14 @@ function dist-target-framework {
235252
}
236253

237254
function gen-props {
255+
if [ "$MONO_DIST" ]; then
256+
USING_MONO="true"
257+
else
258+
USING_MONO="false"
259+
fi
238260
sed -e "s:@VERSION@:$RABBIT_VSN:g" \
239261
-e "s:@KEYFILE@:$KEYFILE:g" \
262+
-e "s:@USINGMONO@:$USING_MONO:g" \
240263
< $1 > $2
241264
}
242265

@@ -246,19 +269,25 @@ function gendoc-dist {
246269
EXTRA_NDOCPROC_ARGS="$3"
247270
### If this is an empty string, the intermediate xml output will not be saved in a zip
248271
ZIP_TMP_XML_DOC_FILENAME="$4"
272+
PROJECT_DIR="$5"
273+
RELATIVE_DIR="$6"
249274

250275
mkdir -p tmp/gendoc/xml tmp/gendoc/html
251276

252277
### Make sure we can use ndocproc (it might be from a remote location)
253278
chmod +x lib/ndocproc-bin/bin/ndocproc.exe
254279

280+
cd $PROJECT_DIR
281+
255282
### Generate XMLs with ndocproc
256-
lib/ndocproc-bin/bin/ndocproc.exe \
283+
$DOTNET_PROGRAM_PREPEND $RELATIVE_DIR/lib/ndocproc-bin/bin/ndocproc.exe \
257284
/nosubtypes \
258285
$EXTRA_NDOCPROC_ARGS \
259-
tmp/gendoc/xml \
286+
$RELATIVE_DIR/tmp/gendoc/xml \
260287
$XML_SOURCE_FILE \
261-
docs/namespaces.xml
288+
$RELATIVE_DIR/docs/namespaces.xml
289+
290+
cd $RELATIVE_DIR
262291

263292
### Zip ndocproc's output
264293
if [ "$ZIP_TMP_XML_DOC_FILENAME" ]; then
@@ -297,3 +326,4 @@ function genhtml {
297326

298327

299328
main $@
329+

docs/specs/amqp0-8.stripped.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,10 +456,18 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
456456
<field name="delivery tag" domain="delivery tag"/>
457457
<field name="requeue" type="bit"/>
458458
</method>
459-
<method name="recover" index="100">
459+
<method name="recover-async" index="100">
460460
<chassis name="server" implement="MUST"/>
461461
<field name="requeue" type="bit"/>
462462
</method>
463+
<method name="recover" synchronous="1" index="110">
464+
<response name="recover-ok"/>
465+
<chassis name="server" implement="MAY"/>
466+
<field name="requeue" domain="bit"/>
467+
</method>
468+
<method name="recover-ok" index="111">
469+
<chassis name="client" implement="MAY"/>
470+
</method>
463471
</class>
464472
<class name="file" handler="channel" index="70">
465473
<chassis name="server" implement="MAY"/>

0 commit comments

Comments
 (0)