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 b3cf21b commit 0ee554f
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 @@ -340,11 +340,14 @@
<arg path="${basedir}/examples/factur-x.xml"/>
</exec>
</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 0ee554f

Please sign in to comment.