在我的Ant构建脚本中,我使用svnant检索特定目录的SVN日志;现在,我也希望看到已更改的文件。我试过了
<svn username="${svn.username}" password="${svn.password}" failonerror="true">
<log path="${dir}" destFile="${dest}" asXml="false" verbose="true" />
</svn>不幸地失败了
日志不支持“详细”属性
经过一些研究,我发现已经有人试图实现这个(来源),但是日志命令源的svn日志(嘿,递归!)他说
~在ant执行传递此选项时,将命令中的“详细”属性删除
也许我只是想在盒子里,但我就是不明白.我该在哪里通过这个选项?如果我不能在ant脚本中传递它,那么除了篡改源代码和编译我自己的svnant之外,有没有可能强迫svnant日志冗长?
发布于 2013-05-06 20:10:30
我们使用这样的代码来获取文件列表:
<svn refid="svn.settings">
<log url="${env.SVN_URL}" startRevision="${start.revision}" stopRevision="${env.SVN_REVISION}" changedPathes="true" destFile="${svn.changed.files.xml}" />
</svn>基于您的代码与我们的代码之间的差异,我希望以下内容能够奏效:
<svn username="${svn.username}" password="${svn.password}" failonerror="true">
<log path="${dir}" startRevision="${start.revision}" stopRevision="${env.SVN_REVISION}" changedPathes="true" destFile="${dest}" />
</svn>可能不需要开始和停止修订,因此您可以:
<svn username="${svn.username}" password="${svn.password}" failonerror="true">
<log path="${dir}" changedPathes="true" destFile="${dest}" />
</svn>https://stackoverflow.com/questions/4803669
复制相似问题