2016-06-28 1 views
0

では見つかりません:警告:PHPLoc濃縮は有効になっていないか、phploc.xmlは、私は、プロジェクトの建物のジェンキンスとAntと私のPHPプロジェクトのためのAPIドキュメントを生成phpDox

<?xml version="1.0" encoding="UTF-8"?> 
<project name="MyProject" default="full-build"> 
    <property name="pdepend" value="/usr/share/.composer/vendor/bin/pdepend" /> 
    ... 
    <target name="full-build" depends="prepare,static-analysis,phpdox" /> 
    <target name="prepare" unless="prepare.done" depends="clean"> 
     <mkdir dir="${basedir}/build/api" /> 
     ... 
    </target> 
    <target name="clean" unless="clean.done"> 
     <delete dir="${basedir}/build/api" /> 
     ... 
    </target> 
    <target name="static-analysis"> 
     <parallel threadCount="2"> 
      <sequential> 
       <antcall target="pdepend" /> 
       <antcall target="phpmd" /> 
      </sequential> 
      <antcall target="lint" /> 
      <antcall target="phpcpd" /> 
      <antcall target="phpcs" /> 
      <antcall target="phploc" /> 
     </parallel> 
    </target> 
    <target name="pdepend" unless="pdepend.done" depends="prepare"> 
     ... 
    </target> 
    <target name="phpmd" unless="phpmd.done"> 
     ... 
    </target> 
    <target name="lint" unless="lint.done"> 
     ... 
    </target> 
    <target name="phpcpd" unless="phpcpd.done"> 
     ... 
    </target> 
    <target name="phpcs" unless="phpcs.done"> 
     ... 
    </target> 
    <target name="phpdox" depends="phploc,phpcs,phpmd" unless="phpdox.done"> 
     <exec executable="${phpdox}" dir="${basedir}/build" taskname="phpdox"> 
      <arg value="--file" /> 
      <arg value="${basedir}/build/phpdox.xml" /> 
     </exec> 
     <property name="phpdox.done" value="true" /> 
    </target> 
    <target name="phploc" unless="phploc.done"> 
     ... 
    </target> 
</project> 

ビルドが完了すると、私はindex.xhtmlを開きますAPIドキュメントの警告が表示されます。

警告:PHPLocが有効になっていないか、phploc.xmlが見つかりません。

enter image description here

はなぜこの警告が表示され、それがどのように起因する問題を解決するために?

答えて

1

phpDoxは、phploc.xmlファイルを生成する必要があります。あなたのターゲットphplocはそのようなファイル(param:--log-xml <filename>)を生成しますか?

phplocをターゲット:

<target name="phploc" unless="phploc.done"> 
    <exec executable="${phploc}" taskname="phploc"> 
     <arg value="--count-tests" /> 
     <arg value="--log-csv" /> 
     <arg path="${basedir}/build/logs/phploc.csv" /> 
     <arg value="--log-xml" /> 
     <arg path="${basedir}/build/logs/phploc.xml" /> 
     <arg path="....." /> 
    </exec> 
    <property name="phploc.done" value="true"/> 
</target> 

PHPLOCのenricherが見つからないか、または開始されていない場合は、次の行がphpDoxのAntから省略されなければならないスクリプトのフィードバック構築:他のすべてが失敗した場合

[phpdox] [06.07.2016 - 16:37:58] Registered enricher 'phploc' 
+1

を作成した 'phploc.xml'ファイルを' phpdox.xml'設定ファイルに直接指し示すことができます。 ' <ソースタイプ= "phploc"> <ファイル名= "phploc.xml"/>の内部 ' <ベース= "ファイル/ディレクトリ/ /ログの" 豊か>:あなたが追加することによってこれを行うことができます'phpdox.xml'設定ファイルの' 'タグです。 –

関連する問題