如何使用 svn ant Ant 将所有删除的文件名保存在 .txt 文件中
我正在使用 Ant 在 SVN 命令中工作,我面临一个问题,我无法列出存储库中所有已删除的文件....这是显示项目中已完成的所有更改的代码.. ..
<target name ="change">
<svn username="username" password="password">
<log path="D:\url\to\the\file" destFile="changes.txt" asXml="false"/>
</svn>
</target>
它使用这个文件,但我想知道如何插入一个参数,
我设法使用命令提示符获取该数据,这里是命令
svn log -v --xml D:\url\to\the\file | grep '动作=“D”'
i'm working in SVN commands using Ant, and i face a problem that i can't list all the deleted files from the repository .... here is the code to show all the changes that have been done in the project ....
<target name ="change">
<svn username="username" password="password">
<log path="D:\url\to\the\file" destFile="changes.txt" asXml="false"/>
</svn>
</target>
it using this file, but i want to know how i can insert an argument
i manage to get that data using the command prompt here is the command
svn log -v --xml D:\url\to\the\file | grep 'action="D"'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
任务来执行 svn log -v --xml D:\url\to\the\file | grep 'action="D"' 并获取您需要的内容。或者您必须自己扩展/修改 svn 任务。You can use the
<exec>
task to executesvn log -v --xml D:\url\to\the\file | grep 'action="D"'
and get what you need. Or you have to extend / modify thesvn
task yourself.