qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raj...@apache.org
Subject svn commit: r1152413 - in /qpid/trunk/qpid/java/tools/bin: run-pub run-sub
Date Sat, 30 Jul 2011 02:22:44 GMT
Author: rajith
Date: Sat Jul 30 02:22:43 2011
New Revision: 1152413

URL: http://svn.apache.org/viewvc?rev=1152413&view=rev
Log:
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.

Modified:
    qpid/trunk/qpid/java/tools/bin/run-pub
    qpid/trunk/qpid/java/tools/bin/run-sub

Modified: qpid/trunk/qpid/java/tools/bin/run-pub
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/tools/bin/run-pub?rev=1152413&r1=1152412&r2=1152413&view=diff
==============================================================================
--- qpid/trunk/qpid/java/tools/bin/run-pub (original)
+++ qpid/trunk/qpid/java/tools/bin/run-pub Sat Jul 30 02:22:43 2011
@@ -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

Modified: qpid/trunk/qpid/java/tools/bin/run-sub
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/tools/bin/run-sub?rev=1152413&r1=1152412&r2=1152413&view=diff
==============================================================================
--- qpid/trunk/qpid/java/tools/bin/run-sub (original)
+++ qpid/trunk/qpid/java/tools/bin/run-sub Sat Jul 30 02:22:43 2011
@@ -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
 



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message