org.apache.openjpa.lib.util.svn
Class SVNUtils

java.lang.Object
  extended by org.apache.openjpa.lib.util.svn.SVNUtils

public class SVNUtils
extends Object


Field Summary
(package private) static Pattern fullRevisionPattern
           
(package private) static Pattern revisionPattern
           
 
Constructor Summary
SVNUtils()
           
 
Method Summary
static int svnInfoToInteger(String svninfo)
          A public worker method that takes the output from running the svnversion command and parses the trailing integer version out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fullRevisionPattern

static final Pattern fullRevisionPattern

revisionPattern

static final Pattern revisionPattern
Constructor Detail

SVNUtils

public SVNUtils()
Method Detail

svnInfoToInteger

public static int svnInfoToInteger(String svninfo)
A public worker method that takes the output from running the svnversion command and parses the trailing integer version out. For example: 959691:959709M would return 959709

Parameters:
svninfo -
Returns:
The formatted int version, or -1 if svninfo is null or unparsable.


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.