Skip to content

Commit

Permalink
Enhance build target "projectdoc"
Browse files Browse the repository at this point in the history
  • Loading branch information
ruff committed Feb 12, 2023
1 parent bb1dc1d commit dea8d3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.ant.xml
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,14 @@
</fileset>
</zip>
</target>
<target name="projectdoc" description="Generate documentation" depends="clean,downloadphpdocumentor">
<target name="projectdoc" description="Generate documentation">
<antcall target="clean"/>
<antcall target="downloadphpdocumentor"/>
<delete dir="${basedir}/doc"/>
<exec executable="php" dir="${basedir}/build">
<arg path="${phpdocumentor}"/>
</exec>
<delete file="${phpdocumentor}"/>
<antcall target="clean"/>
</target>
</project>
1 change: 1 addition & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
<arg path="${phpdocumentor}"/>
</exec>
<delete file="${phpdocumentor}"/>
<phingcall target="clean" />
</then>
<else>
<echo message="Build documentation only on PHP7.4 or higher" />
Expand Down

0 comments on commit dea8d3d

Please sign in to comment.