Skip to content

Commit f520cfa

Browse files
win: use jansi to enable ansi color on windows
1 parent aac9a3e commit f520cfa

3 files changed

Lines changed: 16 additions & 6 deletions

File tree

webtau-groovy/pom.xml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
~ limitations under the License.
1717
-->
1818

19-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
19+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2021
<modelVersion>4.0.0</modelVersion>
2122

2223
<parent>
@@ -46,11 +47,6 @@
4647
<version>${project.version}</version>
4748
</dependency>
4849

49-
<dependency>
50-
<groupId>org.apache.ivy</groupId>
51-
<artifactId>ivy</artifactId>
52-
</dependency>
53-
5450
<dependency>
5551
<groupId>org.testingisdocumenting.webtau</groupId>
5652
<artifactId>webtau-standalone-runner-groovy</artifactId>
@@ -75,6 +71,17 @@
7571
<version>${project.version}</version>
7672
</dependency>
7773

74+
<dependency>
75+
<groupId>org.apache.ivy</groupId>
76+
<artifactId>ivy</artifactId>
77+
</dependency>
78+
79+
<dependency>
80+
<groupId>jline</groupId>
81+
<artifactId>jline</artifactId>
82+
<version>2.14.6</version>
83+
</dependency>
84+
7885
<dependency>
7986
<groupId>org.slf4j</groupId>
8087
<artifactId>slf4j-simple</artifactId>

webtau-groovy/src/main/groovy/org/testingisdocumenting/webtau/cli/WebTauCliApp.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
package org.testingisdocumenting.webtau.cli
1919

20+
import org.fusesource.jansi.AnsiConsole
2021
import org.testingisdocumenting.webtau.WebTauGroovyDsl
2122
import org.testingisdocumenting.webtau.browser.driver.WebDriverCreator
2223
import org.testingisdocumenting.webtau.cfg.GroovyRunner
@@ -58,6 +59,7 @@ class WebTauCliApp implements TestListener, ReportGenerator {
5859
private WebTauGroovyCliArgsConfigHandler cliConfigHandler
5960

6061
WebTauCliApp(String[] args) {
62+
AnsiConsole.systemInstall()
6163
System.setProperty("java.awt.headless", "true")
6264

6365
cliConfigHandler = new WebTauGroovyCliArgsConfigHandler(args)

webtau-shaded/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
<exclude>org.testingisdocumenting.**</exclude>
6767
<exclude>org.codehaus.groovy.**</exclude>
6868
<exclude>org.w3c.**</exclude>
69+
<exclude>org.fusesource.**</exclude>
6970
<exclude>org.apache.ivy.**</exclude>
7071
<exclude>org.mozilla.**</exclude>
7172
<exclude>org.xml.sax.**</exclude>

0 commit comments

Comments
 (0)