Skip to content

Commit

Permalink
feat(java): add support for ant (#1273)
Browse files Browse the repository at this point in the history
Co-authored-by: Denys Dovhan <denysdovhan@gmail.com>
  • Loading branch information
FeiyouG and denysdovhan committed Oct 31, 2022
1 parent 8339bd1 commit ec7abcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/sections/java.md
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sections/java.zsh
Expand Up @@ -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
Expand Down

0 comments on commit ec7abcd

Please sign in to comment.