org.apache.openjpa.lib.util.svn
Class SVNUtils
java.lang.Object
org.apache.openjpa.lib.util.svn.SVNUtils
public class SVNUtils
- extends Object
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 |
fullRevisionPattern
static final Pattern fullRevisionPattern
revisionPattern
static final Pattern revisionPattern
SVNUtils
public SVNUtils()
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-2012 Apache Software Foundation. All Rights Reserved.