From 5a9bf98b6c256657d6a1fb5cd1140b6bb1574234 Mon Sep 17 00:00:00 2001 From: Steve Harris Date: Sat, 4 May 2013 20:04:16 -0700 Subject: [PATCH] Some changes to automatically build a kit with samples. --- examples/bin/run_example_server.sh | 1 + services/pom.xml | 2 -- services/src/assembly/assembly.xml | 49 ++++++++++++++++++++++++------ 3 files changed, 40 insertions(+), 12 deletions(-) diff --git a/examples/bin/run_example_server.sh b/examples/bin/run_example_server.sh index bc7da9269dc..f012d7d0503 100755 --- a/examples/bin/run_example_server.sh +++ b/examples/bin/run_example_server.sh @@ -55,6 +55,7 @@ JAVA_ARGS="${JAVA_ARGS} -Ddruid.realtime.specFile=${SPEC_FILE}" DRUID_CP=${EXAMPLE_LOC} DRUID_CP=${DRUID_CP}:../config DRUID_CP=${DRUID_CP}:`ls ../target/druid-examples-*-selfcontained.jar` +DRUID_CP=${DRUID_CP}:`ls ./lib/druid-examples-*-selfcontained.jar` echo "Running command:" diff --git a/services/pom.xml b/services/pom.xml index 3926cbe986a..2ac0e7ac9d7 100644 --- a/services/pom.xml +++ b/services/pom.xml @@ -63,7 +63,6 @@ - diff --git a/services/src/assembly/assembly.xml b/services/src/assembly/assembly.xml index 967ed9b2614..6e0b675801d 100644 --- a/services/src/assembly/assembly.xml +++ b/services/src/assembly/assembly.xml @@ -2,20 +2,49 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> bin - - dir - - false + + tar.gz + - src/bin + ../examples/config - *.sh + * - 0644 + config - / + ../examples/bin + + *sh + + 744 + / + + + ../examples/target + + druid-examples-*-selfcontained.jar + + lib + + + ../examples/bin/examples + + ** + + examples + + + ../examples/bin/examples/twitter + + *sh + + 744 + examples/twitter + + + ../ LICENSE @@ -25,7 +54,7 @@ true true - lib/ + lib - \ No newline at end of file +