Tabnine Logo
StreamTaskListener.annotate
Code IndexAdd Tabnine to your IDE (free)

How to use
annotate
method
in
hudson.util.StreamTaskListener

Best Java code snippets using hudson.util.StreamTaskListener.annotate (Showing top 5 results out of 315)

origin: hudson/hudson-2.x

private PrintWriter _error(String prefix, String msg) {
  out.print(prefix);
  out.println(msg);
  // the idiom in Hudson is to use the returned writer for writing stack trace,
  // so put the marker here to indicate an exception. if the stack trace isn't actually written,
  // HudsonExceptionNote.annotate recovers gracefully.
  try {
    annotate(new HudsonExceptionNote());
  } catch (IOException e) {
    // for signature compatibility, we have to swallow this error
  }
  return new PrintWriter(
    charset!=null ? new OutputStreamWriter(out,charset) : new OutputStreamWriter(out),true);
}
origin: org.jvnet.hudson.main/hudson-core

private PrintWriter _error(String prefix, String msg) {
  out.print(prefix);
  out.println(msg);
  // the idiom in Hudson is to use the returned writer for writing stack trace,
  // so put the marker here to indicate an exception. if the stack trace isn't actually written,
  // HudsonExceptionNote.annotate recovers gracefully.
  try {
    annotate(new HudsonExceptionNote());
  } catch (IOException e) {
    // for signature compatibility, we have to swallow this error
  }
  return new PrintWriter(
    charset!=null ? new OutputStreamWriter(out,charset) : new OutputStreamWriter(out),true);
}
origin: org.jenkins-ci.main/jenkins-core

private PrintWriter _error(String prefix, String msg) {
  out.print(prefix);
  out.println(msg);
  // the idiom in Jenkins is to use the returned writer for writing stack trace,
  // so put the marker here to indicate an exception. if the stack trace isn't actually written,
  // HudsonExceptionNote.annotate recovers gracefully.
  try {
    annotate(new HudsonExceptionNote());
  } catch (IOException e) {
    // for signature compatibility, we have to swallow this error
  }
  return new PrintWriter(
    charset!=null ? new OutputStreamWriter(out,charset) : new OutputStreamWriter(out),true);
}
origin: org.eclipse.hudson/hudson-core

private PrintWriter _error(String prefix, String msg) {
  out.print(prefix);
  out.println(msg);
  // the idiom in Hudson is to use the returned writer for writing stack trace,
  // so put the marker here to indicate an exception. if the stack trace isn't actually written,
  // HudsonExceptionNote.annotate recovers gracefully.
  try {
    annotate(new HudsonExceptionNote());
  } catch (IOException e) {
    // for signature compatibility, we have to swallow this error
  }
  return new PrintWriter(
      charset != null ? new OutputStreamWriter(out, charset) : new OutputStreamWriter(out), true);
}
origin: org.eclipse.hudson.main/hudson-core

private PrintWriter _error(String prefix, String msg) {
  out.print(prefix);
  out.println(msg);
  // the idiom in Hudson is to use the returned writer for writing stack trace,
  // so put the marker here to indicate an exception. if the stack trace isn't actually written,
  // HudsonExceptionNote.annotate recovers gracefully.
  try {
    annotate(new HudsonExceptionNote());
  } catch (IOException e) {
    // for signature compatibility, we have to swallow this error
  }
  return new PrintWriter(
    charset!=null ? new OutputStreamWriter(out,charset) : new OutputStreamWriter(out),true);
}
hudson.utilStreamTaskListenerannotate

Popular methods of StreamTaskListener

  • <init>
  • fromStdout
  • getLogger
  • closeQuietly
    Closes this listener and swallows any exceptions, if raised.
  • error
  • close
  • fatalError
  • _error
  • fromStderr
  • asPath

Popular in Java

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • putExtra (Intent)
  • getSystemService (Context)
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top Sublime Text 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