This repository was archived by the owner on Feb 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
ChangeLog
2
2
---------
3
3
4
+ ### v3.0.3 (2018-07-29)
5
+ * Bugfix: changes for the new Java 10 ` java -version ` formatting (#66 )
6
+
4
7
### v3.0.2 (2018-04-12)
5
8
* Bugfix: fix typo in JVMOptions expansion on java exec call (PR #63 , Thanks to @michaelweiser for his contribution)
6
9
* Added a basic Travis CI build pipeline running a ` shellcheck ` test for errors and executing the basic testsuite
Original file line number Diff line number Diff line change 11
11
# #
12
12
# @author Tobias Fischer #
13
13
# @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 #
16
16
# #
17
17
# #################################################################################
18
18
# #
387
387
# ###############################################################################
388
388
function get_java_version_from_cmd() {
389
389
# 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' )
391
391
}
392
392
393
393
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# Tests for the functions used in universalJavaApplicationStub script
4
- # tofi86 @ 2018-03-10
4
+ # tofi86 @ 2018-07-29
5
5
6
6
7
7
15
15
# ###############################################################################
16
16
function get_java_version_from_cmd() {
17
17
# 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' )
19
19
}
20
20
21
21
You can’t perform that action at this time.
0 commit comments