2013-04-23 51 views
0

2.4.12 build。我已將phing文件放在/ opt/phing中,並將 行添加到.bashrc中。導入phing任務文件時出錯,但文件存在

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. 

任何人都可以幫助我解決這個問題。

+0

這是'SvnExportDiffTask.php'的確切完整路徑嗎? – cweiske 2013-04-23 11:00:07

+0

@cweiske path:/opt/phing/classes/phing/tasks/ext/svn/SvnExportDiffTask.php – user2260383 2013-04-23 11:06:01

+0

錯誤已解決,但沒有SvnExportDiffTask文件,但存在SvnExportTask文件。名稱已更改。 現在有另一個錯誤,在PHP中發生致命錯誤:在'316' – user2260383 2013-04-23 11:16:23

回答

0

通過PEAR安裝程序安裝phing,以便自動安裝所有依賴關係。它將解決你的大部分問題。