如何使用 ant 删除 .svn 目录? [英] How to make deleting .svn directories work using ant?
本文介绍了如何使用 ant 删除 .svn 目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试了手册中的示例:
I tried the example in the manual:
<delete includeemptydirs="true">
<fileset dir="${DIR}" includes="**/.svn" defaultexcludes="false"/>
</delete>
(其中 DIR 设置为某个目录)并且它什么都不做.如何使这起作用?我使用的是蚂蚁 1.7.0.
(where DIR is set to some directory) and it does nothing. How can this be made to work? I'm using ant 1.7.0.
仅供参考:我尝试了许多不同的嵌套元素组合,dirset
而不是 fileset
,但它仍然不起作用.:(
FYI: I've tried lots of different combinations of nested elements, dirset
instead of fileset
and it still doesn't work. :(
推荐答案
为什么不直接使用 svn export 来代替?
Why don't you just use svn export instead?
无论如何,看起来(从这里)以下应该有效:
Anyway, looks like ( from here ) the following should work:
<echo level="info">Remove svn-files...</echo>
<delete includeemptydirs="true" >
<fileset dir="${checkout.dir}" defaultexcludes="false" >
<include name="**/.svn/" />
</fileset>
</delete>
这篇关于如何使用 ant 删除 .svn 目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文