diff options
author | Rajith Muditha Attapattu <rajith@apache.org> | 2011-07-30 02:22:43 +0000 |
---|---|---|
committer | Rajith Muditha Attapattu <rajith@apache.org> | 2011-07-30 02:22:43 +0000 |
commit | d6733e7ec196ed60fcc2039cf1eafc25cf48fbb6 (patch) | |
tree | 4c472992697d5958699717b5b200fd575147b44c /java | |
parent | 2ad056ccb7801606e92778566159c23127125ed3 (diff) | |
download | qpid-python-d6733e7ec196ed60fcc2039cf1eafc25cf48fbb6.tar.gz |
QPID-3358 Modified the run-sub and run-pub scripts to allow program args in addition to jvm args.
This allows scripts to pass on varios arguments like a script specific prefix and other arguments that should be private to a particular connection rather than the entire jvm.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1152413 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
-rwxr-xr-x | java/tools/bin/run-pub | 8 | ||||
-rwxr-xr-x | java/tools/bin/run-sub | 11 |
2 files changed, 15 insertions, 4 deletions
diff --git a/java/tools/bin/run-pub b/java/tools/bin/run-pub index 1af58eede3..9efe58c4b8 100755 --- a/java/tools/bin/run-pub +++ b/java/tools/bin/run-pub @@ -20,5 +20,9 @@ . check-qpid-java-env -echo "$@" -$JAVA -cp $CLASSPATH $LOG_CONFIG $JAVA_MEM $@ org.apache.qpid.tools.PerfProducer +JVM_ARGS="$1" +PROGRAM_ARGS="$2" + +echo "JVM ARGS : $JAVA_MEM $JVM_ARGS" +echo "PROGRAM ARGS : $PROGRAM_ARGS" +$JAVA -cp $CLASSPATH $LOG_CONFIG $JAVA_MEM $JVM_ARGS org.apache.qpid.tools.PerfProducer $PROGRAM_ARGS diff --git a/java/tools/bin/run-sub b/java/tools/bin/run-sub index e9eea5197e..8449563f7f 100755 --- a/java/tools/bin/run-sub +++ b/java/tools/bin/run-sub @@ -20,6 +20,13 @@ . check-qpid-java-env -echo "$@" -$JAVA -cp $CLASSPATH $LOG_CONFIG $JAVA_MEM $@ org.apache.qpid.tools.PerfConsumer +echo "All args $@" + +JVM_ARGS="$1" +PROGRAM_ARGS="$2" + +echo "JVM ARGS : $JAVA_MEM $JVM_ARGS" +echo "PROGRAM ARGS : $PROGRAM_ARGS" + +$JAVA -cp $CLASSPATH $LOG_CONFIG $JAVA_MEM $JVM_ARGS org.apache.qpid.tools.PerfConsumer $PROGRAM_ARGS |