Commit Graph

1557 Commits

Author SHA1 Message Date
Oliver Weiler
dab9741a49 Fix broken test 2020-04-28 07:52:01 +01:00
Oliver Weiler
6273d0b094 Revert function name 2020-04-28 07:52:01 +01:00
Oliver Weiler
f240c7c8a6 Revert error message 2020-04-28 07:52:01 +01:00
Oliver Weiler
9ae0acc045 Extract Java fallback version 2020-04-28 07:52:01 +01:00
Oliver Weiler
16fe3e03f9 Extract function for sdk env init 2020-04-28 07:52:01 +01:00
Oliver Weiler
d2e3d134f8 Improve coding style 2020-04-28 07:52:01 +01:00
Oliver Weiler
e524015b60 Rename function 2020-04-28 07:52:01 +01:00
Oliver Weiler
26a5b3074c Set java version when creating .sdkmanrc 2020-04-28 07:52:01 +01:00
Oliver Weiler
7ca8325b54 Rename local variable 2020-04-28 07:52:01 +01:00
Oliver Weiler
ffe9b5934d Perform normalisation before format check 2020-04-28 07:52:01 +01:00
Oliver Weiler
c643a99b9f Add rudimentary implementation of sdk env init 2020-04-28 07:52:01 +01:00
Oliver Weiler
3df6c6de72 Do not allow non-whitespace characters after candidate version 2020-04-28 07:52:01 +01:00
Oliver Weiler
0d163a21c1 Improve test description 2020-04-28 07:52:01 +01:00
Oliver Weiler
41969721af Remove unused import 2020-04-28 07:52:01 +01:00
Oliver Weiler
16f68d508e Add support for comment lines and blank lines 2020-04-28 07:52:01 +01:00
Ross Goldberg
1edbe28d03 Fix candidate cache update bug
In __sdk_update, candidates wouldn't be updated if the same number of
candidates were removed & added because detection was solely based on
old vs. new candidate counts.
2020-04-17 21:30:01 +01:00
Jan Larres
927c2e0a73 Don't fail redirections if noclobber is set
Using the '>|' syntax for shell redirections instead of '>' forces an
overwrite even if the noclobber option is set.
2020-04-16 19:08:27 +01:00
ievgen degtiarenko
454069d44e 746 - upgrade should use auto answer 2020-04-15 21:06:36 +01:00
Marco Vermeulen
c6f91f40c2 Improve feedback on env command invocation. 2020-04-12 14:22:19 +01:00
Ross Goldberg
20a204040f Fix typo in debug echo in __sdkman_download 2020-04-07 22:28:10 +01:00
Ross Goldberg
8d12950bea Fix misspelled words and phrases
bach        -> back
requirment  -> requirement
can not     -> cannot
unselecting -> deselecting
2020-04-07 22:13:58 +01:00
Marco Vermeulen
17b72244e9 Use bin distribution of Gradle 6.3 2020-04-07 21:22:55 +01:00
Marco Vermeulen
c09d4df84c Format build.gradle with default formatting. 2020-04-07 21:22:24 +01:00
Ross Goldberg
9fd83668fd Upgrade Gradle to 6.3 and upgrade dependencies
Supersedes PR #645
2020-04-07 12:23:42 -04:00
Ross Goldberg
6249a9944f Append parentheses after bash function names
IntelliJ auto-formatting inexplicably failed to append parentheses after
function names in certain bash files.  Fixed this.
2020-04-07 17:17:17 +01:00
Ross Goldberg
4abbfefc31 Reformat .feature files manually/with EditorConfig
Standardize the formatting of .feature files using auto-formatting
specified in .editorconfig, plus some manual reformatting that conforms
to .editorconfig:

 - Use 4-character-wide tabs for indents
 - Only one empty line at end of file
 - Add or remove empty lines
 - Insert initial spaces in comments
 - Remove extra spaces in 2 Cucumber Given clauses
2020-04-07 15:31:45 +01:00
Ross Goldberg
adf55ea3f6 Reformat .groovy files manually, with EditorConfig
Standardize the formatting of .groovy files using auto-formatting
specified in .editorconfig, plus some manual reformatting that conforms
to .editorconfig:

 - Fix improper indents
 - Use 4-character-wide tabs for indents
 - Only one empty line at end of file
 - Add or remove empty lines
 - Optimize imports
 - Files generated by HookResponses conform to new formatting
 - Other minor spacing cleanup
