![JAR search and dependency download from the Maven repository](/logo.png)
com.carrotsearch.ant.tasks.junit4.events.BootstrapEvent Maven / Gradle / Ivy
The newest version!
package com.carrotsearch.ant.tasks.junit4.events;
import java.nio.charset.Charset;
import java.util.Map;
import java.util.TreeMap;
/**
* Initial message sent from the slave to the master (if forked locally).
*/
@SuppressWarnings("serial")
public class BootstrapEvent extends AbstractEvent {
public static enum EventChannelType {
STDOUT,
STDERR,
SOCKET;
}
private EventChannelType eventChannel;
private String defaultCharset;
private Map systemProperties;
public BootstrapEvent(EventChannelType channelType) {
super(EventType.BOOTSTRAP);
if (channelType == EventChannelType.SOCKET) {
throw new IllegalArgumentException("Not implemented, but possible.");
}
this.defaultCharset = Charset.defaultCharset().name();
this.eventChannel = channelType;
this.systemProperties = new TreeMap();
for (Map.Entry
© 2015 - 2025 Weber Informatics LLC | Privacy Policy