mirror of
https://github.com/apache/maven-mvnd.git
synced 2026-01-13 07:04:14 +08:00
Leverage Maven's -Dstyle.color to avoid coloring instead of stripping
the ASCII codes in the client
This commit is contained in:
@@ -473,6 +473,17 @@ public enum Environment {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The values of {@link Environment#MAVEN_COLOR} option.
|
||||
*/
|
||||
public enum Color {
|
||||
always, never, auto;
|
||||
|
||||
public static Optional<Color> of(String color) {
|
||||
return color == null ? Optional.empty() : Optional.of(Color.valueOf(color));
|
||||
}
|
||||
}
|
||||
|
||||
public static class DocumentedEnumEntry<E> {
|
||||
|
||||
private final E entry;
|
||||
|
||||
Reference in New Issue
Block a user