From cc4c4be4b6b7c4a4fdfe22de9d9f40974f7d6971 Mon Sep 17 00:00:00 2001 From: Lahiru Gunathilake Date: Tue, 7 Oct 2008 09:07:34 +0000 Subject: committing qpid-cli for the first time. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@702402 13f79535-47bb-0310-9956-ffa450edef68 --- java/management/tools/qpid-cli/bin/qpid-cli | 34 +++++++++++++++++++++++++ java/management/tools/qpid-cli/bin/qpid-cli.bat | 27 ++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100755 java/management/tools/qpid-cli/bin/qpid-cli create mode 100755 java/management/tools/qpid-cli/bin/qpid-cli.bat (limited to 'java/management/tools/qpid-cli/bin') diff --git a/java/management/tools/qpid-cli/bin/qpid-cli b/java/management/tools/qpid-cli/bin/qpid-cli new file mode 100755 index 0000000000..ca1d55c696 --- /dev/null +++ b/java/management/tools/qpid-cli/bin/qpid-cli @@ -0,0 +1,34 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# set classpath to using jar files +for f in $QPID_CLI/lib/*.jar +do + CLASSPATH=$CLASSPATH:$f +done +export CLASSPATH + + + +export CLASSPATH=$CLASSPATH:$QPID_CLI/build/main/classes/ +echo $CLASSPATH + + + +java -classpath $CLASSPATH org.apache.qpid.CommandLineInterpreter $@ diff --git a/java/management/tools/qpid-cli/bin/qpid-cli.bat b/java/management/tools/qpid-cli/bin/qpid-cli.bat new file mode 100755 index 0000000000..fe83b01184 --- /dev/null +++ b/java/management/tools/qpid-cli/bin/qpid-cli.bat @@ -0,0 +1,27 @@ +@REM +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM http://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. +@REM +set CLASSPATH=%CLASSPATH%;%QPID_CLI%/lib/jline-0.9.94.jar +set CLASSPATH=%CLASSPATH%;%QPID_CLI%/lib/junit-4.4.jar +set CLASSPATH=%CLASSPATH%;%QPID_CLI%/lib/qpid-cli-1.0.jar +set CLASSPATH=%CLASSPATH%;%QPID_CLI%/build/main/classes/ +java -classpath %CLASSPATH% org.apache.qpid.CommandLineInterpreter %1 + + + + -- cgit v1.2.1