diff --git a/docs/sections/java.md b/docs/sections/java.md index 5533257c0..d606252e2 100644 --- a/docs/sections/java.md +++ b/docs/sections/java.md @@ -10,7 +10,7 @@ The `java` section is shown the current version of the Java compiler. This section is shown only within Java projects, meaning: * `java` compiler is available -* Upsearch finds `pom.xml`, `build.gradle`, `settings.gradle` files +* Upsearch finds `pom.xml`, `build.gradle`, `settings.gradle`, `build.xml` files * The current directory contains `*.java`, `*.class`, `*.jar` or `*.war` files ## Options diff --git a/sections/java.zsh b/sections/java.zsh index 260c6eca9..fbed49c6a 100644 --- a/sections/java.zsh +++ b/sections/java.zsh @@ -19,7 +19,7 @@ SPACESHIP_JAVA_COLOR="${SPACESHIP_JAVA_COLOR="cyan"}" spaceship_java() { [[ $SPACESHIP_JAVA_SHOW == false ]] && return - local is_java_project="$(spaceship::upsearch pom.xml build.gradle settings.gradle)" + local is_java_project="$(spaceship::upsearch pom.xml build.gradle settings.gradle build.xml)" [[ -n "$is_java_project" || -n *.(java|class|jar|war)(#qN^/) ]] || return spaceship::exists java || return