phingofficial/phing — Issue #14: PHPDocumentorTask adds single-quotes in title
Author: mrook
Created: 2012-01-04 14:37:50+00:00
State: open

If I enter title="DOC-TITLE" in the build file, the generated doc will have 'DOC-TITLE' as the title (with the quotes).

It looks like this is due to the function PHPDocumentorTask::constructArguments(), this line:

$arguments.= "-ti '" . $this->title . "' ";

I'm on a windows machine so the single-quotes can't be used to put a string for an argument. This error also prevents me from putting a space in the title. This seems to fix the problem:

$arguments.= '-ti "' . $this->title . '" ';