diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-09-27 14:42:10 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-09-27 14:42:10 -0400 |
commit | c3d8da0e89d3f2213933ff85dc0cca7d829442ed (patch) | |
tree | 967259a8338aa703195b94a9d5131c00545b0f3a /jh-mvn-basename.sh |
Initial commit
Diffstat (limited to 'jh-mvn-basename.sh')
-rw-r--r-- | jh-mvn-basename.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/jh-mvn-basename.sh b/jh-mvn-basename.sh new file mode 100644 index 0000000..7c1d8a1 --- /dev/null +++ b/jh-mvn-basename.sh @@ -0,0 +1,18 @@ +#!/bin/bash +. /usr/bin/jh + +if [[ $# != 3 ]]; then + usage + exit 1 +fi + +mvn_repo="`$jh_cmd mvn-localrepo`" + +mvn_groupId=$0 +mvn_artifactId=$1 +mvn_version=$2 + +dir="${mvn_repo}/${mvn_groupId}/${mvn_artifactId}/${mvn_version}" +file="${mvn_artifactId}-${mvn_version}" + +echo "${dir}/${file}" |