开发者

How to use -v trigger in svnant log task?

开发者 https://www.devze.com 2023-02-06 15:36 出处:网络
in my Ant build script, I\'m using svnant to retrieve SVN logs for specific directories; now I want to see the changed files, too. I tried

in my Ant build script, I'm using svnant to retrieve SVN logs for specific directories; now I want to see the changed files, too. I tried

<svn username="${svn.username}" password="${svn.password}" failonerror="true">
  <log path="${dir}" destFile="${dest}" asXml="false" verbose="true" />
</svn>

and fai开发者_Python百科led miserably with

log doesn't support the "verbose" attribute

After some research I found out that someone already tried to implement this (source) but the svn log of the log command source (hey, recursion!) says

~ dropped the 'verbose' attribute on commands as this option is passed by the ant execution

Perhaps I'm thinking only inside the box, but I just don't get it ... where do I pass this option? If I can't pass it in my ant script, is there a possibility to force svnant log to be verbose apart from tampering with the source and compiling my own svnant?


We use code like this to get a file list:

<svn refid="svn.settings">
   <log url="${env.SVN_URL}" startRevision="${start.revision}" stopRevision="${env.SVN_REVISION}" changedPathes="true" destFile="${svn.changed.files.xml}" />
</svn>

Based on the differences between your code and ours I'd expect the following to work:

<svn username="${svn.username}" password="${svn.password}" failonerror="true">
   <log path="${dir}" startRevision="${start.revision}" stopRevision="${env.SVN_REVISION}" changedPathes="true" destFile="${dest}" />
</svn>

The start and stop revision may not be needed and thus you would have:

<svn username="${svn.username}" password="${svn.password}" failonerror="true">
   <log path="${dir}" changedPathes="true" destFile="${dest}" />
</svn>
0

精彩评论

暂无评论...
验证码 换一张
取 消