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 <[email protected]> Authored: Sat May 6 18:15:42 2017 +0200 Committer: Hervé Boutemy <[email protected]> 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
