/** * @return The full version string for the loaded JavaHL library, * as defined by <code>MAJOR.MINOR.PATCH INFO</code>. * @since 1.4.0 */ public String toString() { StringBuffer version = new StringBuffer(); version.append(getMajor()) .append('.').append(getMinor()) .append('.').append(getPatch()) .append(getNumberTag()) .append(getTag()); return version.toString(); }
/** * @return Whether the JavaHL native library version is at least * of <code>major.minor.patch</code> level. * @since 1.5.0 */ public boolean isAtLeast(int major, int minor, int patch) { int actualMajor = getMajor(); int actualMinor = getMinor(); return ((major < actualMajor) || (major == actualMajor && minor < actualMinor) || (major == actualMajor && minor == actualMinor && patch <= getPatch())); }
/** * Test SVNClient.getVersion(). * @throws Throwable */ public void testVersion() throws Throwable { try { Version version = client.getVersion(); String versionString = version.toString(); if (versionString == null || versionString.trim().length() == 0) { throw new Exception("Version string empty"); } } catch (Exception e) { fail("Version should always be available unless the " + "native libraries failed to initialize: " + e); } }
/** * Initializer for native resources to be invoked <em>after</em> * the native library has been loaded. Sets library version * information, and initializes the re-entrance hack for native * code. * @throws LinkageError If the version of the loaded native * library is not compatible with this version of JavaHL's Java * APIs. */ private static final void init() { initNativeLibrary(); version = new Version(); if (!version.isAtLeast(1, 5, 0)) { throw new LinkageError("Native library version must be at least " + "1.5.0, but is only " + version); } }
/** * list all logfiles (BDB) in use or not) * * @param path the path to the repository * @param receiver interface to receive the logfile names * @throws ClientException throw in case of problem */ public void listDBLogs(String path, MessageReceiver receiver) throws ClientException { notImplementedYet("Only " + FSFS + " type of repositories are supported by " + getVersion().toString()); }
/** * @return Whether the JavaHL native library version is at least * of <code>major.minor.patch</code> level. * @since 1.5.0 */ public boolean isAtLeast(int major, int minor, int patch) { int actualMajor = getMajor(); int actualMinor = getMinor(); return ((major < actualMajor) || (major == actualMajor && minor < actualMinor) || (major == actualMajor && minor == actualMinor && patch <= getPatch())); }
/** * Initializer for native resources to be invoked <em>after</em> * the native library has been loaded. Sets library version * information, and initializes the re-entrance hack for native * code. * @throws LinkageError If the version of the loaded native * library is not compatible with this version of JavaHL's Java * APIs. */ private static final void init() { initNativeLibrary(); version = new Version(); if (!version.isAtLeast(1, 5, 0)) { throw new LinkageError("Native library version must be at least " + "1.5.0, but is only " + version); } }
/** * @return The full version string for the loaded JavaHL library, * as defined by <code>MAJOR.MINOR.PATCH INFO</code>. * @since 1.4.0 */ public String toString() { StringBuffer version = new StringBuffer(); version.append(getMajor()) .append('.').append(getMinor()) .append('.').append(getPatch()) .append(getNumberTag()) .append(getTag()); return version.toString(); }
/** * list unused logfiles * * @param path the path to the repository * @param receiver interface to receive the logfile names * @throws ClientException throw in case of problem */ public void listUnusedDBLogs(String path, MessageReceiver receiver) throws ClientException { notImplementedYet("Only " + FSFS + " type of repositories are supported by " + getVersion().toString()); }
/** * @return Whether the JavaHL native library version is at least * of <code>major.minor.patch</code> level. * @since 1.5.0 */ public boolean isAtLeast(int major, int minor, int patch) { int actualMajor = getMajor(); int actualMinor = getMinor(); return ((major < actualMajor) || (major == actualMajor && minor < actualMinor) || (major == actualMajor && minor == actualMinor && patch <= getPatch())); }
/** * Initializer for native resources to be invoked <em>after</em> * the native library has been loaded. Sets library version * information, and initializes the re-entrance hack for native * code. * @throws LinkageError If the version of the loaded native * library is not compatible with this version of JavaHL's Java * APIs. */ private static final void init() { initNativeLibrary(); version = new Version(); if (!version.isAtLeast(1, 5, 0)) { throw new LinkageError("Native library version must be at least " + "1.5.0, but is only " + version); } }
/** * @return The full version string for the loaded JavaHL library, * as defined by <code>MAJOR.MINOR.PATCH INFO</code>. * @since 1.4.0 */ public String toString() { StringBuffer version = new StringBuffer(); version.append(getMajor()) .append('.').append(getMinor()) .append('.').append(getPatch()) .append(getNumberTag()) .append(getTag()); return version.toString(); }
/** * list all logfiles (BDB) in use or not) * * @param path the path to the repository * @param receiver interface to receive the logfile names * @throws ClientException throw in case of problem */ public void listDBLogs(String path, MessageReceiver receiver) throws ClientException { notImplementedYet("Only " + FSFS + " type of repositories are supported by " + getVersion().toString()); }
/** * list all logfiles (BDB) in use or not) * * @param path the path to the repository * @param receiver interface to receive the logfile names * @throws ClientException throw in case of problem */ public void listDBLogs(String path, MessageReceiver receiver) throws ClientException { notImplementedYet("Only " + FSFS + " type of repositories are supported by " + getVersion().toString()); }
/** * list unused logfiles * * @param path the path to the repository * @param receiver interface to receive the logfile names * @throws ClientException throw in case of problem */ public void listUnusedDBLogs(String path, MessageReceiver receiver) throws ClientException { notImplementedYet("Only " + FSFS + " type of repositories are supported by " + getVersion().toString()); }
/** * list unused logfiles * * @param path the path to the repository * @param receiver interface to receive the logfile names * @throws ClientException throw in case of problem */ public void listUnusedDBLogs(String path, MessageReceiver receiver) throws ClientException { notImplementedYet("Only " + FSFS + " type of repositories are supported by " + getVersion().toString()); }
/** * Test SVNClient.getVersion(). * @throws Throwable */ public void testVersion() throws Throwable { try { Version version = client.getVersion(); String versionString = version.toString(); if (versionString == null || versionString.trim().length() == 0) { throw new Exception("Version string empty"); } } catch (Exception e) { fail("Version should always be available unless the " + "native libraries failed to initialize: " + e); } }
/** * create a subversion repository. * * @param path the path where the repository will been * created. * @param disableFsyncCommit disable to fsync at the commit (BDB). * @param keepLog keep the log files (BDB). * @param configPath optional path for user configuration files. * @param fstype the type of the filesystem (BDB or FSFS) * @throws ClientException throw in case of problem */ public void create(String path, boolean disableFsyncCommit, boolean keepLog, String configPath, String fstype) throws ClientException { if (BDB.equalsIgnoreCase(fstype)) { notImplementedYet("Only " + FSFS + " type of repositories are supported by " + getVersion().toString()); } try { SVNRepositoryFactory.createLocalRepository(new File(path), false, false); if (configPath != null) { } } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } }
/** * create a subversion repository. * * @param path the path where the repository will been * created. * @param disableFsyncCommit disable to fsync at the commit (BDB). * @param keepLog keep the log files (BDB). * @param configPath optional path for user configuration files. * @param fstype the type of the filesystem (BDB or FSFS) * @throws ClientException throw in case of problem */ public void create(String path, boolean disableFsyncCommit, boolean keepLog, String configPath, String fstype) throws ClientException { if (BDB.equalsIgnoreCase(fstype)) { notImplementedYet("Only " + FSFS + " type of repositories are supported by " + getVersion().toString()); } try { SVNRepositoryFactory.createLocalRepository(new File(path), false, false); if (configPath != null) { } } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } }
/** * create a subversion repository. * * @param path the path where the repository will been * created. * @param disableFsyncCommit disable to fsync at the commit (BDB). * @param keepLog keep the log files (BDB). * @param configPath optional path for user configuration files. * @param fstype the type of the filesystem (BDB or FSFS) * @throws ClientException throw in case of problem */ public void create(String path, boolean disableFsyncCommit, boolean keepLog, String configPath, String fstype) throws ClientException { if (BDB.equalsIgnoreCase(fstype)) { notImplementedYet("Only " + FSFS + " type of repositories are supported by " + getVersion().toString()); } try { SVNRepositoryFactory.createLocalRepository(new File(path), false, false); if (configPath != null) { } } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } }