Skip to content

Commit d89b230

Browse files
merge live into bug24543
2 parents d592f75 + c3b1acf commit d89b230

File tree

280 files changed

+10209
-2668
lines changed

Some content is hidden

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

280 files changed

+10209
-2668
lines changed

LICENSE-MPL-RabbitMQ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,8 @@ EXHIBIT A -Mozilla Public License.
446446

447447
The Original Code is RabbitMQ.
448448

449-
The Initial Developer of the Original Code is VMware, Inc.
450-
Copyright (c) 2007-2011 VMware, Inc. All rights reserved.
449+
The Initial Developer of the Original Code is GoPivotal, Inc.
450+
Copyright (c) 2007-2014 GoPivotal, Inc. All rights reserved.
451451

452452
Alternatively, the contents of this file may be used under the terms
453453
of the GNU General Public License version 2 (the "GPL2"), or

Makefile

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ GNUPG_PATH=~
77

88
WEB_URL=http://www.rabbitmq.com/
99
NEXUS_STAGE_URL=http://oss.sonatype.org/service/local/staging/deploy/maven2
10+
MAVEN_NEXUS_VERSION=1.7
1011

1112
AMQP_CODEGEN_DIR=$(shell fgrep sibling.codegen.dir build.properties | sed -e 's:sibling\.codegen\.dir=::')
1213

@@ -21,11 +22,11 @@ clean:
2122
distclean: clean
2223
make -C $(AMQP_CODEGEN_DIR) clean
2324

24-
dist: distclean srcdist dist_all
25+
dist: distclean srcdist dist_all maven-bundle
2526

2627
dist_all: dist1.5 javadoc-archive
2728

28-
maven-bundle: distclean
29+
maven-bundle:
2930
ant -Dimpl.version=$(VERSION) maven-bundle
3031

3132
dist1.5:
@@ -63,7 +64,7 @@ srcdist: distclean
6364
(cd build; zip -q -r $(SRC_ARCHIVE).zip $(SRC_ARCHIVE))
6465
(cd build; rm -rf $(SRC_ARCHIVE))
6566

66-
stage-maven-bundle: maven-bundle
67+
stage-and-promote-maven-bundle:
6768
( \
6869
cd build/bundle; \
6970
NEXUS_USERNAME=`cat $(GNUPG_PATH)/../nexus/username`; \
@@ -77,23 +78,14 @@ stage-maven-bundle: maven-bundle
7778
amqp-client-$(VERSION).jar \
7879
amqp-client-$(VERSION)-javadoc.jar \
7980
amqp-client-$(VERSION)-sources.jar && \
80-
mvn org.sonatype.plugins:nexus-maven-plugin:staging-close \
81-
-Dnexus.url=http://oss.sonatype.org \
82-
-Dnexus.username=$$NEXUS_USERNAME \
83-
-Dnexus.password=$$NEXUS_PASSWORD \
84-
-B \
85-
-Dnexus.description="Public release of $$VERSION" \
86-
)
87-
88-
promote-maven-bundle:
89-
( \
90-
NEXUS_USERNAME=`cat $(GNUPG_PATH)/../nexus/username`; \
91-
NEXUS_PASSWORD=`cat $(GNUPG_PATH)/../nexus/password`; \
92-
mvn org.sonatype.plugins:nexus-maven-plugin:staging-promote \
81+
mvn org.sonatype.plugins:nexus-maven-plugin:$(MAVEN_NEXUS_VERSION):staging-close \
82+
org.sonatype.plugins:nexus-maven-plugin:$(MAVEN_NEXUS_VERSION):staging-promote \
9383
-Dnexus.url=http://oss.sonatype.org \
9484
-Dnexus.username=$$NEXUS_USERNAME \
9585
-Dnexus.password=$$NEXUS_PASSWORD \
9686
-Dnexus.promote.autoSelectOverride=true \
9787
-DtargetRepositoryId=releases \
9888
-B \
89+
-Dnexus.description="Public release of $$VERSION" \
9990
)
91+

README-EXAMPLES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ HelloServer - Acts as an RPC server over AMQP.
6363
HelloJsonClient - Performs a simple JSON-RPC call over AMQP.
6464
HelloJsonServer - Acts as a JSON-RPC server over AMQP.
6565
LogTail - Tails the server logs.
66-
SendString - Sends a user supplied message over AMQP.
66+
SendString - Sends a user-supplied message over AMQP.
6767

6868

6969
More Complex Examples

build.xml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@
308308
</fail>
309309
</target>
310310

311-
<target name="test-suite-run" depends="test-client, test-ssl, test-server, test-functional, test-main-silent"/>
311+
<target name="test-suite-run" depends="test-client, test-ssl, test-server, test-functional, test-functional-and-server-with-ha, test-main-silent"/>
312312

313313
<target name="test-client" depends="test-build" description="Run the client test suites.">
314314
<junit printSummary="withOutAndErr"
@@ -369,6 +369,19 @@
369369
</junit>
370370
</target>
371371

372+
<!-- TODO: merge test-server, test-functional and this into one, once umbrellas have been merged -->
373+
<target name="test-functional-and-server-with-ha" depends="detect-umbrella, test-build" if="UMBRELLA_AVAILABLE">
374+
<junit printSummary="withOutAndErr"
375+
haltOnFailure="${haltOnFailureJunit}"
376+
failureproperty="test.failure"
377+
fork="yes">
378+
<classpath refid="test.classpath"/>
379+
<formatter type="plain"/>
380+
<formatter type="xml"/>
381+
<test todir="${build.out}" name="com.rabbitmq.client.test.server.HATests"/>
382+
</junit>
383+
</target>
384+
372385
<target name="test-single" depends="test-build">
373386
<junit printSummary="withOutAndErr"
374387
haltOnFailure="${haltOnFailureJunit}"

