Skip to content
Browse files

Merge pull request #116 from danielreiser/master

if publish/IMAGE_DIR doesn't exist BUILD FAILS
  • Loading branch information...
2 parents 81686ed + 58c82a0 commit 995f2d94db1164c99b4417b0bfb84a449f845d7c @roblarsen roblarsen committed Oct 5, 2012
Showing with 10 additions and 5 deletions.
  1. +10 −5 build.xml
View
15 build.xml
@@ -880,11 +880,16 @@
</and>
<then>
<!-- work around https://sourceforge.net/tracker/?func=detail&aid=2671422&group_id=151404&atid=780916 -->
- <delete>
- <fileset dir="./${dir.publish}/${dir.images}/">
- <include name="**/*.png"/>
- </fileset>
- </delete>
+ <if>
+ <available file="./${dir.publish}/${dir.images}/" type="dir" />
+ <then>
+ <delete>
+ <fileset dir="./${dir.publish}/${dir.images}/">
+ <include name="**/*.png"/>
+ </fileset>
+ </delete>
+ </then>
+ </if>
<apply executable="optipng" dest="./${dir.publish}/${dir.images}/" osfamily="unix">
<fileset dir="./${dir.source}/${dir.images}/" includes="**/*.png" excludes="${images.bypass}, ${images.default.bypass}"/>
<arg value="-quiet"/>

0 comments on commit 995f2d9

Please sign in to comment.
Something went wrong with that request. Please try again.