bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mackror...@apache.org
Subject git commit: BIGTOP-1027. 'bigtop-detect-classpath' helper script missing from bigtop-utils
Date Wed, 17 Jul 2013 01:40:44 GMT
Updated Branches:
  refs/heads/master e8f88d13c -> 1b209d7d4


BIGTOP-1027. 'bigtop-detect-classpath' helper script missing from bigtop-utils


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/1b209d7d
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/1b209d7d
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/1b209d7d

Branch: refs/heads/master
Commit: 1b209d7d42ba7cbf629deba2285838c658016317
Parents: e8f88d1
Author: Sean Mackrory <mackrorysd@apache.org>
Authored: Tue Jul 16 18:40:25 2013 -0700
Committer: Sean Mackrory <mackrorysd@apache.org>
Committed: Tue Jul 16 18:40:25 2013 -0700

----------------------------------------------------------------------
 .../common/bigtop-utils/bigtop-detect-classpath | 33 ++++++++++++++++++++
 1 file changed, 33 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/1b209d7d/bigtop-packages/src/common/bigtop-utils/bigtop-detect-classpath
----------------------------------------------------------------------
diff --git a/bigtop-packages/src/common/bigtop-utils/bigtop-detect-classpath b/bigtop-packages/src/common/bigtop-utils/bigtop-detect-classpath
new file mode 100644
index 0000000..7d06170
--- /dev/null
+++ b/bigtop-packages/src/common/bigtop-utils/bigtop-detect-classpath
@@ -0,0 +1,33 @@
+#!/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.
+
+# Add files to BIGTOP_CLASSPATH and they will be prepended to the contents of /var/lib/bigtop
+[ -r /etc/default/bigtop-utils ] && . /etc/default/bigtop-utils
+
+# Overriding this is not recommended because it has had to be hard-coded in
+# properties files for components that use bigtop-tomcat
+BIGTOP_CLASSPATH_DIR=/var/lib/bigtop
+
+# Create a string suitable for inclusion in CLASSPATH
+# for components that can use it in their environment
+for file in $BIGTOP_CLASSPATH_DIR/*.jar; do
+    if [ -z "$BIGTOP_CLASSPATH" ]; then
+        BIGTOP_CLASSPATH="$file"
+    else
+        BIGTOP_CLASSPATH="$BIGTOP_CLASSPATH:$file"
+    fi
+done
+export BIGTOP_CLASSPATH


Mime
View raw message