From 0a0baee45ebcff44635907d457c4ff6810b09c87 Mon Sep 17 00:00:00 2001 From: Alex Rudyy Date: Wed, 15 Apr 2015 09:47:28 +0000 Subject: QPID-6481: Move java source tree to top level git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1673693 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/java/common/bin/qpid-jaddr | 33 ----- qpid/java/common/bin/qpid-run | 262 ---------------------------------------- 2 files changed, 295 deletions(-) delete mode 100755 qpid/java/common/bin/qpid-jaddr delete mode 100755 qpid/java/common/bin/qpid-run (limited to 'qpid/java/common/bin') diff --git a/qpid/java/common/bin/qpid-jaddr b/qpid/java/common/bin/qpid-jaddr deleted file mode 100755 index 5c8efa069d..0000000000 --- a/qpid/java/common/bin/qpid-jaddr +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env 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. -# - -if [ -z "$QPID_HOME" ]; then - export QPID_HOME=$(dirname $(dirname $(readlink -f $0))) - export PATH=${PATH}:${QPID_HOME}/bin -fi - -# Set classpath to include Qpid jars -QPID_LIBS="$QPID_HOME/lib/*" - -# Set other variables used by the qpid-run script before calling -export JAVA=java \ - QPID_CLASSPATH=$QPID_LIBS - -. qpid-run org.apache.qpid.messaging.util.JAddr "$@" diff --git a/qpid/java/common/bin/qpid-run b/qpid/java/common/bin/qpid-run deleted file mode 100755 index 7e8d4c92c5..0000000000 --- a/qpid/java/common/bin/qpid-run +++ /dev/null @@ -1,262 +0,0 @@ -#!/usr/bin/env 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. -# - -# Test if we're running on cygwin. -cygwin=false -if [[ "$(uname -a | fgrep Cygwin)" != "" ]]; then - cygwin=true -fi - -die() { - if [[ $1 = -usage ]]; then - shift - usage=true - else - usage=false - fi - echo "$@" - $usage && echo - $usage && usage - exit 1 -} - -OFF=0 -WARN=1 -INFO=2 - -if [ -z "$QPID_RUN_LOG" ]; then - QPID_RUN_LOG=$OFF -fi - -log() { - if [ "$1" -le "$QPID_RUN_LOG" ]; then - shift - echo "$@" - fi -} - -if [ -z $AMQJ_LOGGING_LEVEL ]; then - export AMQJ_LOGGING_LEVEL=info -fi - -if [ -z "$QPID_HOME" ]; then - export QPID_HOME=$(dirname $(dirname $(readlink -f $0))) - export PATH=${PATH}:${QPID_HOME}/bin -fi - -if [ -z "$QPID_WORK" ]; then - log $INFO Setting QPID_WORK to $HOME as default - QPID_WORK=$HOME -fi - -if [ -z "$JAVA" ]; then - JAVA=java -fi - -if $cygwin; then - QPID_HOME=$(cygpath -w $QPID_HOME) - QPID_WORK=$(cygpath -w $QPID_WORK) -fi - -#Set the default system properties that we'll use now that they have -#all been initialised -declare -a SYSTEM_PROPS -SYSTEM_PROPS[${#SYSTEM_PROPS[@]}]="-Damqj.logging.level=$AMQJ_LOGGING_LEVEL" -SYSTEM_PROPS[${#SYSTEM_PROPS[@]}]="-DQPID_HOME=$QPID_HOME" -SYSTEM_PROPS[${#SYSTEM_PROPS[@]}]="-DQPID_WORK=$QPID_WORK" - -#If logprefix or logsuffix set to use PID make that happen -#Otherwise just pass the value through for these props -#Using X character to avoid probs with empty strings -if [ -n "$QPID_LOG_PREFIX" ]; then - if [ "X$QPID_LOG_PREFIX" = "XPID" ]; then - log $INFO Using pid in qpid log name prefix - LOG_PREFIX="-Dlogprefix=$$" - else - log $INFO Using qpid logprefix property - LOG_PREFIX="-Dlogprefix=$QPID_LOG_PREFIX" - fi - SYSTEM_PROPS[${#SYSTEM_PROPS[@]}]="${LOG_PREFIX}" -fi - -if [ -n "$QPID_LOG_SUFFIX" ]; then - if [ "X$QPID_LOG_SUFFIX" = "XPID" ]; then - log $INFO Using pid in qpid log name suffix - LOG_SUFFIX="-Dlogsuffix=$$" - else - log $INFO Using qpig logsuffix property - LOG_SUFFIX="-Dlogsuffix=$QPID_LOG_SUFFIX" - fi - SYSTEM_PROPS[${#SYSTEM_PROPS[@]}]="${LOG_SUFFIX}" -fi - -log $INFO System Properties set to ${SYSTEM_PROPS[@]} -log $INFO QPID_OPTS set to $QPID_OPTS - -program=$(basename "$0") -sourced=${BASH_SOURCE[0]} -if [[ -z ${sourced:-''} ]]; then - sourced=$(which qpid-run) || ${QPID_HOME}/bin/qpid-run -fi - -usage() { - echo Usage: $program ... "[-run: