diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index d3115ae8c..f695fb34f 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -9,6 +9,7 @@ Release with new features and bugfixes: * https://github.com/devonfw/IDEasy/issues/589[#589]: Fix NLS Bundles for Linux and MacOS * https://github.com/devonfw/IDEasy/issues/764[#764]: IDEasy not working properly in CMD * https://github.com/devonfw/IDEasy/issues/754[#754]: Again messages break processable command output +* https://github.com/devonfw/IDEasy/issues/646[#646]: Add variable for intellij to disable log output The full list of changes for this release can be found in https://github.com/devonfw/IDEasy/milestone/16?closed=1[milestone 2024.12.001]. diff --git a/cli/src/main/java/com/devonfw/tools/ide/variable/IdeVariables.java b/cli/src/main/java/com/devonfw/tools/ide/variable/IdeVariables.java index 4ba2ea612..8cd7e86ce 100644 --- a/cli/src/main/java/com/devonfw/tools/ide/variable/IdeVariables.java +++ b/cli/src/main/java/com/devonfw/tools/ide/variable/IdeVariables.java @@ -33,6 +33,9 @@ public interface IdeVariables { /** {@link VariableDefinition} for list of tools to install by default. */ VariableDefinitionStringList IDE_TOOLS = new VariableDefinitionStringList("IDE_TOOLS", "DEVON_IDE_TOOLS", c -> List.of("mvn", "npm")); + /** {@link VariableDefinition} for enabling logs of ides. */ + VariableDefinitionBoolean IDE_ENABLE_CONSOLE_LOG = new VariableDefinitionBoolean("IDE_ENABLE_CONSOLE_LOG", null, c -> true); + /** {@link VariableDefinition} for list of IDE tools to create start scripts for. */ VariableDefinitionStringList CREATE_START_SCRIPTS = new VariableDefinitionStringList("CREATE_START_SCRIPTS", "DEVON_CREATE_START_SCRIPTS"); @@ -87,7 +90,8 @@ public interface IdeVariables { c -> Boolean.TRUE); /** A {@link Collection} with all pre-defined {@link VariableDefinition}s. */ - Collection> VARIABLES = List.of(PATH, HOME, WORKSPACE_PATH, IDE_HOME, IDE_ROOT, WORKSPACE, IDE_TOOLS, CREATE_START_SCRIPTS, + Collection> VARIABLES = List.of(PATH, HOME, WORKSPACE_PATH, IDE_HOME, IDE_ROOT, WORKSPACE, IDE_TOOLS, IDE_ENABLE_CONSOLE_LOG, + CREATE_START_SCRIPTS, IDE_MIN_VERSION, MVN_VERSION, M2_REPO, DOCKER_EDITION, MVN_BUILD_OPTS, NPM_BUILD_OPTS, GRADLE_BUILD_OPTS, YARN_BUILD_OPTS, JASYPT_OPTS, MAVEN_ARGS, PROJECT_NAME, IDE_VARIABLE_SYNTAX_LEGACY_SUPPORT_ENABLED, PREFERRED_GIT_PROTOCOL); diff --git a/documentation/variables.adoc b/documentation/variables.adoc index ef203146c..7d22a1462 100644 --- a/documentation/variables.adoc +++ b/documentation/variables.adoc @@ -18,6 +18,7 @@ Please note that we are trying to minimize any potential side-effect from `IDEas |`PATH`|`$IDE_HOME/software/java:...:$PATH`|You system path is adjusted by `ide` link:cli.adoc[command]. |`HOME_DIR`|`~`|The platform independent home directory of the current user. In some edge-cases (e.g. in cygwin) this differs from `~` to ensure a central home directory for the user on a single machine in any context or environment. |`IDE_TOOLS`|`(java mvn node npm)`|List of tools that should be installed by default on project creation. +|`IDE_ENABLE_CONSOLE_LOG`|`true`|Toggle to enable or disable whether the log output of IDEs is printed into the console. |`CREATE_START_SCRIPTS`|`(eclipse vscode)`|List of IDEs that shall be used by developers in the project and therefore start-scripts are created on setup. |*`WORKSPACE`*|`main`|The link:workspaces.adoc[workspace] you are currently in. Defaults to `main` if you are not inside a link:workspaces.adoc[workspace]. Never set this variable in any `ide.properties` file. |`WORKSPACE_PATH`|`$IDE_HOME/workspaces/$WORKSPACE`|Absolute path to current link:workspaces.adoc[workspace]. Never set this variable in any `ide.properties` file.