summaryrefslogtreecommitdiff
path: root/qpid/java/client
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/java/client')
-rw-r--r--qpid/java/client/example/README.txt17
-rw-r--r--qpid/java/client/src/main/assembly/qpid-client-bin.xml11
2 files changed, 28 insertions, 0 deletions
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 @@
<fileMode>0644</fileMode>
<directoryMode>0755</directoryMode>
</fileSet>
+ <fileSet>
+ <directory>${basedir}/example</directory>
+ <outputDirectory>example</outputDirectory>
+ <includes>
+ <include>src/**</include>
+ <include>pom.xml</include>
+ <include>README.txt</include>
+ </includes>
+ <fileMode>0644</fileMode>
+ <directoryMode>0755</directoryMode>
+ </fileSet>
</fileSets>
<dependencySets>
<dependencySet>