Unable to exclude directories from PHPDocumentor

I am trying to run PHPDocumentor on my WAMPServer setup. It works fine, but I would like to exclude certain directories, such as \ sqlbuddy \, which do not contain my own code. Oddly enough, the PHPDocumentor seems to be ignoring my -ignore switch. I tried several ways to express the same thing, but with the same result. The following is the command with which I run it:

php.exe "C:\Users\username\Documents\PhpDocumentor\phpdoc" -t "C:\Program Files\wamp\www\docs" -o HTML:default:default -d "C:\Program Files\wamp\www" --ignore sqlbuddy\ --ignore docs\ 

Thank you very much.

+4
source share
3 answers

What version of phpDocumentor are you using?

Since phpDocumentor 1.4.2 release notes :

This release has fixed two Windows-specific errors, one of which involves the use of the "--ignore" option and one of which involves the use of the @filesource tag.

+2
source

I had the same problem, but for a different reason: ignoring multiple directories requires passing a comma-separated list ie:

--ignore sqlbuddy/,docs/

+9
source

You may need to change the ignore value to forward the slash ...

Inside, the old PHP4-era PhpDocumentor still has some slash processing of its own, where it tries to make all directory separators only read as rewinds. Combine this with the --ignore option parameters, effectively representing a regular expression mask, and it becomes easy to see how a backslash (usually an escape char in regular expressions) can be an insidious cause of unexpected behavior.

Try using "--ignore sqlbuddy /" and let us know how this happens.

0
source

All Articles