File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -862,7 +862,7 @@ xy_run_get_status (char *cmd)
862862 * @return 返回命令的执行状态
863863 */
864864static int
865- xy_run_capture (const char * cmd , char * * output )
865+ xy_run_get_stdout (const char * cmd , char * * output )
866866{
867867 int cap = 8192 ; /* 假如1行100个字符,大约支持80行输出 */
868868 char * buf = (char * ) xy_malloc0 (cap );
Original file line number Diff line number Diff line change 7171pl_java_find_maven_config ()
7272{
7373 char * output ;
74- int status = xy_run_capture ("mvn -v" , & output );
74+ int status = xy_run_get_stdout ("mvn -v" , & output );
7575 if (0 == status )
7676 {
7777 char * maven_home_line = xy_run_iter_lines ("mvn -v" , 0 , pl_java_is_maven_home_line );
8888pl_java_find_maven_daemon_config ()
8989{
9090 char * output ;
91- int status = xy_run_capture ("mvnd -v" , & output );
91+ int status = xy_run_get_stdout ("mvnd -v" , & output );
9292 if (0 == status )
9393 {
9494 char * maven_home_line = xy_run_iter_lines ("mvnd -v" , 0 , pl_java_is_maven_home_line );
You can’t perform that action at this time.
0 commit comments