[MSHARED-562] added setEnabled(boolean) and isEnabled() methods
authorHerve Boutemy <hboutemy@apache.org>
Sun, 19 Jun 2016 19:52:32 +0000 (19:52 +0000)
committerHerve Boutemy <hboutemy@apache.org>
Sun, 19 Jun 2016 19:52:32 +0000 (19:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/shared/trunk@1749201 13f79535-47bb-0310-9956-ffa450edef68

src/main/java/org/apache/maven/shared/project/utils/AnsiUtils.java

index 63b5cbe..c26cfb1 100644 (file)
@@ -62,6 +62,16 @@ public class AnsiUtils
         AnsiConsole.systemUninstall();
     }
 
+    public static void setEnabled( boolean flag )
+    {
+        Ansi.setEnabled( flag );
+    }
+
+    public static boolean isEnabled()
+    {
+        return Ansi.isEnabled();
+    }
+
     public static AnsiUtils ansi()
     {
         return new AnsiUtils();