2020-04-07 15:31:45 +01:00
Ross Goldberg
03573e5d8e Reformat .sh files manually & with EditorConfig
Standardize the formatting of .sh files using auto-formatting specified
in .editorconfig, plus some manual reformatting that conforms to
.editorconfig:

 - Fix improper indents
 - Use 4-character-wide tabs for indents
 - Append () to function names in function declarations
 - Only one empty line at end of file
 - Add or remove empty lines
 - Insert initial spaces in comments
 - Removed unnecessary semicolons
 - Spread conditionals over multiple lines
 - Other minor spacing & format cleanup
2020-04-07 15:31:45 +01:00
Ross Goldberg
9a33901a44 Reformat build.gradle manually & with EditorConfig
Standardize the formatting of build.gradle using auto-formatting
specified in a new .editorconfig, plus some manual reformatting that
conforms to the new .editorconfig:

 - Use 4-character-wide tabs for indents
 - Optimize imports
 - Only one empty line at end of file
 - Other minor spacing cleanup
2020-04-07 15:31:45 +01:00
Ross Goldberg
92e65f25fc fixed testing bug on macOS (& possibly on other platforms) in assertLinkedCandidate in installation_steps.groovy:
assertLinkedCandidate previously compared a calculated link path to a given path, which failed when either path was different but pointed to the same file
assertLinkedCandidate now just correctly ensures paths point to same file
2020-04-06 09:21:44 +01:00
Ross Goldberg
8b66a8a08c fixed testing bug for platforms other than Linux in 2 steps in stub_steps.groovy:
use lcPlatform where PLATFORM was accidentally used
renamed lowerCaseUname as lcPlatform for consistency
removed unused And
2020-04-06 09:21:44 +01:00
Oliver Weiler
cecb46fe2e Fix broken parameter expansion 2020-04-05 19:55:46 +01:00
Oliver Weiler
fb6db6376c Replace BASH_REMATCH with parameter expansion 2020-04-05 19:55:46 +01:00
Oliver Weiler
e143bec485 Inline candidate and version variables 2020-04-05 19:55:46 +01:00
Oliver Weiler
50cbb4b6e0 Add descriptive variable names 2020-04-05 19:55:46 +01:00
Oliver Weiler
595e98712f Remove unused import 2020-04-05 19:55:46 +01:00
Oliver Weiler
94dc2f3495 Revert error message 2020-04-05 19:55:46 +01:00
Oliver Weiler
4302f4178d Improve error message for malformed candidate entry 2020-04-05 19:55:46 +01:00
Oliver Weiler
20ace978d7 Add Spock specifications for testing newline handling and candidate entry check 2020-04-05 19:55:46 +01:00
Oliver Weiler
13a46509c6 Move handling of lines without newlines to while loop 2020-04-05 19:55:46 +01:00
Oliver Weiler
02c371d519 Move handling of lines without newline into while-loop 2020-04-05 19:55:46 +01:00
Oliver Weiler
9e9a97fc7a Fix wrong os.name for Mac OS X 2020-04-05 19:55:46 +01:00
Oliver Weiler
d3db71cae0 Revert change to UnixUtils 2020-04-05 19:55:46 +01:00
Oliver Weiler
ff80e2819b Add sdk env command to allow per-project configuration 2020-04-05 19:55:46 +01:00
Marco Vermeulen
ef168ab022 Remove offending character from home.feature. 2020-03-13 09:19:35 +00:00
Marco Vermeulen
e79826e136 Move home comments out of source into feature file. 2020-03-13 08:31:06 +00:00
Erik Zivkovic
0c7168a1a5 Home dir: Fix broken mnemonic test case 2020-03-13 08:26:40 +00:00
Erik Zivkovic
377c66910f Home dir: use h mnemonic for home instead of help 2020-03-13 08:26:40 +00:00
Erik Zivkovic
e1da905871 Home dir: Move documentation comment into home src 2020-03-13 08:26:40 +00:00
Erik Zivkovic
d284d98918 Add a command to print the home path of an installed SDK 2020-03-13 08:26:40 +00:00