mirror of
https://github.com/RubyMetric/chsrc
synced 2025-09-08 07:34:42 +08:00
重命名为 xy_run_get_stdout()
This commit is contained in:
parent
afc4ba3d06
commit
cf07b13776
2
lib/xy.h
2
lib/xy.h
@ -862,7 +862,7 @@ xy_run_get_status (char *cmd)
|
||||
* @return 返回命令的执行状态
|
||||
*/
|
||||
static int
|
||||
xy_run_capture (const char *cmd, char **output)
|
||||
xy_run_get_stdout (const char *cmd, char **output)
|
||||
{
|
||||
int cap = 8192; /* 假如1行100个字符,大约支持80行输出 */
|
||||
char *buf = (char *) xy_malloc0 (cap);
|
||||
|
@ -71,7 +71,7 @@ char *
|
||||
pl_java_find_maven_config ()
|
||||
{
|
||||
char *output;
|
||||
int status = xy_run_capture ("mvn -v", &output);
|
||||
int status = xy_run_get_stdout ("mvn -v", &output);
|
||||
if (0==status)
|
||||
{
|
||||
char *maven_home_line = xy_run_iter_lines ("mvn -v", 0, pl_java_is_maven_home_line);
|
||||
@ -88,7 +88,7 @@ char *
|
||||
pl_java_find_maven_daemon_config ()
|
||||
{
|
||||
char *output;
|
||||
int status = xy_run_capture ("mvnd -v", &output);
|
||||
int status = xy_run_get_stdout ("mvnd -v", &output);
|
||||
if (0==status)
|
||||
{
|
||||
char *maven_home_line = xy_run_iter_lines ("mvnd -v", 0, pl_java_is_maven_home_line);
|
||||
|
Loading…
x
Reference in New Issue
Block a user