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

How to use
asPath
method
in
hudson.util.StreamTaskListener

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

origin: jenkinsci/jenkins

public StreamTaskListener(@Nonnull File out, @CheckForNull Charset charset) throws IOException {
  // don't do buffering so that what's written to the listener
  // gets reflected to the file immediately, which can then be
  // served to the browser immediately
  this(Files.newOutputStream(asPath(out)), charset);
}
origin: jenkinsci/jenkins

/**
 * Constructs a {@link StreamTaskListener} that sends the output to a specified file.
 *
 * @param out     the file.
 * @param append  if {@code true}, then output will be written to the end of the file rather than the beginning.
 * @param charset if non-{@code null} then the charset to use when writing.
 * @throws IOException if the file could not be opened.
 * @since 1.651
 */
public StreamTaskListener(@Nonnull File out, boolean append, @CheckForNull Charset charset) throws IOException {
  // don't do buffering so that what's written to the listener
  // gets reflected to the file immediately, which can then be
  // served to the browser immediately
  this(Files.newOutputStream(
      asPath(out),
      StandardOpenOption.CREATE, append ? StandardOpenOption.APPEND: StandardOpenOption.TRUNCATE_EXISTING
      ),
      charset
  );
}
origin: org.jenkins-ci.main/jenkins-core

public StreamTaskListener(File out, Charset charset) throws IOException {
  // don't do buffering so that what's written to the listener
  // gets reflected to the file immediately, which can then be
  // served to the browser immediately
  this(Files.newOutputStream(asPath(out)), charset);
}
origin: org.jenkins-ci.main/jenkins-core

/**
 * Constructs a {@link StreamTaskListener} that sends the output to a specified file.
 *
 * @param out     the file.
 * @param append  if {@code true}, then output will be written to the end of the file rather than the beginning.
 * @param charset if non-{@code null} then the charset to use when writing.
 * @throws IOException if the file could not be opened.
 * @since 1.651
 */
public StreamTaskListener(File out, boolean append, Charset charset) throws IOException {
  // don't do buffering so that what's written to the listener
  // gets reflected to the file immediately, which can then be
  // served to the browser immediately
  this(Files.newOutputStream(
      asPath(out),
      StandardOpenOption.CREATE, append ? StandardOpenOption.APPEND: StandardOpenOption.TRUNCATE_EXISTING
      ),
      charset
  );
}
hudson.utilStreamTaskListenerasPath

Popular methods of StreamTaskListener

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

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JTable (javax.swing)
  • Join (org.hibernate.mapping)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top plugins for WebStorm
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