You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2017/05/06 16:32:08 UTC
maven git commit: [MNG-6223] support -f path/to/dir when detecting
.mvn
Repository: maven
Updated Branches:
refs/heads/MNG-6223 [created] 5b9f28530
[MNG-6223] support -f path/to/dir when detecting .mvn
Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/5b9f2853
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/5b9f2853
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/5b9f2853
Branch: refs/heads/MNG-6223
Commit: 5b9f285303ac20c04f74b81f5c8e92f1c4014c14
Parents: f7d4bce
Author: Hervé Boutemy <hb...@apache.org>
Authored: Sat May 6 18:15:42 2017 +0200
Committer: Hervé Boutemy <hb...@apache.org>
Committed: Sat May 6 18:15:42 2017 +0200
----------------------------------------------------------------------
apache-maven/src/bin/mvn | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven/blob/5b9f2853/apache-maven/src/bin/mvn
----------------------------------------------------------------------
diff --git a/apache-maven/src/bin/mvn b/apache-maven/src/bin/mvn
index 623b5f2..2110120 100755
--- a/apache-maven/src/bin/mvn
+++ b/apache-maven/src/bin/mvn
@@ -142,6 +142,8 @@ find_file_argument_basedir() {
for arg in "$@"; do
if [ ${found_file_switch} -eq 1 ]; then
if [ -f "${arg}" ]; then
+ basedir=`cd "${arg}" && pwd -P`
+ elif [ -f "${arg}" ]; then
basedir=`dirname "${arg}"`
basedir=`cd "${basedir}" && pwd -P`
if [ ! -d "${basedir}" ]; then