Codota Logo
StreamTaskListener.annotate
Code IndexAdd Codota 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)

  • Common ways to obtain StreamTaskListener
private void myMethod () {
StreamTaskListener s =
  • Codota IconStreamTaskListener.fromStdout()
  • Codota IconOutputStream out;new StreamTaskListener(out)
  • Codota IconOutputStream out;new StreamTaskListener(out, Charset.defaultCharset())
  • Smart code suggestions by Codota
}
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

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • findViewById (Activity)
  • onRequestPermissionsResult (Fragment)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • ImageIO (javax.imageio)
  • JLabel (javax.swing)
  • Join (org.hibernate.mapping)
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