bundlorTemplate.mf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ Bundle-Name: ${bundle.name}
44
Bundle-Vendor: SpringSource
55
Bundle-Version: ${impl.version}
66
Import-Template:
7-
org.apache.commons.io.*;version="[1.4,2)",
87
javax.*;version=0

bundlorTestTemplate.mf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Bundle-Name: ${bundle.name}
44
Bundle-Vendor: SpringSource
55
Bundle-Version: ${impl.version}
66
Import-Template:
7-
org.apache.commons.io.*;version="[1.4,2)",
8-
org.apache.commons.cli.*;version="[1.2,2)",
7+
org.apache.commons.io.*;version="[1.2,2)",
8+
org.apache.commons.cli.*;version="[1.1,2)",
99
com.rabbitmq.*;version="${impl.version:[=.=.=,=.+1)}",
1010
junit.*;version="[4,5)",
1111
javax.*;version=0

codegen.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
##
1111
## The Original Code is RabbitMQ.
1212
##
13-
## The Initial Developer of the Original Code is VMware, Inc.
14-
## Copyright (c) 2007-2011 VMware, Inc. All rights reserved.
13+
## The Initial Developer of the Original Code is GoPivotal, Inc.
14+
## Copyright (c) 2007-2014 GoPivotal, Inc. All rights reserved.
1515
##
1616

1717
from __future__ import nested_scopes
@@ -142,8 +142,8 @@ def printFileHeader():
142142
//
143143
// The Original Code is RabbitMQ.
144144
//
145-
// The Initial Developer of the Original Code is VMware, Inc.
146-
// Copyright (c) 2007-2011 VMware, Inc. All rights reserved.
145+
// The Initial Developer of the Original Code is GoPivotal, Inc.
146+
// Copyright (c) 2007-2014 GoPivotal, Inc. All rights reserved.
147147
//
148148
"""
149149

@@ -264,12 +264,12 @@ def printWritePropertiesTo(c):
264264
print " if (this.%s != null) writer.write%s(this.%s);" % (jfName, jfClass, jfName)
265265
print " }"
266266

267-
def printAppendArgumentDebugStringTo(c):
267+
def printAppendPropertyDebugStringTo(c):
268268
appendList = [ "%s=\")\n .append(this.%s)\n .append(\""
269269
% (f.name, java_field_name(f.name))
270270
for f in c.fields ]
271271
print
272-
print " public void appendArgumentDebugStringTo(StringBuilder acc) {"
272+
print " public void appendPropertyDebugStringTo(StringBuilder acc) {"
273273
print " acc.append(\"(%s)\");" % (", ".join(appendList))
274274
print " }"
275275

@@ -386,7 +386,7 @@ def printSetter(fieldType, fieldName):
386386
printSetter(jType, jName)
387387

388388
printWritePropertiesTo(c)
389-
printAppendArgumentDebugStringTo(c)
389+
printAppendPropertyDebugStringTo(c)
390390
printPropertiesBuilderClass(c)
391391

392392
print " }"

nexus-upload.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -e
88
# SIGNING_KEY -- the signing key to use
99
# GNUPG_PATH -- the path to the home directory for gnupg
1010

11-
NEXUS_ROOT="http://$CREDS@oss.sonatype.org/service/local/staging/deploy/maven2/com/rabbitmq/amqp-client/$VERSION"
11+
NEXUS_ROOT="https://$CREDS@oss.sonatype.org/service/local/staging/deploy/maven2/com/rabbitmq/amqp-client/$VERSION"
1212
unset http_proxy
1313
unset https_proxy
1414
unset no_proxy

pom.xml

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -29,36 +29,8 @@
2929

3030
<developers>
3131
<developer>
32-
<id>matthias.radestock</id>
33-
<name>Matthias Radestock</name>
34-
<roles>
35-
<role>Developer</role>
36-
</roles>
37-
</developer>
38-
<developer>
39-
<id>tonyg</id>
40-
<name>Tony Garnock-Jones</name>
41-
<roles>
42-
<role>Developer</role>
43-
</roles>
44-
</developer>
45-
<developer>
46-
<id>matthew.sackman</id>
47-
<name>Matthias Sackman</name>
48-
<roles>
49-
<role>Developer</role>
50-
</roles>
51-
</developer>
52-
<developer>
53-
<id>david.maciver</id>
54-
<name>David MacIver</name>
55-
<roles>
56-
<role>Developer</role>
57-
</roles>
58-
</developer>
59-
<developer>
60-
<id>paul.jones</id>
61-
<name>Paul Jones</name>
32+
<id>rabbitmq.team</id>
33+
<name>The RabbitMQ Team</name>
6234
<roles>
6335
<role>Developer</role>
6436
</roles>
@@ -71,12 +43,14 @@
7143
<groupId>commons-cli</groupId>
7244
<artifactId>commons-cli</artifactId>
7345
<version>1.1</version>
46+
<scope>test</scope>
7447
</dependency>
7548

7649
<dependency>
7750
<groupId>commons-io</groupId>
7851
<artifactId>commons-io</artifactId>
7952
<version>1.2</version>
53+
<scope>test</scope>
8054
</dependency>
8155

8256
<dependency>

scripts/runjava.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ for d in `dirname $0`/*.jar
44
do
55
RABBIT_JARS="$d:$RABBIT_JARS"
66
done
7-
exec java -cp "$RABBIT_JARS" "$@"
7+
exec java -cp "$RABBIT_JARS" "$@"

0 commit comments

Comments
 (0)