Mvn: Do not redefine caching policies if already done
This commit is contained in:
parent
77588c6188
commit
28ab44c7a2
4
_mvn
4
_mvn
|
@ -522,6 +522,7 @@ _mvn_booleans() {
|
||||||
_describe -t "booleans" "boolean" booleans
|
_describe -t "booleans" "boolean" booleans
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(( $+functions[_mvn_goals_caching_policy] )) ||
|
||||||
_mvn_goals_caching_policy() {
|
_mvn_goals_caching_policy() {
|
||||||
# Rebuild if cache is older than one month.
|
# Rebuild if cache is older than one month.
|
||||||
local -a oldp
|
local -a oldp
|
||||||
|
@ -529,14 +530,17 @@ _mvn_goals_caching_policy() {
|
||||||
(( $#oldp ))
|
(( $#oldp ))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(( $+functions[_mvn_properties_caching_policy] )) ||
|
||||||
_mvn_properties_caching_policy() {
|
_mvn_properties_caching_policy() {
|
||||||
_mvn_goals_caching_policy
|
_mvn_goals_caching_policy
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(( $+functions[_mvn_groupIds_caching_policy] )) ||
|
||||||
_mvn_groupIds_caching_policy() {
|
_mvn_groupIds_caching_policy() {
|
||||||
_mvn_goals_caching_policy
|
_mvn_goals_caching_policy
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(( $+functions[_mvn_profiles_caching_policy] )) ||
|
||||||
_mvn_profiles_caching_policy() {
|
_mvn_profiles_caching_policy() {
|
||||||
# Resolve the cache directory.
|
# Resolve the cache directory.
|
||||||
local cache_dir
|
local cache_dir
|
||||||
|
|
Loading…
Reference in New Issue