Codota Logo
SVNXMLLogHandler
Code IndexAdd Codota to your IDE (free)

How to use
SVNXMLLogHandler
in
org.tmatesoft.svn.core.wc.xml

Best Java code snippets using org.tmatesoft.svn.core.wc.xml.SVNXMLLogHandler (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: org.tmatesoft/svn

  return;
addAttribute(REVISION_ATTR, logEntry.getRevision() + "");
openTag(LOGENTRY_TAG);
if (logEntry.getAuthor() != null) {
  addTag(AUTHOR_TAG, logEntry.getAuthor());
  addTag(DATE_TAG, SVNTimeUtil.formatDate(logEntry.getDate()));
  openTag(PATHS_TAG);
  for (Iterator paths = logEntry.getChangedPaths().keySet().iterator(); paths.hasNext();) {
    String key = (String) paths.next();
    SVNLogEntryPath path = (SVNLogEntryPath) logEntry.getChangedPaths().get(key);
    addAttribute(ACTION_ATTR, path.getType() + "");
    if (path.getCopyPath() != null) {
      addAttribute(COPYFROM_PATH_ATTR, SVNEncodingUtil.xmlEncodeAttr(path.getCopyPath()));
      addAttribute(COPYFROM_REV_ATTR, path.getCopyRevision() + "");
    addTag(PATH_TAG, SVNEncodingUtil.xmlEncodeAttr(path.getPath()));
  closeTag(PATHS_TAG);
addTag(MSG_TAG, message);
closeTag(LOGENTRY_TAG);
origin: org.tmatesoft/svn

public void handleLogEntry(SVNLogEntry logEntry) throws SVNException {
  try {
    sendToHandler(logEntry);
  } catch (SAXException e) {
    SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.XML_MALFORMED, e.getLocalizedMessage());
    SVNErrorManager.error(err, e);
  }
}
 
origin: org.jvnet.hudson.plugins/subversion

public boolean run(Collection<SubversionSCM.External> externals, Result changeLog) throws IOException, InterruptedException {
  boolean changelogFileCreated = false;
  final SVNClientManager manager = SubversionSCM.createSvnClientManager(build.getProject());
  try {
    SVNLogClient svnlc = manager.getLogClient();
    TransformerHandler th = createTransformerHandler();
    th.setResult(changeLog);
    SVNXMLLogHandler logHandler = new SVNXMLLogHandler(th);
    // work around for http://svnkit.com/tracker/view.php?id=175
    th.setDocumentLocator(DUMMY_LOCATOR);
    logHandler.startDocument();
    for (ModuleLocation l : scm.getLocations(build)) {
      changelogFileCreated |= buildModule(l.getURL(), svnlc, logHandler);
    }
    for(SubversionSCM.External ext : externals) {
      changelogFileCreated |= buildModule(
          getUrlForPath(build.getWorkspace().child(ext.path)), svnlc, logHandler);
    }
    if(changelogFileCreated) {
      logHandler.endDocument();
    }
    return changelogFileCreated;
  } finally {
    manager.dispose();
  }
}
origin: org.hudsonci.plugins/subversion

public boolean run(Collection<SubversionSCM.External> externals, Result changeLog) throws IOException, InterruptedException {
  boolean changelogFileCreated = false;
  final SVNClientManager manager = SubversionSCM.createSvnClientManager(build.getProject());
  try {
    SVNLogClient svnlc = manager.getLogClient();
    TransformerHandler th = createTransformerHandler();
    th.setResult(changeLog);
    SVNXMLLogHandler logHandler = new SVNXMLLogHandler(th);
    // work around for http://svnkit.com/tracker/view.php?id=175
    th.setDocumentLocator(DUMMY_LOCATOR);
    logHandler.startDocument();
    for (ModuleLocation l : scm.getLocations(build)) {
      changelogFileCreated |= buildModule(l.getURL(), svnlc, logHandler);
    }
    for(SubversionSCM.External ext : externals) {
      changelogFileCreated |= buildModule(
          getUrlForPath(build.getWorkspace().child(ext.path)), svnlc, logHandler);
    }
    if(changelogFileCreated) {
      logHandler.endDocument();
    }
    return changelogFileCreated;
  } finally {
    manager.dispose();
  }
}
origin: org.jvnet.hudson.svnkit/svnkit

addAttribute(REVISION_ATTR, logEntry.getRevision() + "");
openTag(LOGENTRY_TAG);
if (logEntry.getAuthor() != null) {
  addTag(AUTHOR_TAG, logEntry.getAuthor());
  addTag(DATE_TAG, SVNDate.formatDate(logEntry.getDate()));
  openTag(PATHS_TAG);
  for (Iterator paths = logEntry.getChangedPaths().keySet().iterator(); paths.hasNext();) {
    String key = (String) paths.next();
    SVNLogEntryPath path = (SVNLogEntryPath) logEntry.getChangedPaths().get(key);
    addAttribute(ACTION_ATTR, path.getType() + "");
    if (path.getCopyPath() != null) {
      addAttribute(COPYFROM_PATH_ATTR, path.getCopyPath());
      addAttribute(COPYFROM_REV_ATTR, path.getCopyRevision() + "");
    addTag(PATH_TAG, path.getPath());
  closeTag(PATHS_TAG);
  String message = logEntry.getMessage();
  message = message == null ? "" : message;
  addTag(MSG_TAG, message);
    MergeFrame frame = (MergeFrame) myMergeStack.getLast();
    if (frame.myNumberOfChildrenRemaining == 0) {
      closeTag(LOGENTRY_TAG);
      myMergeStack.removeLast();
    } else {
origin: org.codehaus.jtstand/jtstand-svnkit

/**
 * Handles a next log entry producing corresponding xml.
 * 
 * @param  logEntry       log entry 
 * @throws SVNException 
 */
public void handleLogEntry(SVNLogEntry logEntry) throws SVNException {
  try {
    sendToHandler(logEntry);
  } catch (SAXException e) {
    SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.XML_MALFORMED, e.getLocalizedMessage());
    SVNErrorManager.error(err, e, SVNLogType.DEFAULT);
  }
}

origin: org.tmatesoft.svnkit/svnkit

addAttribute(REVISION_ATTR, logEntry.getRevision() + "");
openTag(LOGENTRY_TAG);
if (logEntry.getAuthor() != null) {
  addTag(AUTHOR_TAG, logEntry.getAuthor());
  addTag(DATE_TAG, SVNDate.formatDate(logEntry.getDate()));
  openTag(PATHS_TAG);
  for (Iterator paths = logEntry.getChangedPaths().keySet().iterator(); paths.hasNext();) {
    String key = (String) paths.next();
    SVNLogEntryPath path = (SVNLogEntryPath) logEntry.getChangedPaths().get(key);
    addAttribute(ACTION_ATTR, path.getType() + "");
    if (path.getCopyPath() != null) {
      addAttribute(COPYFROM_PATH_ATTR, path.getCopyPath());
      addAttribute(COPYFROM_REV_ATTR, path.getCopyRevision() + "");
    addTag(PATH_TAG, path.getPath());
  closeTag(PATHS_TAG);
  String message = logEntry.getMessage();
  message = message == null ? "" : message;
  addTag(MSG_TAG, message);
    MergeFrame frame = (MergeFrame) myMergeStack.getLast();
    if (frame.myNumberOfChildrenRemaining == 0) {
      closeTag(LOGENTRY_TAG);
      myMergeStack.removeLast();
    } else {
origin: org.tmatesoft.svnkit/svnkit

/**
 * Handles a next log entry producing corresponding xml.
 * 
 * @param  logEntry       log entry 
 * @throws SVNException 
 */
public void handleLogEntry(SVNLogEntry logEntry) throws SVNException {
  try {
    sendToHandler(logEntry);
  } catch (SAXException e) {
    SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.XML_MALFORMED, e.getLocalizedMessage());
    SVNErrorManager.error(err, e, SVNLogType.DEFAULT);
  }
}

origin: org.codehaus.jtstand/jtstand-svnkit

addAttribute(REVISION_ATTR, logEntry.getRevision() + "");
openTag(LOGENTRY_TAG);
if (logEntry.getAuthor() != null) {
  addTag(AUTHOR_TAG, logEntry.getAuthor());
  addTag(DATE_TAG, SVNDate.formatDate(logEntry.getDate()));
  openTag(PATHS_TAG);
  for (Iterator paths = logEntry.getChangedPaths().keySet().iterator(); paths.hasNext();) {
    String key = (String) paths.next();
    SVNLogEntryPath path = (SVNLogEntryPath) logEntry.getChangedPaths().get(key);
    addAttribute(ACTION_ATTR, path.getType() + "");
    if (path.getCopyPath() != null) {
      addAttribute(COPYFROM_PATH_ATTR, path.getCopyPath());
      addAttribute(COPYFROM_REV_ATTR, path.getCopyRevision() + "");
    addTag(PATH_TAG, path.getPath());
  closeTag(PATHS_TAG);
  String message = logEntry.getMessage();
  message = message == null ? "" : message;
  addTag(MSG_TAG, message);
    MergeFrame frame = (MergeFrame) myMergeStack.getLast();
    if (frame.myNumberOfChildrenRemaining == 0) {
      closeTag(LOGENTRY_TAG);
      myMergeStack.removeLast();
    } else {
origin: org.jvnet.hudson.svnkit/svnkit

/**
 * Handles a next log entry producing corresponding xml.
 * 
 * @param  logEntry       log entry 
 * @throws SVNException 
 */
public void handleLogEntry(SVNLogEntry logEntry) throws SVNException {
  try {
    sendToHandler(logEntry);
  } catch (SAXException e) {
    SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.XML_MALFORMED, e.getLocalizedMessage());
    SVNErrorManager.error(err, e, SVNLogType.DEFAULT);
  }
}

org.tmatesoft.svn.core.wc.xmlSVNXMLLogHandler

Javadoc

This log handler implementation writes xml formatted information about the log entries it's passed to a specified ContentHandler.

Most used methods

  • addAttribute
  • addTag
  • closeTag
  • openTag
  • sendToHandler
  • <init>
    Creates a new log handler.
  • endDocument
  • startDocument

Popular in Java

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JLabel (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now