X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=pakefile.php;h=956cc66334213f3e1b523913fba5acc4f2d76a1d;hb=d20c6b4814808f6292298ae5cada12a7dd5b69eb;hp=d153a98b2e1841c0689827d9f47c646e14519d5d;hpb=3167db6472d5b6c691348e38b6f166198325bb6c;p=plcapi.git diff --git a/pakefile.php b/pakefile.php index d153a98..956cc66 100644 --- a/pakefile.php +++ b/pakefile.php @@ -3,7 +3,7 @@ * Makefile for phpxmlrpc library. * To be used with the Pake tool: https://github.com/indeyets/pake/wiki * - * @copyright (c) 2015 - 2019 G. Giunta + * @copyright (c) 2015-2021 G. Giunta * * @todo !important allow user to specify location of docbook xslt instead of the one installed via composer */ @@ -42,6 +42,11 @@ class Builder return self::buildDir().'/workspace'; } + public static function toolsDir() + { + return self::buildDir().'/tools'; + } + /// most likely things will break if this one is moved outside of BuildDir public static function distDir() { @@ -104,7 +109,6 @@ class Builder */ public static function applyXslt($inFile, $xssFile, $outFileOrDir) { - if (!file_exists($inFile)) { throw new \Exception("File $inFile cannot be found"); } @@ -256,9 +260,11 @@ function run_doc($task=null, $args=array(), $cliOpts=array()) // API docs + /// @todo sami is anbandonware, whereas phpdocumentor is not. switch back to phpdocumentor + // from phpdoc comments using phpdocumentor //$cmd = Builder::tool('php'); - //pake_sh("$cmd vendor/phpdocumentor/phpdocumentor/bin/phpdoc run -d ".Builder::workspaceDir().'/src'." -t ".Builder::workspaceDir().'/doc/api --title PHP-XMLRPC'); + //pake_sh("$cmd " . Builder::toolsDir(). "/vendor/bin/phpdoc run -d ".Builder::workspaceDir().'/src'." -t ".Builder::workspaceDir().'/doc/api --title PHP-XMLRPC'); // from phpdoc comments using Sami $samiConfig = <<