TeamCityWriter

public class TeamCityWriter

Writes Teamcity messages.

Constructors

TeamCityWriter

public TeamCityWriter()

Creates a new instance of TeamCityWriter that writes to standard out and has no flow ID.

TeamCityWriter

public TeamCityWriter(PrintStream output, String flowID)

Creates a new instance of TeamCityWriter.

Parameters:
  • output – The stream to write to.
  • flowID – he flow ID that indicates which messages belong together; or null.

Methods

send

public void send(String name, Attribute... attributes)

Sends a TeamCity message.

Parameters:
  • name – The message name.
  • attributes – A list of pairs of attribute names and values. When a value is null, it is ignored. Values are escaped properly.