At 11:16 7/3/01 +1000, James Sinnamon wrote:
>Still, having fixed the obvious mistake, I find myself still unable to
create a
>"clean" target which works properly, in relation to "*~" files.
>
>Here is the relevant sectiion of my build.xml file:
>
> <target name="clean" depends="init">
> <delete dir="${build.dir}"/>
> <delete>
> <fileset dir="${src.dir}" includes="**/*~"/>
> <fileset dir="${src.dir}" includes="**/*.class"/>
> </delete>
> </target>
yep - there is some files that are excluded by default (CVS directories~
files etc) so you need to specifiy defaultexclude="no" like
<delete>
<fileset dir="." includes="**/*~" defaultexcludes="no"/>
</delete>
Cheers,
Pete
*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof." |
| - John Kenneth Galbraith |
*-----------------------------------------------------*