Skip to content

Commit

Permalink
Do not delete the target directory, delete its content instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
yaegor committed Apr 24, 2014
1 parent 760892c commit 52f690b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions download-file/MRPP_DownloadFile.xml
Expand Up @@ -23,7 +23,7 @@
<matches pattern="true" string="${clean.dest.dir}"/>
</condition>
<target name="getFile" depends="clean-dest-dir, create-dest-dir">
<target name="getFile" depends="create-dest-dir, clean-dest-dir">
<get src="${url}" dest="${dest.dir}"
username="${username}"
Expand All @@ -37,7 +37,9 @@
</target>
<target name="clean-dest-dir" if="clean.dest.dir.set">
<delete dir="${dest.dir}"/>
<delete includeemptydirs="true">
<fileset dir="${dest.dir}" includes="**/*"/>
</delete>
</target>
Expand Down

0 comments on commit 52f690b

Please sign in to comment.