[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

SvnAnt: property prefix inconsistency

From: Ludwig, Michael <Michael.Ludwig_at_delphi-mb.de>
Date: Tue, 9 Nov 2010 12:24:06 +0100

SvnAnt tasks return information to the caller by setting various properties.

The caller can have the library apply prefixes to these properties.

There are inconsistencies in how prefixes are applied to these properties.

Here's an example:

<project>
  <typedef resource="org/tigris/subversion/svnant/svnantlib.xml" />
  <svn>
    <info target="." propPrefix="svn.info"/>
    <wcversion path="." prefix="svn.wcv."/><!-- extra dot -->
  </svn>
  <echoproperties prefix="svn"/>
</project>

svn.wcvmodified=true - without extra dot
svn.wcv.modified=true - with extra dot

The dot after "svn.wcv" shouldn't be required to get the latter version. The dot is automatically inserted for <info/>, and that seems correct to me: it's what I expected.

Also, a consistent name for the prefixing attribute might increase user-friendliness.

Otherwise, thanks for a very useful library!

Michael Ludwig
Received on 2010-11-09 12:24:46 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.