Return to Snippet

Revision: 34047
at October 16, 2010 08:46 by studioevoque

Initial Code
<!-- 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/*"/>
        <delete includeemptydirs="true" followsymlinks="false">
            <fileset dir="${dist.dir}">
                <include name="**"/>
                <exclude name="**/.svn/*"/>


Initial URL

Initial Description
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 :)

Initial Title
Overriding Netbeans build.xml to address SVN folder clean-up

Initial Tags

Initial Language