From 3ea4f18e2275bdbed7609403098aa4194b03003a Mon Sep 17 00:00:00 2001 From: Frank Austin Nothaft Date: Wed, 24 May 2017 00:01:18 -0700 Subject: [PATCH] =?UTF-8?q?[ADAM-1361]=20Fix=20misnamed=20ADAM=20=C3=BCber?= =?UTF-8?q?jar.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves #1361. --- adam-assembly/pom.xml | 1 - bin/adam-shell | 4 ++-- bin/adam-submit | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/adam-assembly/pom.xml b/adam-assembly/pom.xml index 0f1a4db57c..34fed82f39 100644 --- a/adam-assembly/pom.xml +++ b/adam-assembly/pom.xml @@ -16,7 +16,6 @@ yyyy-MM-dd - adam_${scala.version.prefix}-${project.version} org.codehaus.mojo diff --git a/bin/adam-shell b/bin/adam-shell index 1f6c083da6..a3285a0394 100755 --- a/bin/adam-shell +++ b/bin/adam-shell @@ -36,14 +36,14 @@ else ASSEMBLY_DIR="$SCRIPT_DIR/adam-assembly/target" fi -num_jars="$(ls -1 "$ASSEMBLY_DIR" | grep "^adam_[0-9A-Za-z\.-]*\.jar$" | grep -v javadoc | grep -v sources | wc -l)" +num_jars="$(ls -1 "$ASSEMBLY_DIR" | grep "^adam[0-9A-Za-z\.\_\-]*\.jar$" | grep -v javadoc | grep -v sources | wc -l)" if [ "$num_jars" -eq "0" ]; then echo "Failed to find ADAM assembly in $ASSEMBLY_DIR." 1>&2 echo "You need to build ADAM before running this program." 1>&2 exit 1 fi -ASSEMBLY_JARS="$(ls -1 "$ASSEMBLY_DIR" | grep "^adam_[0-9A-Za-z\.-]*\.jar$" | grep -v javadoc | grep -v sources || true)" +ASSEMBLY_JARS="$(ls -1 "$ASSEMBLY_DIR" | grep "^adam[0-9A-Za-z\.\_\-]*\.jar$" | grep -v javadoc | grep -v sources || true)" if [ "$num_jars" -gt "1" ]; then echo "Found multiple ADAM cli assembly jars in $ASSEMBLY_DIR:" 1>&2 echo "$ASSEMBLY_JARS" 1>&2 diff --git a/bin/adam-submit b/bin/adam-submit index 2923acf189..7bc4ff6223 100755 --- a/bin/adam-submit +++ b/bin/adam-submit @@ -60,14 +60,14 @@ else ASSEMBLY_DIR="$SCRIPT_DIR/adam-assembly/target" fi -num_jars="$(ls -1 "$ASSEMBLY_DIR" | grep "^adam_[0-9A-Za-z\.-]*\.jar$" | grep -v javadoc | grep -v sources | wc -l)" +num_jars="$(ls -1 "$ASSEMBLY_DIR" | grep "^adam[0-9A-Za-z\.\_\-]*\.jar$" | grep -v javadoc | grep -v sources | wc -l)" if [ "$num_jars" -eq "0" ]; then echo "Failed to find ADAM cli assembly in $ASSEMBLY_DIR." 1>&2 echo "You need to build ADAM before running this program." 1>&2 exit 1 fi -ASSEMBLY_JARS="$(ls -1 "$ASSEMBLY_DIR" | grep "^adam_[0-9A-Za-z\.-]*\.jar$" | grep -v javadoc | grep -v sources || true)" +ASSEMBLY_JARS="$(ls -1 "$ASSEMBLY_DIR" | grep "^adam[0-9A-Za-z\.\_\-]*\.jar$" | grep -v javadoc | grep -v sources || true)" if [ "$num_jars" -gt "1" ]; then echo "Found multiple ADAM cli assembly jars in $ASSEMBLY_DIR:" 1>&2 echo "$ASSEMBLY_JARS" 1>&2