/** * Closes the formatted XML with the revision against which * the status is run. * * @param revision a revision against which the status is run */ public void endTarget(long revision) { try { myTargetPath = null; if (revision >= 0) { addAttribute(REVISION_ATTR, revision + ""); openTag(AGAINST_TAG); closeTag(AGAINST_TAG); } closeTag(TARGET_TAG); } catch (SAXException e) { getDebugLog().logSevere(SVNLogType.DEFAULT, e); } }
protected String getTargetPath() { return getRelativePath(myTargetPath); }
/** * Begins an XML tree with the target path for which the * status is run. * * @param path a WC target path */ public void startTarget(File path) { try { myTargetPath = path; addAttribute(PATH_ATTR, path.getPath()); openTag(TARGET_TAG); } catch (SAXException e) { getDebugLog().logSevere(SVNLogType.DEFAULT, e); } }
private void sendToHandler(SVNStatus status) throws SAXException { addAttribute(PATH_ATTR, getRelativePath(status.getFile())); openTag(ENTRY_TAG); addAttribute(PROPS_ATTR, status.getPropertiesStatus().toString()); addAttribute(ITEM_ATTR, status.getContentsStatus().toString()); if (status.isLocked()) { addAttribute(WC_LOCKED_ATTR, TRUE); addAttribute(COPIED_ATTR, TRUE); addAttribute(SWITCHED_ATTR, TRUE); addAttribute(REVISION_ATTR, status.getRevision().toString()); openTag(WC_STATUS_TAG); if (status.getCommittedRevision() != null && status.getCommittedRevision().getNumber() >= 0) { addAttribute(REVISION_ATTR, status.getCommittedRevision().toString()); openTag(COMMIT_TAG); addTag(AUTHOR_TAG, status.getAuthor()); if (status.getCommittedDate() != null) { addTag(DATE_TAG, SVNTimeUtil.formatDate(status.getCommittedDate())); closeTag(COMMIT_TAG); openTag(LOCK_TAG); addTag(TOKEN_TAG, status.getLocalLock().getID()); addTag(OWNER_TAG, status.getLocalLock().getOwner()); addTag(COMMENT_TAG, status.getLocalLock().getComment()); addTag(CREATED_TAG, SVNTimeUtil.formatDate(status.getLocalLock().getCreationDate())); closeTag(LOCK_TAG);
public void handleStatus(SVNStatus status) throws SVNException { try { sendToHandler(status); } catch (SAXException th) { getDebugLog().error(th); SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.XML_MALFORMED, th.getLocalizedMessage()); SVNErrorManager.error(err, th); } }
private void sendToHandler(SVNStatus status) throws SAXException { addAttribute(PATH_ATTR, getRelativePath(status.getFile())); openTag(ENTRY_TAG); addAttribute(PROPS_ATTR, status.getPropertiesStatus().toString()); addAttribute(ITEM_ATTR, status.getContentsStatus().toString()); if (status.isLocked()) { addAttribute(WC_LOCKED_ATTR, TRUE); addAttribute(COPIED_ATTR, TRUE); addAttribute(SWITCHED_ATTR, TRUE); addAttribute(REVISION_ATTR, status.getRevision().toString()); openTag(WC_STATUS_TAG); if (status.getCommittedRevision() != null && status.getCommittedRevision().getNumber() >= 0) { addAttribute(REVISION_ATTR, status.getCommittedRevision().toString()); openTag(COMMIT_TAG); addTag(AUTHOR_TAG, status.getAuthor()); if (status.getCommittedDate() != null) { addTag(DATE_TAG, SVNDate.formatDate(status.getCommittedDate())); closeTag(COMMIT_TAG); openTag(LOCK_TAG); addTag(TOKEN_TAG, status.getLocalLock().getID()); addTag(OWNER_TAG, status.getLocalLock().getOwner()); addTag(COMMENT_TAG, status.getLocalLock().getComment()); addTag(CREATED_TAG, SVNDate.formatDate(status.getLocalLock().getCreationDate())); closeTag(LOCK_TAG);
/** * Begins an XML tree with the target path for which the * status is run. * * @param path a WC target path */ public void startTarget(File path) { try { myTargetPath = path; addAttribute(PATH_ATTR, path.getPath()); openTag(TARGET_TAG); } catch (SAXException e) { getDebugLog().error(e); } }
/** * Handles a next <code>status</code> object producing corresponding xml. * * @param status * @throws SVNException */ public void handleStatus(SVNStatus status) throws SVNException { try { sendToHandler(status); } catch (SAXException th) { getDebugLog().logSevere(SVNLogType.DEFAULT, th); SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.XML_MALFORMED, th.getLocalizedMessage()); SVNErrorManager.error(err, th, SVNLogType.DEFAULT); } }
private void sendToHandler(SVNStatus status) throws SAXException { addAttribute(PATH_ATTR, getRelativePath(status.getFile())); openTag(ENTRY_TAG); addAttribute(PROPS_ATTR, status.getPropertiesStatus().toString()); addAttribute(ITEM_ATTR, status.getContentsStatus().toString()); if (status.isLocked()) { addAttribute(WC_LOCKED_ATTR, TRUE); addAttribute(COPIED_ATTR, TRUE); addAttribute(SWITCHED_ATTR, TRUE); addAttribute(REVISION_ATTR, status.getRevision().toString()); openTag(WC_STATUS_TAG); if (status.getCommittedRevision() != null && status.getCommittedRevision().getNumber() >= 0) { addAttribute(REVISION_ATTR, status.getCommittedRevision().toString()); openTag(COMMIT_TAG); addTag(AUTHOR_TAG, status.getAuthor()); if (status.getCommittedDate() != null) { addTag(DATE_TAG, SVNDate.formatDate(status.getCommittedDate())); closeTag(COMMIT_TAG); openTag(LOCK_TAG); addTag(TOKEN_TAG, status.getLocalLock().getID()); addTag(OWNER_TAG, status.getLocalLock().getOwner()); addTag(COMMENT_TAG, status.getLocalLock().getComment()); addTag(CREATED_TAG, SVNDate.formatDate(status.getLocalLock().getCreationDate())); closeTag(LOCK_TAG);
/** * Closes the formatted XML with the revision against which * the status is run. * * @param revision a revision against which the status is run */ public void endTarget(long revision) { try { myTargetPath = null; if (revision >= 0) { addAttribute(REVISION_ATTR, revision + ""); openTag(AGAINST_TAG); closeTag(AGAINST_TAG); } closeTag(TARGET_TAG); } catch (SAXException e) { getDebugLog().logSevere(SVNLogType.DEFAULT, e); } }
/** * Begins an XML tree with the target path for which the * status is run. * * @param path a WC target path */ public void startTarget(File path) { try { myTargetPath = path; addAttribute(PATH_ATTR, path.getPath()); openTag(TARGET_TAG); } catch (SAXException e) { getDebugLog().logSevere(SVNLogType.DEFAULT, e); } }
/** * Handles a next <code>status</code> object producing corresponding xml. * * @param status * @throws SVNException */ public void handleStatus(SVNStatus status) throws SVNException { try { sendToHandler(status); } catch (SAXException th) { getDebugLog().logSevere(SVNLogType.DEFAULT, th); SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.XML_MALFORMED, th.getLocalizedMessage()); SVNErrorManager.error(err, th, SVNLogType.DEFAULT); } }
protected String getTargetPath() { return getRelativePath(myTargetPath); }
private void sendToHandler(SVNStatus status) throws SAXException { addAttribute(PATH_ATTR, getRelativePath(status.getFile())); openTag(ENTRY_TAG); addAttribute(PROPS_ATTR, status.getPropertiesStatus().toString()); addAttribute(ITEM_ATTR, status.getContentsStatus().toString()); if (status.isLocked()) { addAttribute(WC_LOCKED_ATTR, TRUE); addAttribute(COPIED_ATTR, TRUE); addAttribute(SWITCHED_ATTR, TRUE); addAttribute(REVISION_ATTR, status.getRevision().toString()); openTag(WC_STATUS_TAG); if (status.getCommittedRevision() != null && status.getCommittedRevision().getNumber() >= 0) { addAttribute(REVISION_ATTR, status.getCommittedRevision().toString()); openTag(COMMIT_TAG); addTag(AUTHOR_TAG, status.getAuthor()); if (status.getCommittedDate() != null) { addTag(DATE_TAG, SVNDate.formatDate(status.getCommittedDate())); closeTag(COMMIT_TAG); openTag(LOCK_TAG); addTag(TOKEN_TAG, status.getLocalLock().getID()); addTag(OWNER_TAG, status.getLocalLock().getOwner()); addTag(COMMENT_TAG, status.getLocalLock().getComment()); addTag(CREATED_TAG, SVNDate.formatDate(status.getLocalLock().getCreationDate())); closeTag(LOCK_TAG);
/** * Closes the formatted XML with the revision against which * the status is run. * * @param revision a revision against which the status is run */ public void endTarget(long revision) { try { myTargetPath = null; if (revision >= 0) { addAttribute(REVISION_ATTR, revision + ""); openTag(AGAINST_TAG); closeTag(AGAINST_TAG); } closeTag(TARGET_TAG); } catch (SAXException e) { getDebugLog().error(e); } }
/** * Begins an XML tree with the target path for which the * status is run. * * @param path a WC target path */ public void startTarget(File path) { try { myTargetPath = path; addAttribute(PATH_ATTR, path.getPath()); openTag(TARGET_TAG); } catch (SAXException e) { getDebugLog().logSevere(SVNLogType.DEFAULT, e); } }
/** * Handles a next <code>status</code> object producing corresponding xml. * * @param status * @throws SVNException */ public void handleStatus(SVNStatus status) throws SVNException { try { sendToHandler(status); } catch (SAXException th) { getDebugLog().logSevere(SVNLogType.DEFAULT, th); SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.XML_MALFORMED, th.getLocalizedMessage()); SVNErrorManager.error(err, th, SVNLogType.DEFAULT); } }
protected String getTargetPath() { return getRelativePath(myTargetPath); }
/** * Closes the formatted XML with the revision against which * the status is run. * * @param revision a revision against which the status is run */ public void endTarget(long revision) { try { myTargetPath = null; if (revision >= 0) { addAttribute(REVISION_ATTR, revision + ""); openTag(AGAINST_TAG); closeTag(AGAINST_TAG); } closeTag(TARGET_TAG); } catch (SAXException e) { getDebugLog().logSevere(SVNLogType.DEFAULT, e); } }
protected String getTargetPath() { return getRelativePath(myTargetPath); }