只是想知道。我如何从phing输出中获取最后执行的目标?
我正在使用php的exec()。我试图解析输出并只获得最后执行的目标。
..... ....
[42] => [mkdir] Created dir: /var/www/html/SampleProject/output
[43] =>
[44] => SampleProject > svn:tag:export:
[45] =>
[46] => [echo] Force exporting SampleProject
[47] => [echo] svn export --force --non-interactive --no-auth-cache ..... .
[48] => Execution of target "svn:tag:export" failed for the following reason: Task exited with code 1
[49] => [phingcall] Task exited with code 1
[50] => [if] Error in IfTask
[51] => Execution of target "scm:tag:checkout" failed for the following reason: Execution of the target buildfile failed. Aborting.
[52] =>
[53] => BUILD FAILED
[54] => Execution of the target buildfile failed. Aborting.
[55] => Total time: 0.2716 seconds
[56] =>
我需要获得SampleProject的所有结果> svn:tag:export,它来自索引44以后。