Skip to content

Latest commit

 

History

History
53 lines (50 loc) · 8.34 KB

variables.adoc

File metadata and controls

53 lines (50 loc) · 8.34 KB
Table of Contents

Variables

IDEasy defines a set of standard variables to your environment for configuration. These environment variables are described by the following table. Those variables printed bold are automatically exported in your shell (except for windows CMD that does not have such concept). Variables with the value - are not set by default but may be set via configuration to override defaults. Please note that we are trying to minimize any potential side-effect from IDEasy to the outside world by reducing the number of variables and only exporting those that are required. See also IdeVariables.java that defines all the available variables.

Table 1. Variables of IDEasy
Variable Value Meaning

IDE_ROOT

e.g. ~/projects/ or C:\projects

The installation root directory of IDEasy - see structure for details.

IDE_HOME

e.g. /projects/my-project

The top level directory of your IDEasy project.

IDE_OPTIONS

e.g. -Dhttps.proxyUser=$USERNAME -Dhttps.proxyPassword=«password»

General options that will be applied to each call of IDEasy. Should typically be used for JVM options like proxy-support.

GUI_LANGUAGE

e.g. de

The language the GUI is displayed in. Set automatically when a language is selected in the GUI (a restart is required for it to take effect). When ide gui is started it is applied to the launched JVM via -Duser.language=…​. Should only be set for individual users in ~/.ide/ide.properties (and not in shared settings).

«IDE»_OPTIONS

e.g. nosplash (for INTELLIJ_OPTIONS)

Additional command-line arguments passed when starting the IDE «IDE» (e.g. ECLIPSE_OPTIONS, INTELLIJ_OPTIONS, ANDROID_STUDIO_OPTIONS, PYCHARM_OPTIONS, or VSCODE_OPTIONS). Analogous to the global IDE_OPTIONS but specific to a single IDE.

PATH

$IDE_HOME/software/«tool»:…​:$PATH

Your system path is adjusted by ide command.

BASH_PATH

e.g. C:\Program Files\Git\usr\bin\bash.exe

Absolute path to your bash. Only used as fallback on Windows if bash could not be found from registry.

IDE_TOOLS

(java mvn node npm)

List of tools that should be installed by default on project creation.

CREATE_START_SCRIPTS

e.g. eclipse, intellij, vscode

List of IDEs that shall be used by developers in the project and therefore start-scripts are created on setup. E.g. (eclipse intellij vscode)

USER

e.g. jdoe

The login name of the current user. Provided as environment variable by Linux and macOS while Windows provides USERNAME instead, which is used as fallback so that $[USER] works on all platforms.

WORKSPACE

main

The workspace you are currently in. Defaults to main if you are not inside a workspace. Never set this variable in any ide.properties file.

WORKSPACE_PATH

$IDE_HOME/workspaces/$WORKSPACE

Absolute path to current workspace. Never set this variable in any ide.properties file.

«TOOL»_VERSION

*

The version of the tool «TOOL» to install and use (e.g. ECLIPSE_VERSION or MVN_VERSION).

«TOOL»_EDITION

«tool»

The edition of the tool «TOOL» to install and use (e.g. ECLIPSE_EDITION, INTELLIJ_EDITION or DOCKER_EDITION). Default of DOCKER_EDITION is rancher.

«TOOL»_EXTRA_PLUGINS

e.g. copilot,docker

Additional plugins to install for the IDE «TOOL» (e.g. VSCODE_EXTRA_PLUGINS, INTELLIJ_EXTRA_PLUGINS or ECLIPSE_EXTRA_PLUGINS). Each entry refers to the filename of the plugin properties file without the .properties extension (e.g. copilot for copilot.properties) and not to the id configured inside that file. This option should only be set for individual users in $IDE_HOME/conf/ide.properties or ~/.ide/ide.properties (and not in shared settings).

«TOOL»_HOME

$IDE_HOME/software/«tool»

Path to installation of «tool» (e.g. MVN_HOME for maven)

«TOOL»_BUILD_OPTS

clean install

The arguments provided to the build-tool «TOOL» in order to run a build. E.g.clean install

«TOOL»_RELEASE_OPTS

