Unable to exclude directories from PHPDocumentor

后端 未结 3 1243
梦谈多话
梦谈多话 2021-01-13 09:20

I\'m trying to run PHPDocumentor on my WAMPServer setup. It runs fine, but I\'d like to exclude certain directories, such as \\sqlbuddy\\ which don\'t contain my own code. I

相关标签:
3条回答
  • 2021-01-13 10:00

    Which version of phpDocumentor are you using?

    Because the phpDocumentor 1.4.2 release notes states:

    This release fixes two Windows-specific bugs, one involving usage of the "--ignore" option, and one involving usage of the @filesource tag.

    0 讨论(0)
  • 2021-01-13 10:14

    I had the same problem, but different cause: ignoring more than one directory requires passing a comma-separated list i.e:

    --ignore sqlbuddy/,docs/

    0 讨论(0)
  • 2021-01-13 10:15

    You might need to change that ignore value to forward slash...

    Internally, old PHP4-era PhpDocumentor still has some slash-handling of its own, where it tries to make all directory separators read as forward-slashes only. Compound this with the --ignore option values effectively being a regex mask, and it gets easy to see how a backslash (typically an escape char in regexes) can be an insidious cause of unexpected behavior.

    Try using "--ignore sqlbuddy/" instead, and let us know how that goes.

    0 讨论(0)
提交回复
热议问题