-
Notifications
You must be signed in to change notification settings - Fork 48
#1166: import maven repos in intellij by editing misc.xml #1466
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
Closed
cthies-capgemini
wants to merge
44
commits into
devonfw:main
from
cthies-capgemini:feature/1166-automatic-project-import-for-intellij
Closed
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
347a20d
#1166: import maven repos in intellij by editing misc.xml
cthies-capgemini 8ad3f85
Merge branch 'devonfw:main' into feature/1166-automatic-project-impor…
cthies-capgemini 12f8664
#1166: import gradle repos in intellij by editing gradle.xml
cthies-capgemini bb6c324
Merge remote-tracking branch 'origin/feature/1166-automatic-project-i…
cthies-capgemini 7d8681f
#1166: fix variable names
cthies-capgemini 8656056
#1166: add support for gradle projects in kotlin
cthies-capgemini 3ff481e
#1166: use environment variables for repository path
cthies-capgemini 9ee0393
Merge branch 'main' into feature/1166-automatic-project-import-for-in…
cthies-capgemini 89e0877
#1166: remove debug prints
cthies-capgemini a64e626
#1166: use intellij project path
cthies-capgemini e942333
Merge remote-tracking branch 'origin/feature/1166-automatic-project-i…
cthies-capgemini 075a6c7
Merge branch 'main' into feature/1166-automatic-project-import-for-in…
cthies-capgemini 2178218
#1166: replace specific intellij env variables with general extensibl…
cthies-capgemini 4d93673
Merge remote-tracking branch 'origin/feature/1166-automatic-project-i…
cthies-capgemini ea2748c
#1166: fix grammar in comments
cthies-capgemini 3fa4098
#1166: inherit from EnvironmentVariablesResolved instead of AbstractE…
cthies-capgemini e9955e6
#1166: remove redundant methods and add javadoc
cthies-capgemini e7d1ee5
Merge branch 'devonfw:main' into feature/1166-automatic-project-impor…
cthies-capgemini 91e6e65
Merge branch 'main' into feature/1166-automatic-project-import-for-in…
cthies-capgemini d4a3564
Update cli/src/main/java/com/devonfw/tools/ide/environment/Extensible…
cthies-capgemini 72d71da
#1166: prevent null values for env variables
cthies-capgemini 038beb1
#1166: clean up how file paths are handled
cthies-capgemini d58a52f
#1166: prevent error from missing template file
cthies-capgemini f0febf8
#1166: use parent of environment variables
cthies-capgemini 870907b
#1166: shorten file creation
cthies-capgemini 2e949b3
#1166: improve path handling
cthies-capgemini 970a67e
#1166: fix thinking error
cthies-capgemini f980d33
Merge branch 'main' into feature/1166-automatic-project-import-for-in…
jan-vcapgemini d90894d
Merge branch 'main' into feature/1166-automatic-project-import-for-in…
hohwille cd87834
Merge branch 'main' into feature/1166-automatic-project-import-for-in…
hohwille 564234c
Merge branch 'main' into feature/1166-automatic-project-import-for-in…
jan-vcapgemini fa2a9b6
Merge branch 'main' into feature/1166-automatic-project-import-for-in…
jan-vcapgemini 7a77a64
Merge branch 'main' into feature/1166-automatic-project-import-for-in…
jan-vcapgemini 7bb8b66
#1166: Implemented requested changes
jan-vcapgemini 1574e0b
#1166: Implemented requested changes
jan-vcapgemini c25c9b7
Merge branch 'main' into feature/1166-automatic-project-import-for-in…
jan-vcapgemini c885ada
#1166: Implemented requested changes
jan-vcapgemini 081c8ec
Merge branch 'main' into feature/1166-automatic-project-import-for-in…
jan-vcapgemini a728cf8
#1166: Fixed XmlMerger test
jan-vcapgemini 992b2b0
#1166: Add changelog entry
jan-vcapgemini 27b9af9
Merge branch 'main' into feature/1166-automatic-project-import-for-in…
hohwille 17b7d05
Merge branch 'main' into feature/1166-automatic-project-import-for-in…
hohwille 8f5bcaf
#1166: moved to release 2025.12.001
hohwille b42b543
Merge branch 'main' into feature/1166-automatic-project-import-for-in…
hohwille 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
52 changes: 52 additions & 0 deletions
52
cli/src/main/java/com/devonfw/tools/ide/environment/ExtensibleEnvironmentVariables.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,52 @@ | ||
| package com.devonfw.tools.ide.environment; | ||
|
|
||
| import java.util.HashMap; | ||
| import java.util.Map; | ||
|
|
||
| import com.devonfw.tools.ide.context.IdeContext; | ||
|
|
||
| /** | ||
| * Subclass of {@link EnvironmentVariablesMap} that resolves variables recursively and allows new variables to be added to the resolver. | ||
| */ | ||
| public class ExtensibleEnvironmentVariables extends EnvironmentVariablesMap { | ||
|
|
||
| private final Map<String, String> additionalEnvironmentVariables; | ||
|
|
||
| /** | ||
| * The constructor. | ||
| * | ||
| * @param parent the parent {@link EnvironmentVariables} to inherit from. | ||
| * @param context the context to use. | ||
| */ | ||
| public ExtensibleEnvironmentVariables(AbstractEnvironmentVariables parent, IdeContext context) { | ||
| super(parent, context); | ||
| this.additionalEnvironmentVariables = new HashMap<>(); | ||
| } | ||
|
|
||
hohwille marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| /** | ||
| * @param name the variable string to be resolved | ||
| * @param value the string the variable should be resolved into | ||
| */ | ||
| public void addVariableResolver(String name, String value) { | ||
| this.additionalEnvironmentVariables.put(name, value); | ||
| } | ||
|
|
||
| @Override | ||
| protected String getValue(String name, boolean ignoreDefaultValue) { | ||
| String value = this.additionalEnvironmentVariables.get(name); | ||
| if (value != null) { | ||
| return value; | ||
| } | ||
| return super.getValue(name, ignoreDefaultValue); | ||
| } | ||
|
|
||
| @Override | ||
| protected Map<String, String> getVariables() { | ||
| return this.additionalEnvironmentVariables; | ||
| } | ||
|
|
||
| @Override | ||
| public EnvironmentVariablesType getType() { | ||
| return EnvironmentVariablesType.TOOL; | ||
| } | ||
| } | ||
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
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.