/** * Returns an error description formatted with the * related objects if needed. This call is equivalent to * a call to {@link #toString()} * * @return an error message */ public String getMessage() { return toString(); }
/** * Returns an error description formatted with the * related objects if needed. This call is equivalent to * a call to {@link #toString()} * * @return an error message */ public String getMessage() { return toString(); }
/** * Returns an error description formatted with the * related objects if needed. This call is equivalent to * a call to {@link #toString()} * * @return an error message */ public String getMessage() { return toString(); }
/** * Returns an error description formatted with the * related objects if needed. This call is equivalent to * a call to {@link #toString()} * * @return an error message */ public String getMessage() { return toString(); }
@Override public String call() throws DebianizingException { SvnClientManager clientManager = SubversionSCM.createClientManager(provider); try { SVNCommitPacket changeset = clientManager.getCommitClient().doCollectCommitItems(new File[] {new File(path)}, false, true, SVNDepth.INFINITY, null); if (changeset != SVNCommitPacket.EMPTY) { SVNCommitInfo commitInfo = clientManager.getCommitClient().doCommit(changeset, false, commitMessage); if (commitInfo.getErrorMessage() != null) { throw new DebianizingException(MessageFormat.format("Error while commiting <{0}>: {1}", path, commitInfo.getErrorMessage().toString())); } else { return Long.toString(commitInfo.getNewRevision()); } } else { throw new DebianizingException("There was nothing to commit."); } } catch (SVNException e) { throw new DebianizingException("SVNException: " + e.getMessage(), e); } finally { clientManager.dispose(); } } }