本文整理汇总了Java中com.intellij.execution.process.ProcessOutputTypes.SYSTEM属性的典型用法代码示例。如果您正苦于以下问题:Java ProcessOutputTypes.SYSTEM属性的具体用法?Java ProcessOutputTypes.SYSTEM怎么用?Java ProcessOutputTypes.SYSTEM使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.intellij.execution.process.ProcessOutputTypes
的用法示例。
在下文中一共展示了ProcessOutputTypes.SYSTEM属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUp
@Override
protected void setUp() throws Exception {
super.setUp();
mySplitter = new OutputLineSplitter(false) {
@Override
protected void onLineAvailable(@NotNull String text, @NotNull Key outputType, boolean tcLikeFakeOutput) {
if (ProcessOutputTypes.STDERR != outputType && ProcessOutputTypes.SYSTEM != outputType) outputType = ProcessOutputTypes.STDOUT;
synchronized (myOutput) {
List<String> list = myOutput.get(outputType);
if (list == null) {
myOutput.put(outputType, list = new ArrayList<String>());
}
list.add(text);
}
}
};
}
示例2: notifyTextAvailable
public void notifyTextAvailable(final String text, final Key outputType) {
if (LOG.isDebugEnabled()) {
LOG.debug("Received from groovyc " + outputType + ": " + text);
}
if (outputType == ProcessOutputTypes.SYSTEM) {
return;
}
if (outputType == ProcessOutputTypes.STDERR && !isSafeStderr(text)) {
stdErr.append(StringUtil.convertLineSeparators(text));
return;
}
parseOutput(text);
}
示例3: notifyTextAvailable
public void notifyTextAvailable(final String text, final Key outputType) {
super.notifyTextAvailable(text, outputType);
if (LOG.isDebugEnabled()) {
LOG.debug("Received from groovyc: " + text);
}
if (outputType == ProcessOutputTypes.SYSTEM) {
return;
}
if (outputType == ProcessOutputTypes.STDERR) {
stdErr.append(StringUtil.convertLineSeparators(text));
return;
}
parseOutput(text);
}
示例4: setUp
@Override
protected void setUp() throws Exception {
super.setUp();
mySplitter = new OutputLineSplitter(false) {
@Override
protected void onLineAvailable(@Nonnull String text, @Nonnull Key outputType, boolean tcLikeFakeOutput) {
if (ProcessOutputTypes.STDERR != outputType && ProcessOutputTypes.SYSTEM != outputType) outputType = ProcessOutputTypes.STDOUT;
synchronized (myOutput) {
List<String> list = myOutput.get(outputType);
if (list == null) {
myOutput.put(outputType, list = new ArrayList<String>());
}
list.add(text);
}
}
};
}
示例5: onTextAvailable
@Override
public void onTextAvailable(ProcessEvent event, Key outputType) {
if (outputType == ProcessOutputTypes.STDERR) {
err.append(event.getText());
}
else if (outputType == ProcessOutputTypes.SYSTEM) {
// skip
}
else {
out.append(event.getText());
}
}
示例6: outputTypeForAttributes
public ConsoleViewContentType outputTypeForAttributes(Key attributes) {
final ConsoleViewContentType outputType;
if (attributes == ProcessOutputTypes.STDERR) {
outputType = ConsoleViewContentType.ERROR_OUTPUT;
}
else if (attributes == ProcessOutputTypes.SYSTEM) {
outputType = ConsoleViewContentType.SYSTEM_OUTPUT;
}
else {
outputType = ConsoleViewContentType.getConsoleViewType(attributes);
}
return outputType;
}
示例7: onTextAvailable
/**
* Handles single output line.
*
* @param text execution response
* @param outputType output type
*/
public void onTextAvailable(@NotNull String text, @NotNull Key outputType) {
if (outputType == ProcessOutputTypes.SYSTEM) {
return;
}
if (outputType == ProcessOutputTypes.STDERR) {
errorsReported = true;
return;
}
ContainerUtil.addIfNotNull(outputs, parseOutput(StringUtil.trimEnd(text, "\n").trim()));
}