/ Published in: XML
This is used in the build.xml file generated by a Netbeans project, to override the default clean-up behaviour that deletes the 'build' and 'dist' folders. In case these folders are to be maintained in SVN, the following ensures that only the contents of the folders are cleared, leaving the SVN information intact.
Of course, the easiest option is to NOT check in the 'build' and 'dist' folders :)
Of course, the easiest option is to NOT check in the 'build' and 'dist' folders :)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!-- overrriding the clean-up code to not delete the build and dist folders since svn gets screwed up--> <target depends="init" name="-do-clean"> <delete includeemptydirs="true"> <fileset dir="${build.dir}"> <include name="**"/> <exclude name="**/.svn/*"/> </fileset> </delete> <delete includeemptydirs="true" followsymlinks="false"> <fileset dir="${dist.dir}"> <include name="**"/> <exclude name="**/.svn/*"/> </fileset> </delete> </target>