mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

ludovicp
21.30.2008 208ac44ce6e3a930ca4d4cfcd1177e7bd98458dd
opends/src/build-tools/org/opends/build/tools/GetSubversionRevision.java
@@ -34,9 +34,9 @@
import org.apache.tools.ant.Task;
import org.tmatesoft.svn.core.SVNException;
import org.tmatesoft.svn.core.wc.SVNClientManager;
import org.tmatesoft.svn.core.wc.SVNInfo;
import org.tmatesoft.svn.core.wc.SVNRevision;
import org.tmatesoft.svn.core.wc.SVNWCClient;
@@ -55,7 +55,9 @@
  // revision number.
  private String workspace = null;
  // The svn client manager. Required by svnkit 1.2.x
  private static SVNClientManager ourClientManager =
          SVNClientManager.newInstance();
  /**
   * Specifies the name of the Ant property into which the Subversion revision
@@ -110,11 +112,9 @@
    }
    SVNWCClient svnClient = new SVNWCClient(null, null);
    try
    {
      SVNInfo svnInfo = svnClient.doInfo(workspacePath, SVNRevision.WORKING);
      SVNInfo svnInfo = ourClientManager.getWCClient().doInfo(workspacePath, SVNRevision.WORKING);
      SVNRevision revision = svnInfo.getRevision();
      if (revision == null)
      {