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/tools/bin/run-pub | |
| 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/tools/bin/run-pub')
| -rwxr-xr-x | java/tools/bin/run-pub | 8 |
1 files changed, 6 insertions, 2 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 |
