Support reset for Java

[GitHub #237]
This commit is contained in:
Aoran Zeng 2025-07-31 16:18:56 +08:00
parent f18c72f471
commit 851bb508b1
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98

View File

@ -5,7 +5,7 @@
* Contributors : BingChunMoLi <bingchunmoli@bingchunmoli.com> * Contributors : BingChunMoLi <bingchunmoli@bingchunmoli.com>
* | * |
* Created On : <2023-08-31> * Created On : <2023-08-31>
* Last Modified : <2025-07-22> * Last Modified : <2025-07-31>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
static SourceProvider_t pl_java_upstream = static SourceProvider_t pl_java_upstream =
@ -41,6 +41,7 @@ pl_java_check_cmd (bool *maven_exist, bool *gradle_exist)
} }
} }
char * char *
pl_java_find_maven_config () pl_java_find_maven_config ()
{ {
@ -52,6 +53,7 @@ pl_java_find_maven_config ()
return maven_config; return maven_config;
} }
void void
pl_java_getsrc (char *option) pl_java_getsrc (char *option)
{ {
@ -61,6 +63,7 @@ pl_java_getsrc (char *option)
chsrc_note2 (xy_2strjoin ("请查看 ", maven_config)); chsrc_note2 (xy_2strjoin ("请查看 ", maven_config));
} }
/** /**
* @consult https://developer.aliyun.com/mirror/maven * @consult https://developer.aliyun.com/mirror/maven
*/ */
@ -95,13 +98,20 @@ pl_java_setsrc (char *option)
} }
void
pl_java_resetsrc (char *option)
{
pl_java_setsrc (option);
}
Feature_t Feature_t
pl_java_feat (char *option) pl_java_feat (char *option)
{ {
Feature_t f = {0}; Feature_t f = {0};
f.can_get = true; f.can_get = true;
f.can_reset = false; f.can_reset = true;
f.cap_locally = CanNot; f.cap_locally = CanNot;
f.cap_locally_explain = NA; f.cap_locally_explain = NA;
@ -112,4 +122,4 @@ pl_java_feat (char *option)
return f; return f;
} }
def_target_gsf(pl_java); def_target_gsrf(pl_java);