From 9c7fb20582566d7a53a78bdca9d46f5d5b0b3fb7 Mon Sep 17 00:00:00 2001 From: Robert Gemmell Date: Wed, 6 Aug 2014 10:21:03 +0000 Subject: QPID-5048: update client release assemblies to contain the example sources, add accompanying README.txt files indicating how to build and run them. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1616149 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/java/amqp-1-0-client-jms/example/README.txt | 19 +++++++++++++++++++ .../main/assembly/qpid-amqp-1-0-client-jms-bin.xml | 11 +++++++++++ qpid/java/client/example/README.txt | 17 +++++++++++++++++ .../java/client/src/main/assembly/qpid-client-bin.xml | 11 +++++++++++ 4 files changed, 58 insertions(+) create mode 100644 qpid/java/amqp-1-0-client-jms/example/README.txt create mode 100644 qpid/java/client/example/README.txt (limited to 'qpid/java') diff --git a/qpid/java/amqp-1-0-client-jms/example/README.txt b/qpid/java/amqp-1-0-client-jms/example/README.txt new file mode 100644 index 0000000000..592e747cde --- /dev/null +++ b/qpid/java/amqp-1-0-client-jms/example/README.txt @@ -0,0 +1,19 @@ +=========================== +Running the client examples +=========================== + +Use maven to build the module, and additionally copy the dependencies +alongside their output: + + mvn clean package dependency:copy-dependencies -DincludeScope=runtime -DskipTests + +Now you can run the examples using commands of the format: + + java -cp "target/classes/:target/dependency/*" org.apache.qpid.amqp_1_0.jms.example.Hello + +NOTE: This example requires that you first create a queue named "queue" on your broker. + + +NOTE: The earlier build command will cause Maven to resolve the client artifact +dependencies against its local and remote repositories. If you wish to use a +locally-built client, ensure to install it in your local maven repo first. diff --git a/qpid/java/amqp-1-0-client-jms/src/main/assembly/qpid-amqp-1-0-client-jms-bin.xml b/qpid/java/amqp-1-0-client-jms/src/main/assembly/qpid-amqp-1-0-client-jms-bin.xml index 264d815032..7f4dbf6a3a 100644 --- a/qpid/java/amqp-1-0-client-jms/src/main/assembly/qpid-amqp-1-0-client-jms-bin.xml +++ b/qpid/java/amqp-1-0-client-jms/src/main/assembly/qpid-amqp-1-0-client-jms-bin.xml @@ -18,6 +18,17 @@ 0644 0755 + + ${basedir}/example + example + + src/** + pom.xml + README.txt + + 0644 + 0755 + diff --git a/qpid/java/client/example/README.txt b/qpid/java/client/example/README.txt new file mode 100644 index 0000000000..36e4351a51 --- /dev/null +++ b/qpid/java/client/example/README.txt @@ -0,0 +1,17 @@ +=========================== +Running the client examples +=========================== + +Use maven to build the module, and additionally copy the dependencies +alongside their output: + + mvn clean package dependency:copy-dependencies -DincludeScope=runtime -DskipTests + +Now you can run the examples using commands of the format: + + java -cp "target/classes/:target/dependency/*" org.apache.qpid.example.Hello + + +NOTE: The earlier build command will cause Maven to resolve the client artifact +dependencies against its local and remote repositories. If you wish to use a +locally-built client, ensure to install it in your local maven repo first. diff --git a/qpid/java/client/src/main/assembly/qpid-client-bin.xml b/qpid/java/client/src/main/assembly/qpid-client-bin.xml index 08762950fd..374ba395fc 100644 --- a/qpid/java/client/src/main/assembly/qpid-client-bin.xml +++ b/qpid/java/client/src/main/assembly/qpid-client-bin.xml @@ -18,6 +18,17 @@ 0644 0755 + + ${basedir}/example + example + + src/** + pom.xml + README.txt + + 0644 + 0755 + -- cgit v1.2.1