Skip to content

Commit 851bb50

Browse files
committed
Support reset for Java
[GitHub #237]
1 parent f18c72f commit 851bb50

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/recipe/lang/Java.c

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Contributors : BingChunMoLi <[email protected]>
66
* |
77
* Created On : <2023-08-31>
8-
* Last Modified : <2025-07-22>
8+
* Last Modified : <2025-07-31>
99
* ------------------------------------------------------------*/
1010

1111
static SourceProvider_t pl_java_upstream =
@@ -41,6 +41,7 @@ pl_java_check_cmd (bool *maven_exist, bool *gradle_exist)
4141
}
4242
}
4343

44+
4445
char *
4546
pl_java_find_maven_config ()
4647
{
@@ -52,6 +53,7 @@ pl_java_find_maven_config ()
5253
return maven_config;
5354
}
5455

56+
5557
void
5658
pl_java_getsrc (char *option)
5759
{
@@ -61,6 +63,7 @@ pl_java_getsrc (char *option)
6163
chsrc_note2 (xy_2strjoin ("请查看 ", maven_config));
6264
}
6365

66+
6467
/**
6568
* @consult https://developer.aliyun.com/mirror/maven
6669
*/
@@ -95,13 +98,20 @@ pl_java_setsrc (char *option)
9598
}
9699

97100

101+
void
102+
pl_java_resetsrc (char *option)
103+
{
104+
pl_java_setsrc (option);
105+
}
106+
107+
98108
Feature_t
99109
pl_java_feat (char *option)
100110
{
101111
Feature_t f = {0};
102112

103113
f.can_get = true;
104-
f.can_reset = false;
114+
f.can_reset = true;
105115

106116
f.cap_locally = CanNot;
107117
f.cap_locally_explain = NA;
@@ -112,4 +122,4 @@ pl_java_feat (char *option)
112122
return f;
113123
}
114124

115-
def_target_gsf(pl_java);
125+
def_target_gsrf(pl_java);

0 commit comments

Comments
 (0)