Skip to content

Commit

Permalink
scripts: improve list-jar to display pom.xml dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin committed Nov 29, 2017
1 parent 1eaf952 commit 62c5958
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions scripts/list-jar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,21 @@ pushd "$ROOT"

LEIN_VERSION=`cat "$PROJECT_FILE" | grep "defproject" | cut -d' ' -f3 | cut -d\" -f2`

JAR_FILE="target/chromex-$LEIN_VERSION.jar"
BASE_FILE="chromex-$LEIN_VERSION"
POM_PATH="META-INF/maven/binaryage/chromex/pom.xml"
INSPECT_DIR="inspect"

echo "listing content of $JAR_FILE"
echo ""
cd "target"
unzip -l "$BASE_FILE.jar"
unzip -o "$BASE_FILE.jar" "$POM_PATH" -d "$INSPECT_DIR"

unzip -l "$JAR_FILE"
echo
echo "approx. pom.xml dependencies:"
cat "$INSPECT_DIR/$POM_PATH" | grep -E -i "artifactId|version"

echo ""
echo
echo "----------------------------"
echo ""
echo

popd

Expand Down

0 comments on commit 62c5958

Please sign in to comment.