GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing github.com — Add a toolchain only - control update of settings.xml, toolchains.xml, JAVA_HOME and PATH more granular by mhoffrog · Pull Request #553 · actions/setup-java Conversation
|
|
@IvanZosimov is there anything I can do in addition to get this PR merged? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
3f983c4 to
230bb6e
Compare
|
@IvanZosimov PR branch is re-based to current main and dist scripts did pass |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
230bb6e to
598ae60
Compare
|
@IvanZosimov PR branch is re-based to current main and dist scripts did pass Check dist action. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
b8f4969 to
993bbb6
Compare
|
@mahabaleshwars @IvanZosimov FYI - PR branch is re-based to current main and dist scripts did pass action |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
4f3734a to
2f3fa47
Compare
|
@mahabaleshwars @IvanZosimov FYI - PR branch is re-based to current main and dist scripts did pass action |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
2f3fa47 to
8bb7cab
Compare
|
@mahabaleshwars @IvanZosimov FYI - PR branch is re-based to current main and dist scripts did pass action |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
7425697 to
cb67ffd
Compare
|
@mahabaleshwars @aparnajyothi-y @HarithaVattikuti FYI - PR branch is re-based to current main and dist scripts did pass action Check dist |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
cb67ffd to
1e22074
Compare
|
Run of Check dist passed after recent force commits. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
1e22074 to
774eb61
Compare
774eb61 to
48a9cd5
Compare
|
@clarkbw FYI - rebased to main. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
4473697 to
7b7c442
Compare
There was an error while loading. Please reload this page.
|
@aparnajyothi-y, @HarithaVattikuti - FYI - re-based to main Run of Check dist passed after recent force commits. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
7b7c442 to
483ac56
Compare
|
@mahabaleshwars @aparnajyothi-y @HarithaVattikuti - FYI - re-based to main Run of Check dist passed after recent force commits. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
483ac56 to
915dff3
Compare
|
@priyagupta108 @mahabaleshwars @aparnajyothi-y @HarithaVattikuti - FYI - re-based to main Run of Check dist passed after recent force commits. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
915dff3 to
1d68cf3
Compare
|
@priyagupta108 @mahabaleshwars @aparnajyothi-y @HarithaVattikuti - FYI - re-based to main Run of Check dist passed after recent force commits. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hello @mhoffrog👋, |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…nv-path'
Changes in detail:
------------------
- action.yml:
- add inputs:
- update-toolchains-only
- update-env-javahome
- add-to-env-path
- update description for input "overwrite-settings"
- remove default value of input "overwrite-settings",
since the default is now propagated from input 'update-toolchains-only'
- base-models.ts:
- extend interface JavaInstallerOptions:
- add fields:
- updateEnvJavaHome: boolean;
- addToEnvPath: boolean;
- constants.ts:
- add constant INPUT_UPDATE_TOOLCHAINS_ONLY
= 'update-toolchains-only'
- auth.ts:
- function configureAuthentication():
- add parameter:
- overwriteSettings: boolean
- remove the now obsolete const overwriteSettings
- toolchains.ts:
- function configureToolchains(...):
- add parameter updateToolchains: boolean
- remove the now obsolete const overwriteSettings
- improve variable naming:
- rename any occurrence of 'overwriteSettings'
by 'updateToolchains'
- add field updateToolchains: boolean to the parameter object
- function writeToolchainsFileToDisk(...):
- improve variable naming:
- rename variable 'settingsExists'
by 'toolchainsExists'
- update wording of info logs to be more applicable
- setup-java.ts:
- interface installerInputsOptions:
- rename to IInstallerInputsOption to meet common coding convention
- add fields:
- updateToolchainsOnly: boolean;
- overwriteSettings: boolean;
- updateEnvJavaHome: boolean;
- addToEnvPath: boolean;
- function run():
- add const:
- const updateToolchainsOnly:
- get as boolean from input 'update-toolchains-only', default: false
- const overwriteSettings:
- get as boolean from input 'overwrite-settings', default: !updateToolchainsOnly
- const updateEnvJavaHome:
- get as boolean input 'update-env-javahome', default: !updateToolchainsOnly
- const addToEnvPath:
- get as boolean input 'add-to-env-path', default: !updateToolchainsOnly
- extend const installerInputsOptions to match with IInstallerInputsOption:
- add field updateToolchainsOnly
- add field overwriteSettings
- add field updateEnvJavaHome
- add field addToEnvPath
- update call of auth.configureAuthentication()
to auth.configureAuthentication(overwriteSettings)
- function installVersion(...):
- add const and init from parameter options:
- updateToolchainsOnly, overwriteSettings,
updateEnvJavaHome, addToEnvPath
- init the additional fields of installerInputsOptions accordingly
- call toolchains.configureToolchains(...):
- with parameter updateToolchains= overwriteSettings || updateToolchainsOnly
- base-installer.ts:
- add constants to import from constants:
- INPUT_UPDATE_JAVA_HOME
- INPUT_ADD_TO_PATH
- add fields:
- protected updateEnvJavaHome: boolean;
- protected addToEnvPath: boolean;
- ctor:
- init these fields from JavaInstallerOptions accoprdingly
- function setJavaDefault(...):
- if updateEnvJavaHome is false:
- SKIP updating env.JAVA_HOME
- log info:
`Skip updating env.JAVA_HOME according to ${INPUT_UPDATE_JAVA_HOME}`
- if addToEnvPath is false:
- SKIP adding toolchain path to env.PATH
- log info:
`Skip adding to env.PATH according to ${INPUT_ADD_TO_PATH}`
- missed in initial commit - took re-built dist from GH actions
491467d to
b608e51
Compare
|
Re-based to main. Run of Check dist passed after recent force commits. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for this work, @mhoffrog — and apologies it sat for so long. Closing it now, but the ideas live on; here's how we're routing them. Since this PR opened (2023), the core need it addressed — installing a JDK without making it the environment default — is being solved by the newer, focused PR #1017, which adds a single The one capability here that So this PR is superseded by #1017 (the env/default primitive) plus #1047 (the remaining toolchains-only gap). Closing in favor of those. Your input on #1047 would be very welcome if you'd like to carry the toolchains-only piece forward on the cleaner foundation. 🙏 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Allow to add a toolchain only - without updating settings.xml, JAVA_HOME and PATH. Only toolchains.xml must be extended.
There was an error while loading. Please reload this page.