mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 23:31:05 +07:00
[ant] IDEA-209972 Move bundled Ant distribution from IDEA/lib directory to Ant plugin
GitOrigin-RevId: 370ca1e34656d8994035ba273f925a2c9b086a9d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
92f29a6cbc
commit
0e6d7df032
@@ -0,0 +1,18 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.rt.ant.execution;
|
||||
|
||||
public final class AntLoggerConstants {
|
||||
public static final char MESSAGE_CONTENT = 'M';
|
||||
public static final char EXCEPTION_CONTENT = 'X';
|
||||
public static final char INPUT_REQUEST = 'I';
|
||||
public static final char BUILD_END = 'b';
|
||||
public static final char BUILD = 'B';
|
||||
public static final char TARGET = 'G';
|
||||
public static final char TARGET_END = 'g';
|
||||
public static final char TASK = 'T';
|
||||
public static final char TASK_END = 't';
|
||||
public static final char MESSAGE = 'M';
|
||||
public static final char ERROR = 'E';
|
||||
public static final char EXCEPTION = 'X';
|
||||
public static final char EXCEPTION_LINE_SEPARATOR = 0;
|
||||
}
|
||||
@@ -27,21 +27,10 @@ import java.lang.reflect.Field;
|
||||
import java.util.ArrayDeque;
|
||||
import java.util.Deque;
|
||||
|
||||
import static com.intellij.rt.ant.execution.AntLoggerConstants.*;
|
||||
|
||||
public final class IdeaAntLogger2 extends DefaultLogger {
|
||||
static SegmentedOutputStream ourErr;
|
||||
public static final char MESSAGE_CONTENT = 'M';
|
||||
public static final char EXCEPTION_CONTENT = 'X';
|
||||
public static final char INPUT_REQUEST = 'I';
|
||||
public static final char BUILD_END = 'b';
|
||||
public static final char BUILD = 'B';
|
||||
public static final char TARGET = 'G';
|
||||
public static final char TARGET_END = 'g';
|
||||
public static final char TASK = 'T';
|
||||
public static final char TASK_END = 't';
|
||||
public static final char MESSAGE = 'M';
|
||||
public static final char ERROR = 'E';
|
||||
public static final char EXCEPTION = 'X';
|
||||
public static final char EXCEPTION_LINE_SEPARATOR = 0;
|
||||
|
||||
public static final String OUTPUT_PREFIX = "IDEA_ANT_INTEGRATION";
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ public class IdeaInputHandler implements InputHandler {
|
||||
if (err == null) {
|
||||
throw new BuildException("Selected InputHandler should be used by Intellij IDEA");
|
||||
}
|
||||
final PacketWriter packet = PacketFactory.ourInstance.createPacket(IdeaAntLogger2.INPUT_REQUEST);
|
||||
final PacketWriter packet = PacketFactory.ourInstance.createPacket(AntLoggerConstants.INPUT_REQUEST);
|
||||
packet.appendLimitedString(prompt);
|
||||
packet.appendLimitedString(request.getDefaultValue());
|
||||
if (request instanceof MultipleChoiceInputRequest) {
|
||||
|
||||
Reference in New Issue
Block a user