diff options
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}" |