karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject karaf git commit: [KARAF-5113] Upgrade to jline 3.3.0
Date Sat, 13 May 2017 00:19:12 GMT
Repository: karaf
Updated Branches:
  refs/heads/master 1b1b94497 -> 32f73e2fa


[KARAF-5113] Upgrade to jline 3.3.0

Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/32f73e2f
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/32f73e2f
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/32f73e2f

Branch: refs/heads/master
Commit: 32f73e2fa2e3c5d3162e7d531670bb678f9754ab
Parents: 1b1b944
Author: Guillaume Nodet <gnodet@apache.org>
Authored: Sat May 13 02:18:51 2017 +0200
Committer: Guillaume Nodet <gnodet@apache.org>
Committed: Sat May 13 02:18:51 2017 +0200

----------------------------------------------------------------------
 pom.xml                                                     | 2 +-
 .../apache/karaf/shell/impl/console/ConsoleSessionImpl.java | 6 +++++-
 .../org/apache/karaf/shell/impl/console/HistoryWrapper.java | 9 ++++++++-
 3 files changed, 14 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/32f73e2f/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 787c6aa..8dba7f0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -249,7 +249,7 @@
         <hibernate.validator.version>5.3.4.Final</hibernate.validator.version>
         <jansi.version>1.16</jansi.version>
         <javassist.version>3.9.0.GA</javassist.version>
-        <jline.version>3.3.0-SNAPSHOT</jline.version>
+        <jline.version>3.3.0</jline.version>
         <jsw.version>3.2.3</jsw.version>
         <log4j.version>1.2.17</log4j.version>
         <maven.version>2.0.9</maven.version>

http://git-wip-us.apache.org/repos/asf/karaf/blob/32f73e2f/shell/core/src/main/java/org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java
----------------------------------------------------------------------
diff --git a/shell/core/src/main/java/org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java
b/shell/core/src/main/java/org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java
index 62636a1..5f1d7aa 100644
--- a/shell/core/src/main/java/org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java
+++ b/shell/core/src/main/java/org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java
@@ -272,7 +272,11 @@ public class ConsoleSessionImpl implements Session {
 
     public void close() {
         if (running) {
-            reader.getHistory().save();
+            try {
+                reader.getHistory().save();
+            } catch (IOException e) {
+                // ignore
+            }
 
             running = false;
             if (thread != Thread.currentThread()) {

http://git-wip-us.apache.org/repos/asf/karaf/blob/32f73e2f/shell/core/src/main/java/org/apache/karaf/shell/impl/console/HistoryWrapper.java
----------------------------------------------------------------------
diff --git a/shell/core/src/main/java/org/apache/karaf/shell/impl/console/HistoryWrapper.java
b/shell/core/src/main/java/org/apache/karaf/shell/impl/console/HistoryWrapper.java
index 25f0dff..13402eb 100644
--- a/shell/core/src/main/java/org/apache/karaf/shell/impl/console/HistoryWrapper.java
+++ b/shell/core/src/main/java/org/apache/karaf/shell/impl/console/HistoryWrapper.java
@@ -20,6 +20,9 @@ package org.apache.karaf.shell.impl.console;
 
 import org.apache.karaf.shell.api.console.History;
 
+import java.io.IOException;
+import java.io.UncheckedIOException;
+
 public class HistoryWrapper implements History {
 
     private final org.jline.reader.History history;
@@ -30,7 +33,11 @@ public class HistoryWrapper implements History {
 
     @Override
     public void clear() {
-        history.purge();
+        try {
+            history.purge();
+        } catch (IOException e) {
+            throw new UncheckedIOException(e);
+        }
     }
 
     public int first() {


Mime
View raw message