Tabnine Logo
SVNXMLLogHandler.startDocument
Code IndexAdd Tabnine to your IDE (free)

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

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

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();
  }
}
org.tmatesoft.svn.core.wc.xmlSVNXMLLogHandlerstartDocument

Popular methods of SVNXMLLogHandler

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

Popular in Java

  • Reading from database using SQL prepared statement
  • getSharedPreferences (Context)
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • ImageIO (javax.imageio)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now