mirror of https://github.com/sbt/sbt.git
Bye jansi
This commit is contained in:
parent
fd37450ede
commit
6dba5e4ec0
|
|
@ -1170,7 +1170,6 @@ lazy val sbtClientProj = (project in file("client"))
|
|||
mimaPreviousArtifacts := Set.empty,
|
||||
crossPaths := false,
|
||||
exportJars := true,
|
||||
libraryDependencies += jansi,
|
||||
libraryDependencies += scalatest % Test,
|
||||
Compile / mainClass := Some("sbt.client.Client"),
|
||||
nativeImageReady := { () =>
|
||||
|
|
|
|||
|
|
@ -9,20 +9,16 @@
|
|||
package sbt.client;
|
||||
|
||||
import sbt.internal.client.NetworkClient;
|
||||
import org.fusesource.jansi.AnsiConsole;
|
||||
|
||||
public class Client {
|
||||
public static void main(final String[] args) {
|
||||
boolean isWin = System.getProperty("os.name").toLowerCase().startsWith("win");
|
||||
boolean hadError = false;
|
||||
try {
|
||||
if (isWin) AnsiConsole.systemInstall();
|
||||
NetworkClient.main(args);
|
||||
} catch (final Throwable t) {
|
||||
t.printStackTrace();
|
||||
hadError = true;
|
||||
} finally {
|
||||
if (isWin) AnsiConsole.systemUninstall();
|
||||
if (hadError) System.exit(1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue