if (this.serverImpl.getServerVersionNumber() >= MINIMUM_ACTION_RESOLVE_SERVER_VERSION) { if (startFromRev != -1 || endFromRev != -1) { args.add("-Ac");
if (this.serverImpl.getServerVersionNumber() >= MINIMUM_ACTION_RESOLVE_SERVER_VERSION) { if (startFromRev != -1 || endFromRev != -1) { args.add("-Ac");
/** * @see com.perforce.p4java.client.IClient#editFiles(java.util.List, boolean, boolean, int, java.lang.String) */ @Override public List<IFileSpec> editFiles(List<IFileSpec> fileSpecs, boolean noUpdate, boolean bypassClientUpdate, int changeListId, String fileType) throws RequestException, ConnectionException, AccessException { final int MINIMUM_OPTION_K_SERVER_VERSION = 20092; // minimum version number supporting bypassClientUpdate if (bypassClientUpdate) { if (this.serverImpl.getServerVersionNumber() < MINIMUM_OPTION_K_SERVER_VERSION) { throw new RequestException( "edit option 'bypassClientUpdate' only supported on servers 2009.2 and later"); } } try { return editFiles(fileSpecs, new EditFilesOptions( noUpdate, bypassClientUpdate, changeListId, fileType)); } catch (ConnectionException exc) { throw exc; } catch (AccessException exc) { throw exc; } catch (RequestException exc) { throw exc; } catch (P4JavaException exc) { throw new RequestException(exc.getMessage(), exc); } }
/** * @see com.perforce.p4java.client.IClient#editFiles(java.util.List, boolean, boolean, int, java.lang.String) */ @Override public List<IFileSpec> editFiles(List<IFileSpec> fileSpecs, boolean noUpdate, boolean bypassClientUpdate, int changeListId, String fileType) throws RequestException, ConnectionException, AccessException { final int MINIMUM_OPTION_K_SERVER_VERSION = 20092; // minimum version number supporting bypassClientUpdate if (bypassClientUpdate) { if (this.serverImpl.getServerVersionNumber() < MINIMUM_OPTION_K_SERVER_VERSION) { throw new RequestException( "edit option 'bypassClientUpdate' only supported on servers 2009.2 and later"); } } try { return editFiles(fileSpecs, new EditFilesOptions( noUpdate, bypassClientUpdate, changeListId, fileType)); } catch (ConnectionException exc) { throw exc; } catch (AccessException exc) { throw exc; } catch (RequestException exc) { throw exc; } catch (P4JavaException exc) { throw new RequestException(exc.getMessage(), exc); } }