0

2.4.12 构建。我已将 phing 文件放在 /opt/phing 中,并在 .bashrc 中添加了行。

export PHP_COMMAND=/usr/bin/php 
export PHING_HOME=/opt/phing 
export PHP_CLASSPATH=${PHING_HOME}/classes 
export PATH=${PATH}:${PHING_HOME}/bin

我能够运行基本的 phing 脚本,但是当我使用 svnExportDiffTask 时,它会抛出错误。

[PHP Error] include_once(phing/tasks/ext/svn/SvnExportDiffTask.php):
            failed to open stream: No such file or directory
            [line 1057 of /opt/phing/classes/phing/Phing.php]
[PHP Error] include_once(): Failed opening 'phing/tasks/ext/svn/SvnExportDiffTask.php'
            for inclusion (include_path='/opt/phing/classes:.:/home/prateek/work/bitnami/php/lib/php') 
            [line 1057 of /opt/phing/classes/phing/Phing.php]
  [foreach] Error importing phing/tasks/ext/svn/SvnExportDiffTask.php
Execution of target "getcode" failed for the following reason:
/home/prateek/work/build/build.xml:31:35:
Execution of the target buildfile failed. Aborting.

BUILD FAILED
/home/prateek/work/build/build.xml:31:35:
Execution of the target buildfile failed. Aborting.

谁可以帮我这个事。

4

1 回答 1

0

通过 PEAR 安装程序安装 phing,以便自动安装所有依赖项。它将解决您的大部分问题。

于 2013-04-23T11:42:56.037 回答