Skip to content

Commit

Permalink
Added -D switch for snaps to hide jline warning
Browse files Browse the repository at this point in the history
Added -Dorg.jline.terminal.dumb=true to hopefully
hide the warning about the inability to create a
system terminal.

Also removed jline-terminal-jansi dependency as
it doesn't seem to be needed.  I'll have to montior
this.
  • Loading branch information
frossm committed Aug 3, 2022
1 parent 7349032 commit 3e58bea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
11 changes: 1 addition & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>org.fross</groupId>
<artifactId>rpncalc</artifactId>
<version>4.6.4</version>
<version>4.6.5</version>
<packaging>jar</packaging>

<name>rpncalc</name>
Expand Down Expand Up @@ -215,15 +215,6 @@
<version>3.21.0</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.jline/jline-terminal-jansi
I believed this was needed due to the jline documentation, but lets
see if that is correct and I'll remove this later if everything is good
<dependency>
<groupId>org.jline</groupId>
<artifactId>jline-terminal-jansi</artifactId>
<version>3.21.0</version>
</dependency>-->

</dependencies>

</project>
4 changes: 2 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: rpncalc
version: '4.6.4'
version: '4.6.5'
summary: The command line Reverse Polish Notation (RPN) calculator
description: |
RPNCalc is an easy to use command line based Reverse Polish
Expand Down Expand Up @@ -32,7 +32,7 @@ compression: lzo

apps:
rpncalc:
command: bin/java -Djava.util.prefs.userRoot="$SNAP_USER_DATA" -jar $SNAP/jar/rpncalc.jar
command: bin/java -Djava.util.prefs.userRoot="$SNAP_USER_DATA" -Dorg.jline.terminal.dumb=true -jar $SNAP/jar/rpncalc.jar

plugs:
- network
Expand Down

0 comments on commit 3e58bea

Please sign in to comment.