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

Cherry-pick commits for {N} 3.4.1 release #1038

Merged
merged 3 commits into from
Jan 9, 2018

Conversation

rosen-vladimirov
Copy link
Collaborator

No description provided.

Dimitar Kerezov and others added 3 commits January 9, 2018 08:31
On some systems with slower hard drives and rigorous antivirus software, on numerous occasions the newly created files in `platforms` directory are locked and cannot be renamed. The rename fails with `EPERM`.
Switching to write+delete in favor of rename eliminates said issue.
The command `javac -version` prints result to stderr when JAVA 8 is used and to stdout when JAVA 9 is used. Current check in CLI uses the stderr output, so when JAVA 9 is installed it fails to detect the correct version.
In order to support both JAVA 8 and JAVA 9, capture both stdout and stderr and get the version from there.
Also remove unneeded check for Java version - we care about JAVA Compiler, which is included in JDK.
Improve `appendZeroesToVersion` method to return the passed value in case it is null, undefined or empty string and add tests for the method.
@rosen-vladimirov rosen-vladimirov self-assigned this Jan 9, 2018
@rosen-vladimirov rosen-vladimirov changed the base branch from master to release January 9, 2018 06:33
@rosen-vladimirov rosen-vladimirov merged commit 671e5d3 into release Jan 9, 2018
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/release-341 branch January 9, 2018 07:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant