Maven, Subversion, Javadocs

is there any way to modify Javadocs @version value and add revision number of the file automaticly on SVN repository?

example template @version $v rev. $rev

and output @version v2.1 rev. 74321

update: i want to add revision numbers and "maybe" if it would be possible, tag-names as versions

Answers


You can use Subversion keyword substitution to substitute the revision number. For instance:

/**
 * Get the <tt>foo</tt> value.
 *
 * @version $Revision$
 */
class Foo
{
    ...
}

However, you'll need to set the svn:keywords property on each of the files for which you want to do that expansion. e.g.:

$ svn propset svn:keywords "Revision" Foo.java
property 'svn:keywords' set on 'Foo.java'

Need Your Help

Anonymous subroutines/subroutine references stored in data structures

perl perl-data-structures

Why would I use Perl anonymous subroutines instead of a named one? inspired me to think about the merit of:

Explanation on connect in Qt

c++ qt signals connect

I need a bit of an explanation about the connect function and his use. I already connect signal and QButton or signal and timer.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.