Skip to content

Instantly share code, notes, and snippets.

@velizarn
Last active June 13, 2016 20:36
Show Gist options
  • Save velizarn/f92c7f35ceaf47c0cb2d7c82e70b25cd to your computer and use it in GitHub Desktop.
Save velizarn/f92c7f35ceaf47c0cb2d7c82e70b25cd to your computer and use it in GitHub Desktop.
Ant task to delete non-empty directories
<target name="delete.node_modules">
<echo message="Delete node_modules from build directory"/>
<delete verbose="false" includeemptydirs="true">
<fileset dir="${basedir}/build/node_modules" includes="**/*" defaultexcludes="false" />
</delete>
<delete dir="${basedir}/build/node_modules" />
</target>
<!-- https://ant.apache.org/manual/Tasks/delete.html -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment