-
Notifications
You must be signed in to change notification settings - Fork 94
#1695: Clone settings to temporary directory, analyse, and then move #2335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
hohwille
merged 110 commits into
devonfw:main
from
laim2003:feature/#1695-settings-tempdir-verification
Sep 15, 2026
Merged
Changes from all commits
Commits
Show all changes
110 commits
Select commit
Hold shift + click to select a range
27edd93
#1695: initial commit
laim2003 dc82ff1
#1695: removed code repository flag
laim2003 9196d21
#1695: Added new helper class to determine the type of a repository.
laim2003 b7eafb9
#1695: added logic that moves a settings directory to a temp dir, ver…
laim2003 fc1ca09
#1695: fixed typo
laim2003 dc5c812
#1695: cleanup of RepositoryUtil
laim2003 6d44315
#1695: updated CHANGELOG.adoc
laim2003 ead50be
#1695: cleanup of RepositoryUtil
laim2003 4cd4abe
#1695: removed help description for --code flag
laim2003 3c3ddf7
#1695: Updated documentation
laim2003 5719fc6
Merge branch 'main' into feature/#1695-settings-tempdir-verification
laim2003 ab99eaa
Merge remote-tracking branch 'origin/feature/#1695-settings-tempdir-v…
laim2003 2a54e07
#1695: small fixes
laim2003 6e24291
#1695: added tests
laim2003 0cdc487
#1695: corrected maven checkstyle recommendations
laim2003 16098be
#1695: corrected maven checkstyle recommendations
laim2003 5e42054
Merge remote-tracking branch 'origin/feature/#1695-settings-tempdir-v…
laim2003 9543028
#1695: formatting corrections
laim2003 b9ed3e7
Merge branch 'main' into feature/#1695-settings-tempdir-verification
hohwille 03b200a
Merge branch 'main' into feature/#1695-settings-tempdir-verification
hohwille 42dbf05
Merge branch 'main' into feature/#1695-settings-tempdir-verification
laim2003 ff7e29a
Merge branch 'main' into feature/#1695-settings-tempdir-verification
hohwille c786c94
Merge remote-tracking branch 'origin/feature/#1695-settings-tempdir-v…
laim2003 7d11769
#1695: migrated settings update logic into its own class.
laim2003 e44afae
#1695: migrated settings update logic into SettingsUpdater class, add…
laim2003 1aa4271
#1695: only create project structure when health check succeeded
laim2003 80a4715
#1695: extended CliException with isForceRethrowInStep() flag
laim2003 85a584a
#1695: CreateCommandlet now only creates the project structure after …
laim2003 81d3d00
#1695: updated RepositoryUtil
laim2003 5d51ce8
#1695: updated documentation
laim2003 55d0c0a
#1695: updated CreateCommandlet
laim2003 af34c90
#1695: divided AbstractUpdateCommandlet settings update step into ver…
laim2003 0a10bc9
#1695: updated GitContextMock to use the default settings repo URL as…
laim2003 bae4a08
#1695: updated Step implementation to support isForceRethrow
laim2003 94725de
#1695: updated tests
laim2003 d370447
#1695: updated SettingsUpdater to use to stage system of verify&apply…
laim2003 ce83408
#1695: cleanup
laim2003 fce29f7
#1695: spotless apply
laim2003 ca59b00
#1695: finalized verification workflow when no settings repo exists y…
laim2003 0cb06db
#1695: added warning for invalid Git urls provided via a parameter.
laim2003 affe458
#1695: small fixes
laim2003 d9cae42
#1695: - SettingsUpdater now respects force pull settings mode (--for…
laim2003 0ba64af
Merge branch 'main' into feature/#1695-settings-tempdir-verification
laim2003 796b275
#1695: - Small fixes of force mode handling in SettingsUpdater for th…
laim2003 b0868a3
Merge remote-tracking branch 'origin/feature/#1695-settings-tempdir-v…
laim2003 79da202
#1695: added javadocs
laim2003 9dd9cb6
#1695: resolved checkstyle violations
laim2003 ad28a7a
#1695: - fixed SettingsUpdater not recognizing context.isForceMode()
laim2003 737bd78
Merge branch 'main' into feature/#1695-settings-tempdir-verification
hohwille 6da3b3a
#1695: initial commit
laim2003 cecb1c3
#1695: removed code repository flag
laim2003 dd8e217
#1695: Added new helper class to determine the type of a repository.
laim2003 4812153
#1695: added logic that moves a settings directory to a temp dir, ver…
laim2003 c145c22
#1695: fixed typo
laim2003 3b0e1d2
#1695: cleanup of RepositoryUtil
laim2003 c2b3830
#1695: updated CHANGELOG.adoc
laim2003 429f05a
#1695: cleanup of RepositoryUtil
laim2003 5d13b4a
#1695: removed help description for --code flag
laim2003 d615252
#1695: Updated documentation
laim2003 e7d975b
#1695: small fixes
laim2003 c930660
#1695: added tests
laim2003 b8bb02f
#1695: corrected maven checkstyle recommendations
laim2003 55d081a
#1695: formatting corrections
laim2003 2d766dd
#1695: migrated settings update logic into its own class.
laim2003 5f6b492
#1695: migrated settings update logic into SettingsUpdater class, add…
laim2003 1ce3a98
#1695: only create project structure when health check succeeded
laim2003 572892d
#1695: extended CliException with isForceRethrowInStep() flag
laim2003 0c99b28
#1695: CreateCommandlet now only creates the project structure after …
laim2003 2edfe0e
#1695: updated RepositoryUtil
laim2003 496d09d
#1695: updated documentation
laim2003 9aecc40
#1695: updated CreateCommandlet
laim2003 c2aaaa0
#1695: divided AbstractUpdateCommandlet settings update step into ver…
laim2003 669bf24
#1695: updated GitContextMock to use the default settings repo URL as…
laim2003 6c1c123
#1695: updated Step implementation to support isForceRethrow
laim2003 71e74e1
#1695: updated tests
laim2003 0e1433e
#1695: updated SettingsUpdater to use to stage system of verify&apply…
laim2003 6311e68
#1695: cleanup
laim2003 c67aabe
#1695: spotless apply
laim2003 4deda90
#1695: finalized verification workflow when no settings repo exists y…
laim2003 ec9d3c2
#1695: added warning for invalid Git urls provided via a parameter.
laim2003 129095d
#1695: small fixes
laim2003 9e1da14
#1695: - SettingsUpdater now respects force pull settings mode (--for…
laim2003 8892e88
#1695: - Small fixes of force mode handling in SettingsUpdater for th…
laim2003 927328b
#1695: added javadocs
laim2003 2b8c940
#1695: resolved checkstyle violations
laim2003 94e5664
#1695: - fixed SettingsUpdater not recognizing context.isForceMode()
laim2003 4aa4c58
Merge remote-tracking branch 'origin/feature/#1695-settings-tempdir-v…
laim2003 938b956
#1695: - fixed faulty type determination check in RepositoryUtil
laim2003 32b1819
#1695: - javadoc adjustment
laim2003 5aca16e
#1695: - fixed issue with IDEW_HOME/conf folder being created by setI…
laim2003 1ea6d9f
Merge branch 'main' into feature/#1695-settings-tempdir-verification
laim2003 a54bd8d
Merge remote-tracking branch 'origin/feature/#1695-settings-tempdir-v…
laim2003 2d214d2
#1695: - fixed test issues
laim2003 92c72f7
#1695: fixed checkstyle violations
laim2003 ea69357
#1695: fixed checkstyle violations
laim2003 74a0dd9
#1695: removed force flag handling from SettingsUpdater as i misunder…
laim2003 330e4e1
#1695: - javadoc improvement
laim2003 a01d6c7
#1695: - corrected documentation
laim2003 a980e49
Merge branch 'main' into feature/#1695-settings-tempdir-verification
hohwille 9a8f841
#1695: - merged RepositoryUtil.java into RepositoryType
laim2003 abdd818
#1695: - updated error message
laim2003 8215bb6
#1695: - settings health check now always uses correct settings path …
laim2003 845ead8
#1695: - removed dead code
laim2003 fc662fd
#1695: - removed dead code
laim2003 79d0ee1
Merge branch 'main' into feature/#1695-settings-tempdir-verification
laim2003 d64d2f0
#1695: applied recommendations
laim2003 5699884
Merge branch 'main' into feature/#1695-settings-tempdir-verification
laim2003 f62f9a5
#1695: fixed CreateCommandletTest
laim2003 f8e2442
#1695: removed redundant TODO
laim2003 77e243a
Merge branch 'main' into feature/#1695-settings-tempdir-verification
laim2003 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
cli/src/main/java/com/devonfw/tools/ide/cli/CliFatalException.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| package com.devonfw.tools.ide.cli; | ||
|
|
||
| /** | ||
| * {@link CliException} that aborts the entire CLI process when a critical guardrail fails (e.g. the settings repository could not be cloned or is not a valid | ||
| * settings repository). Unlike a regular error that only makes the current {@link com.devonfw.tools.ide.step.Step Step} fail while the overall process | ||
| * continues, this exception {@link #isForceRethrowInStep() is always re-thrown} so no further step is executed in an invalid state. | ||
| */ | ||
| public final class CliFatalException extends CliException { | ||
|
|
||
| /** | ||
| * The constructor. | ||
| * | ||
| * @param message the {@link #getMessage() message}. | ||
| */ | ||
| public CliFatalException(String message) { | ||
|
|
||
| super(message); | ||
| } | ||
|
|
||
| /** | ||
| * The constructor. | ||
| * | ||
| * @param message the {@link #getMessage() message}. | ||
| * @param cause the {@link #getCause() cause}. | ||
| */ | ||
| public CliFatalException(String message, Throwable cause) { | ||
|
|
||
| super(message, cause); | ||
| } | ||
|
|
||
| @Override | ||
| public boolean isForceRethrowInStep() { | ||
|
|
||
| return true; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.