Mercurial > hg > release > thermostat-0.15
changeset 275:365cea8f669f
Use JLine 2.5 instead of 2.6
Reviewed-by: neugens
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2012-May/001209.html
author | Roman Kennke <rkennke@redhat.com> |
---|---|
date | Thu, 03 May 2012 23:17:13 +0200 |
parents | c090011cb55e |
children | bbcdc4202a19 |
files | tools/pom.xml tools/src/main/java/com/redhat/thermostat/tools/cli/ShellCommand.java |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/pom.xml Wed May 02 16:54:08 2012 +0200 +++ b/tools/pom.xml Thu May 03 23:17:13 2012 +0200 @@ -74,9 +74,9 @@ <scope>test</scope> </dependency> <dependency> - <groupId>jline</groupId> + <groupId>org.sonatype.jline</groupId> <artifactId>jline</artifactId> - <version>2.6</version> + <version>2.5</version> </dependency> <dependency> <groupId>com.redhat.thermostat</groupId>
--- a/tools/src/main/java/com/redhat/thermostat/tools/cli/ShellCommand.java Wed May 02 16:54:08 2012 +0200 +++ b/tools/src/main/java/com/redhat/thermostat/tools/cli/ShellCommand.java Thu May 03 23:17:13 2012 +0200 @@ -37,6 +37,7 @@ package com.redhat.thermostat.tools.cli; import java.io.IOException; +import java.io.OutputStreamWriter; import java.util.Collection; import java.util.Collections; @@ -81,7 +82,7 @@ } private void shellMainLoop(CommandContext ctx, Terminal term) throws IOException { - ConsoleReader reader = new ConsoleReader("fluff", ctx.getConsole().getInput(), ctx.getConsole().getOutput(), term); + ConsoleReader reader = new ConsoleReader(ctx.getConsole().getInput(), new OutputStreamWriter(ctx.getConsole().getOutput()), term); while (handleConsoleInput(reader)); }