Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 49e55ed

Browse files
authored
Merge pull request #67 from tofi86/develop
Release version 3.0.3
2 parents 8e3b2dc + 6c2794d commit 49e55ed

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
ChangeLog
22
---------
33

4+
### v3.0.3 (2018-07-29)
5+
* Bugfix: changes for the new Java 10 `java -version` formatting (#66)
6+
47
### v3.0.2 (2018-04-12)
58
* Bugfix: fix typo in JVMOptions expansion on java exec call (PR #63, Thanks to @michaelweiser for his contribution)
69
* Added a basic Travis CI build pipeline running a `shellcheck` test for errors and executing the basic testsuite

src/universalJavaApplicationStub

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
# #
1212
# @author Tobias Fischer #
1313
# @url https://github.com/tofi86/universalJavaApplicationStub #
14-
# @date 2018-04-12 #
15-
# @version 3.0.2 #
14+
# @date 2018-07-29 #
15+
# @version 3.0.3 #
1616
# #
1717
##################################################################################
1818
# #
@@ -387,7 +387,7 @@ fi
387387
################################################################################
388388
function get_java_version_from_cmd() {
389389
# second sed command strips " and -ea from the version string
390-
echo $("$1" -version 2>&1 | awk '/version/{print $NF}' | sed -E 's/"//g;s/-ea//g')
390+
echo $("$1" -version 2>&1 | awk '/version/{print $3}' | sed -E 's/"//g;s/-ea//g')
391391
}
392392

393393

test/java-version-tester.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Tests for the functions used in universalJavaApplicationStub script
4-
# tofi86 @ 2018-03-10
4+
# tofi86 @ 2018-07-29
55

66

77

@@ -15,7 +15,7 @@
1515
################################################################################
1616
function get_java_version_from_cmd() {
1717
# second sed command strips " and -ea from the version string
18-
echo $("$1" -version 2>&1 | awk '/version/{print $NF}' | sed -E 's/"//g;s/-ea//g')
18+
echo $("$1" -version 2>&1 | awk '/version/{print $3}' | sed -E 's/"//g;s/-ea//g')
1919
}
2020

2121

0 commit comments

Comments
 (0)