Skip to content

Commit

Permalink
Delete the generated article HTML after compressing it
Browse files Browse the repository at this point in the history
  • Loading branch information
amclark42 committed Jul 22, 2024
1 parent 0a3d358 commit bad9d2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ To proof only the internal preview, hit the return key or type "false".
<param name="dir-separator" expression="${file.separator}"/>
<param name="doProofing" expression="true"/>
</xslt>
<!-- Compress the article HTML along with useful web assets. -->
<zip destfile="${previewDir}${file.separator}dhq-article-${article.id}.zip">
<fileset dir="." includes="common/css/ common/js/"/>
<fileset dir=".${file.separator}articles${file.separator}${article.id}"
Expand All @@ -382,6 +383,9 @@ To proof only the internal preview, hit the return key or type "false".
<filename name="${article.id}.html"/>
</fileset>
</zip>
<!-- Once the HTML is included in the ZIP, we can delete it. Its links won't
work in the preview directory anyway. -->
<delete file="${previewDir}${file.separator}${article.id}.html"/>
</target>

</project>

0 comments on commit bad9d2d

Please sign in to comment.