e.g. clean deploy -Dchangelist= -Pdeploy

The arguments provided to the build-tool «TOOL» in order to perform a release build. E.g.clean deploy -Dchangelist= -Pdeploy

M2_REPO

$IDE_HOME/conf/mvn/repository

Path to your local maven repository. For projects without high security demands, you may change this to the maven default ~/.m2/repository and share your repository among multiple projects.

MAVEN_ARGS

-s $IDE_HOME/conf/mvn/settings.xml

Maven arguments. This variable is set just if the settings.xml file in conf is found.

IDE_VARIABLE_SYNTAX_LEGACY_SUPPORT_ENABLED

true

Enable/disable legacy support for devonfw-ide configuration templates in IDE workspace folders.

ECLIPSE_VMARGS

-Xms128M -Xmx768M -XX:MaxPermSize=256M

JVM options for Eclipse

PREFERRED_GIT_PROTOCOL

e.g. ssh

Allows to enforce a specific protocol for git. Options are ssh (for SSH) and https. If set any git URL will automatically be converted to the preferred protocol before IDEasy clones it. This option should only be set for individual users in $IDE_HOME/conf/ide.properties or ~/.ide/ide.properties (and not in shared settings).

FAIL_ON_AMBIGOUS_MERGE

e.g. true

If set to true the merge:id is ambiguous and the resulting XPath expression matches multiple elements. Typically, the IDE admin did something wrong in the workspace template configuration. However, we decided to log a warning if that happens and use the first match by default to prevent our users from being blocked or annoyed in case of such configuration error. With this property you can enforce that this is handled as error aborting the merge. If that happens the user sees the stacktrace of the error and gets asked if he or she wants to continue in order to launch his IDE (IntelliJ, Eclipse, VSCode, etc.).

IDE_MIN_VERSION

e.g. 2024.12.002

The minimum version of IDEasy that is required by your project. Causes ide create to fail if violated, otherwise renders a warning

CVE_MIN_SEVERITY

0.1

The severity threshold for CVEs. See security.

SKIP_CVE_FIX

e.g. SKIP_CVE_FIX=java,npm

Coma separated list of tools where to skip upgrade suggestions to fix CVEs. See security.

HTTP_VERSIONS

e.g. HTTP_2, HTTP_1_1

The optional list of HTTP versions to try in the given order (e.g. "HTTP_2, HTTP_1_1"). This can be used as a workaround for network/VPN related issues - see issue #1393.

JASYPT_OPTS

algorithm=PBEWITHHMACSHA512ANDAES_256 ivGeneratorClassName=org.jasypt.iv.RandomIvGenerator

Options of jasypt.

IDE_XML_MERGE_LEGACY_SUPPORT_ENABLED

e.g. false

Support of legacy xml templates without XML merge namespace.

IDE_WRITE_LOGFILE

true

Automatically write logfiles to $IDE_ROOT/_ide/logs/YYYY/MM/dd/«project»-ide-«command»-HH-mm-ss.log. If you are not inside an IDEasy project or your command is not related to a project then «project» will be _ide. The logfile structure is designed in a way that allows you to quickly find and cleanup based on date but also based on details like the project and sub-command.

IDEASY_CREATE_DESKTOP_SHORTCUT

true

Set to false to skip the creation of the desktop shortcut to the IDEasy GUI during the installation of IDEasy on Windows. The MSI installer sets this variable via its checkbox. For a silent installation use e.g. msiexec /i ideasy.msi /qn IDEASY_CREATE_DESKTOP_SHORTCUT=false.

IDEASY_CREATE_STARTMENU_SHORTCUT

true

Set to false to skip the creation of the Start Menu shortcut to the IDEasy GUI during the installation of IDEasy on Windows. The MSI installer sets this variable via its checkbox.

INTELLIJ_VM_ARGS

e.g. -Xms128m -Xmx2048m

Support for extension or overwrite of default IntelliJ JVM options.

PYCHARM_VM_ARGS

e.g. -Xms128m -Xmx2048m

Support for extension or overwrite of default Pycharm JVM options.

ANDROID_STUDIO_VM_ARGS

e.g. -Xms128m -Xmx2048m

Support for extension or overwrite of default Android Studio JVM options.