Skip to content

Commit

Permalink
last improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Feb 26, 2016
1 parent 13cbcb8 commit 75d0285
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,9 @@ __jvm_version() {
version="$(__jvm_local_version "$proj")"

# try to extract from pom.xml
test -z "$version" &&
version="$(__jvm_pomversion "$proj")"
test -z "$version" && version="$(__jvm_pomversion "$proj")"

# if parent pom or .java-version exists, try to find the verion there.
# go up looking for pom.xmls and .java-versions
parent="$proj/.."
test -z "$version" &&
test -f "$parent/pom.xml" -o -f "$parent/.java-version" &&
Expand Down

0 comments on commit 75d0285

Please sign in to comment.