Skip to content
This repository has been archived by the owner on Nov 23, 2018. It is now read-only.

Commit

Permalink
wrapped an available resource test around a delete command to make su…
Browse files Browse the repository at this point in the history
…re there was something to delete. Fixes #100
  • Loading branch information
roblarsen committed Aug 29, 2012
1 parent 9961d2b commit b2bd99b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build.xml
Expand Up @@ -911,11 +911,16 @@
<os family="windows" />
<!-- work around https://sourceforge.net/tracker/?func=detail&aid=2671422&group_id=151404&atid=780916 -->
<then>
<delete>
<if>
<available file="./${dir.publish}/${dir.images}/"/>
<then>
<delete>
<fileset dir="./${dir.publish}/${dir.images}/">
<include name="**/*.png"/>
</fileset>
</delete>
</delete>
</then>
</if>
<apply executable="${basedir}/${dir.build.tools}/optipng-0.7-win32/optipng.exe" dest="./${dir.publish}/${dir.images}/" osfamily="windows">
<fileset dir="./${dir.source}/${dir.images}/" includes="**/*.png" excludes="${images.bypass}, ${images.default.bypass}"/>
<arg value="-quiet"/>
Expand Down

0 comments on commit b2bd99b

Please sign in to comment.