Last active
June 13, 2016 20:36
-
-
Save velizarn/f92c7f35ceaf47c0cb2d7c82e70b25cd to your computer and use it in GitHub Desktop.
Ant task to delete non-empty directories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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