xampp - Running phpdoc through Phing, phpdocumentor.ini location -


i'm rebuilding xampp , ci environment (on win7) scratch having trouble running phpdoc through phing. in particular, phing looking phpdocumentor.ini in place doesn't exist (and never has).

phing , phpdocumentor have both been installed through pear, paths setup seems fine, , have these versions:

php version 5.4.7 pear version 1.9.4 phpdoc version 2.0.1 phing version 2.6.1      

relevant paths on system are:

h:\xampp\php; h:\xampp\php\pear; 

on sample project:

i can run phpdoc without hitch, example: phpdoc -d apps -t docs runs fine.

here's phpdoc task, has worked in past:

<phpdoc title=docs" destdir="${docsdir}" sourcecode="false" output="html:frames:earthli">     <fileset dir="./apps">         <include name="**/*.php" />     </fileset>     <projdocfileset dir=".">         <include name="readme" />         <include name="install" />         <include name="changelog" />     </projdocfileset> </phpdoc> 

when run phing, phpdoc fails following notice:

parsing configuration file phpdocumentor.ini...    (found in c:\php\pear\data/phpdocumentor/)... error: cannot open phpdocumentor.ini in directory -is phpdoc in either path or include_path in php.ini file? 

there no c:\php... directory, , never has been, don't know has come from.

i can working if create whole phpdocumentor structure phing anticipates on c: i'd ideally ini file's anticipated location changed have on 1 drive.

is there way can inform phing of true location of phpdocumentor.ini?

i've not found specific problem listed on so, hopeful else has seen , rectified this. phing site docs/forum/trac don't list recent reports of problem.

thanks all

it looks you're trying use phpdocumentor 2.x , seeing behavior looks phpdocumentor 1.x. perhaps there 1.x code came xampp source lingering , affecting ability run 2.x cleanly.

in considering phing angle, in glancing @ phing manual, looks correct phing task use phpdocumentor 2.x docblox task [1] rather old phpdoc task.

[1] -- http://www.phing.info/docs/guide/stable/apcs52.html.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -